Home > other >  Wxpython switch panel?
Wxpython switch panel?

Time:09-20

Open the program shows a panel for a home page, click on the toolbar. A, B, C respectively show that a, B, C each panel switch, if the init will create ABC three panels or click on the toolbar to create, to show () the way of display, will cover or show out, could you tell me how to achieve this great god problem?

CodePudding user response:

The building Lord this requirement if use pyqt TAB controls, it is very easy to implement.
Wx inside I think there should be similar,

CodePudding user response:

reference 1/f, sprawling response:
the building this requirement if use pyqt TAB controls, it is very easy to implement.
I think there should be a similar inside wx,
this is not you ask not what answer

CodePudding user response:

The use of wx. Notebook

CodePudding user response:

reference zmshy2128 reply: 3/f
use wx. Notebook
bad to use, wx. ToolBook also can say, but I want to page, click the button to display a new panel inside without page understand don't understand?

CodePudding user response:

reference zmshy2128 reply: 3/f
use wx. Notebook
a little bit more simple, can use the toolbar? Without a label, so want to switch panel can be

CodePudding user response:

The self. The panel. Destroy ()
Self. Panel2=wx. A Panel (self - 1)
Like this? Create a new panel display

CodePudding user response:

refer to 6th floor stranger_j response:
self. The panel. The Destroy ()
Self. Panel2=wx. A Panel (self - 1)
Like this? Create a new panel display

No, I tried it on, interface will be a bit abnormal
  • Related