GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing docs.wxpython.org — wx.Toolbook — wxPython 4.3.2 Docs
|
Constructs a choicebook control. |
|
Create the tool book control that has already been constructed with the default constructor. |
|
Enables or disables the specified page. |
|
Return the toolbar used for page selection. |
Properties Summary¶See |
Class API¶Possible constructors:
Toolbook() -> None Toolbook(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name='') -> None
Toolbook is a class similar to Notebook but which uses a ToolBar to show the labels instead of the tabs.
Constructs a choicebook control.
__init__ (self)
None
__init__ (self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=’’)
None
Create the tool book control that has already been constructed with the default constructor.
EnablePage (self, page, enable)
Enables or disables the specified page.
Using this function, a page can be disabled when it can’t be used, while still remaining present to let the users know that more functionality is available, even if currently inaccessible.
Icons for disabled pages are created by wx.Bitmap.ConvertToDisabled .
page (int) – The index of the page.
enable (bool) – True to enable the page and False to disable it.
bool
True if successful, False otherwise (currently only if the index is invalid).
Added in version 4.1/wxWidgets-3.1.2.
EnablePage (self, page, enable)
Enables or disables the specified page.
This is similar to the overload above, but finds the index of the specified page.
page (wx.Window) – Pointer of a page windows inside the book control.
enable (bool) – True to enable the page and False to disable it.
bool
True if successful, False otherwise, e.g. if page is not one of the pages of this control.
Added in version 4.1/wxWidgets-3.1.2.
variant (WindowVariant)
Return the toolbar used for page selection.
See GetToolBar