As far as I know, you can not cast in python. Does anyone have experience in this area? Yes, I know the child frame is just a button, but this is for demonstration purposes.argument 2 expects type 'wxWindow *'
Thank-you!!!
- Code: Select all
...
class childFrame(wx.Frame):
b=wx.Button(parent,wx.NewId(),"b")
...
class MainFrame(wx.Frame):
...
self._mgr = wx.aui.AuiManager()
self._mgr.SetManagedWindow(self)
...
ctrl=wx.TextCtrl(self, -1, "test",size=(200, 100))
menu= childFrame(parent=self, title="Menu") #during initiation sets this frame as parent
self._mgr.AddPane(ctrl, wx.aui.AuiPaneInfo().Name("test").Left())
self._mgr.AddPane(menu, wx.aui.AuiPaneInfo().Name("menu"))
...
self._mgr.Update()