My current setup
class AppFrame(wx.Frame):
def__init__(self,parent,id=-1,title='program'):
wx.Frame.__init__(self,parent,id,title,size=((400,400)))
# Panels
self.AppPanel = wx.Panel(self,-1)
self.AppPanel.SetBackgroundColour('grey')
class NBPanel(wx.Notebook):
def__init__(etc)
How do I add this NBPanel class (which im trying to make a notebook panel) inside my AppFrame so that it will show both panels inside my AppFrame. My mind goes bonkers while trying to figure this out. Am I suppose to make the NBPanel class a child of the AppPanel?
such as:
class AppFrame(wx.Frame):
def__init__(self,parent,id=-1,title='Mango'):
wx.Frame.__init__(self,parent,id,title,size=((400,400)))
# Panels
self.AppPanel = wx.Panel(self,-1)
self.AppPanel.SetBackgroundColour('grey')
**self.AppPanel2 = NBPanel(self.AppPanel,-1)**
I tried a few variations of this and basically got a few kinds of errors.
BTW The (AppPanel) isn't as bare as this code shows, it has a sizer set to the left-vertical with a few buttons and such. I want the notebook panel to take most of the middle area of the AppFrame because I'll still need to add another panel to the right of the notebook panel.