wxPanel probleme

Probleme is with MainPanel class __init__ anyone sees what could be wrong ?

class MainFrame(wxFrame):
  def __init__(self,parent,id,title):
    wxFrame.__init__(self,parent,id,title)
    
    Fmenu = wxMenu()
    Fmenu.Append(IDOPEN,"&Open")
    
    MenuBar = wxMenuBar()
    MenuBar.Append(Fmenu,"&File")
    self.SetMenuBar(MenuBar)
  
    splitter = wxSplitterWindow(self,-1)
    splitter.SplitVertically(MenuPanel(splitter,-1),MainPanel(splitter,-1))
    splitter.Show(1)
  
class MenuPanel(wxPanel):
  print "test"
    
class MainPanel(wxPanel):
  def __init__(self,parent,id):
    self.s = wxSplitterWindow(self ,-1)
    self.s.Horizontally(wxWindow(self.s,-1),wxWindow(self.s,-1))
    self.s.Show(true)

Geiregat Jonas wrote:

Probleme is with MainPanel class __init__ anyone sees what could be wrong ?

Typically, saying there is a problem is not sufficient for anyone to tell what is wrong, without a description of the symptoms.

class MainPanel(wxPanel):
    def __init__(self,parent,id):
        self.s = wxSplitterWindow(self ,-1)
        self.s.Horizontally(wxWindow(self.s,-1),wxWindow(self.s,-1))
        self.s.Show(true)

However, in this case, it looks like you are missing a call to wxPanel.__init__.

David