title: How to get multiple panels on one frame when overwriting the standard frame?
body: <p>I'm following the tutorial from <a href="http://wiki.wxpython.org/Getting%20Started" rel="nofollow">http://wiki.wxpython.org/Getting%20Started</a> and I'm busy with the notebook example. Here, multiple panels are added into one frame. It uses the following example code:</p>
  
  <pre><code>class ExamplePanel(wx.Panel):
      def __init__(self, parent):
          [...]
  
  app = wx.App(False)
  frame = wx.Frame(None, title="Demo with Notebook")
  nb = wx.Notebook(frame)
  
  nb.AddPage(ExamplePanel(nb), "Absolute Positioning")
  nb.AddPage(ExamplePanel(nb), "Page Two")
  nb.AddPage(ExamplePanel(nb), "Page Three")
  frame.Show()
  app.MainLoop()
  </code></pre>
  
  <p>This works for me. However, instead of using the standard wx.Frame() for the frame I want to use my own one (the frame works if I only use one panel):</p>
  
  <pre><code>class ExampleFrame(wx.Frame):
      def __init__(self, parent, title):
          wx.Frame.__init__(self,parent, title = title)
          panel = wx.Panel(self)
          self.CreateStatusBar()
          # Setting up the menu.
          filemenu = wx.Menu()
  
          #wx.ID_ABOUT and wx.ID_EXIT are standard IDs provided by wxWidgets
          menuAbout = filemenu.Append(wx.ID_ABOUT, "&amp;About", " Information about this program")
          menuExit = filemenu.Append(wx.ID_EXIT, "E&amp;xit", " Terminate the program")
  
          # Creating the menubar
          menuBar = wx.MenuBar()
          menuBar.Append(filemenu, "&amp;miP3") # Adding filemenu to the MenuBar
          self.SetMenuBar(menuBar) # Adding the MenuBar to the Frame content.
  
          # Set events
          self.Bind(wx.EVT_MENU, self.OnAbout, menuAbout)
          self.Bind(wx.EVT_MENU, self.OnExit, menuExit)     
  
      def OnAbout(self, event):
          # A message dialoge box with an OK button. wx.OK is a sandard ID in wxWidgets
          dlg = wx.MessageDialog(self, "Author: Niek de Klein", "About miP3")
          dlg.ShowModal() # show it
          dlg.Destroy() # finally destroy it when finished
  
      def OnExit(self, eevent):
          self.Close(True) # close the frame
  
  app = wx.App(False)
  frame = frame = ExampleFrame(None, title="Demo with Notebook")
  nb = wx.Notebook(frame)
  
  nb.AddPage(ExamplePanel(nb), "Absolute Positioning")
  nb.AddPage(ExamplePanel(nb), "Page Two")
  nb.AddPage(ExamplePanel(nb), "Page Three")
  frame.Show()
  app.MainLoop()
  </code></pre>
  
  <p>How can I add multiple panels to my custom frame?    </p>