Is there a way to change the panel that a frame is displaying at the
moment? I.e., if I have a main panel that is currently displaying
panelX, can I have a button on panelX that will cause the frame to
display panelY over (or completely destroying) panelX?
Is there a way to change the panel that a frame is displaying at the
moment? I.e., if I have a main panel that is currently displaying
panelX, can I have a button on panelX that will cause the frame to
display panelY over (or completely destroying) panelX?
Sure:
wx.Window.Hide() and wx.Window.Show()
wx.Panel derives form wx.Windows, so you just Hide() one and Show() the other.
Enclosed is an example using sizers to lay it out, and the panels get replaced. It's almost a clone of wx.Notebook functionality.