wx.Listbook is a class similar to wx.Notebook but which uses a wx.ListCtrl to show the labels instead of the tabs.
The underlying wx.ListCtrl displays page labels in a one-column report view by default. Calling BookCtrl.SetImageList will implicitly switch the control to use an icon view.
For usage documentation of this class, please refer to the base abstract class BookCtrl. You can also use the Notebook Sample to see wx.Listbook in action.
^^
This class supports the following styles:
wx.LB_DEFAULT
: Choose the default location for the labels depending on the current platform (left everywhere except Mac where it is top).
wx.LB_TOP
: Place labels above the page area.
wx.LB_LEFT
: Place labels on the left side.
wx.LB_RIGHT
: Place labels on the right side.
wx.LB_BOTTOM
: Place labels below the page area. ^^
^^
Handlers bound for the following event types will receive a wx.BookCtrlEvent parameter.
EVT_LISTBOOK_PAGE_CHANGED: The page selection was changed. Processes a wxEVT_LISTBOOK_PAGE_CHANGED
event.
EVT_LISTBOOK_PAGE_CHANGING: The page selection is about to be changed. Processes a wxEVT_LISTBOOK_PAGE_CHANGING
event. This event can be vetoed. ^^
Default constructor. |
|
Create the list book control that has already been constructed with the default constructor. |
|
Returns the wx.ListView associated with the control. |
See |
wx.
Listbook
(BookCtrlBase)¶Possible constructors:
Listbook()
Listbook(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize,
style=0, name="")
Listbook is a class similar to Notebook but which uses a ListCtrl to show the labels instead of the tabs.
__init__
(self, *args, **kw)¶__init__ (self)
Default constructor.
__init__ (self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=””)
Constructs a listbook control.
Create
(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name="")¶Create the list book control that has already been constructed with the default constructor.
GetClassDefaultAttributes
(variant=WINDOW_VARIANT_NORMAL)¶variant (WindowVariant) –
GetListView
(self, *args, **kw)¶GetListView (self)
Returns the wx.ListView associated with the control.
GetListView (self)
Returns the list control used for selecting pages.
ListView
¶See GetListView