I would like to refactor one class for handling the text (g-code for 3d printing), when I use this class now, it´s opened in new window, but I would like to use it as a new tab in wx.Notebook.
I would be happy for any advice how to do that. Thanks! Code is attached.
You should check the wx demo of NoteBook first in the future. The demo is clear. About your question, according to the wx demo codes, you should change your class inherite from panel, and then add the instance into the notepad with its method AddPage(winObj, tab_name). Wish this useful to you.
···
Best Regards,
Erxin
From: RFranta
Date: 2014-05-10 18:53
To: wxpython-users
Subject: [wxPython-users] class refactoring
Hello everyone,
I would like to refactor one class for handling the text (g-code for 3d printing), when I use this class now, it´s opened in new window, but I would like to use it as a new tab in wx.Notebook.
I would be happy for any advice how to do that. Thanks! Code is attached.
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.