Kirix Support Forums

AddPane, derived classes and wxPython :?:

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

AddPane, derived classes and wxPython :?:

Postby Lugh on Tue Jan 26, 2010 2:19 pm

Hi, I am working in wxPython and I am trying to add my own class as a pane in the managed window. I get the error:
argument 2 expects type 'wxWindow *'
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.


Code: Select all
class childFrame(wx.Frame):
class MainFrame(wx.Frame):
    self._mgr = wx.aui.AuiManager()
    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"))
Registered User
Posts: 1
Joined: Tue Jan 26, 2010 1:34 pm

Re: AddPane, derived classes and wxPython :?:

Postby Ben on Mon Feb 01, 2010 2:39 pm

Hey there,

I'm just chiming in to let you know that I don't really have an answer for you (although I'm the primary wxAUI author). I'd suggest posting your question to a list where the wxpython people operate.

All the best,
Ben Williams
Kirix Support Team
User avatar
Kirix Support Team
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to wxAUI Questions, Thoughts & Feedback