Hello!
I am pretty new with wxPython.
I am working with a splitted frame :
on left side 2 buttons,
myButton1 = wx.Button(myLeftSplitter, ...)
myButton2 = wx.Button(myLeftSplitter, ...)
self.Bind(wx.EVT_BUTTON, self.OnClick1, myButton1)
self.Bind(wx.EVT_BUTTON, self.OnClick2, myButton2)
on the right side a notebook that only contains one page. That page contains a panel
myNotebook = wx.Notebook(myRightSplitter, ...)
myDefaultPanel = wx.Panel(myNotebook, ...)
myNotebook.AddPage(myDefaultPanel, ..., "My Absolutely Single Page")
I would like a click on myButton1 to replace myDefaultPanel by myNewPanel in "My Absolutely Single Page"
def OnClick1(self, event):
Change myDefaultPanel to myNewPanel in "My Absolutely Single Page"
Then a click on myButton2 should do the way back
def OnClick2(self, event):
Change myNewPanel to myDefaultPanel in "My Absolutely Single Page"
I don't manage to get any result. I tried various way but ... !
Thank you for your help !
Tremeur
(Sorry for the mistakes but I am French :))