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.

macro editor.txt (4.1 KB)

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.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Hello,

I know how to add page to notebook, I just dont know what should I change in class, so it will work as a panel not as a new window (frame). Thank you