This class is more compatible with the Notebook
API, especially regarding
page changing events. Use the FlatNotebookCompatible.SetSelection()
method if you wish to send page
changing events, or FlatNotebookCompatible.ChangeSelection()
otherwise.
wx.lib.agw.flatnotebook.FlatNotebook
Default class constructor. |
|
Sets the selection for the given page. |
|
Sets the selection for the given page. |
FlatNotebookCompatible
(FlatNotebook)¶This class is more compatible with the Notebook
API, especially regarding
page changing events. Use the FlatNotebookCompatible.SetSelection()
method if you wish to send page
changing events, or FlatNotebookCompatible.ChangeSelection()
otherwise.
__init__
(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, agwStyle=0, name="FlatNotebook")¶Default class constructor.
parent – the FlatNotebook
parent;
id – an identifier for the control: a value of -1 is taken to mean a default;
pos – the control position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxPython, depending on platform;
size – the control size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxPython, depending on platform;
style – the underlying Panel
window style;
agwStyle –
the AGW-specific window style. This can be a combination of the following bits:
Window Styles |
Hex Value |
Description |
---|---|---|
|
0x1 |
Use Visual Studio 2003 (VC7.1) style for tabs. |
|
0x2 |
Use fancy style - square tabs filled with gradient colouring. |
|
0x4 |
Draw thin border around the page. |
|
0x8 |
Do not display the ‘X’ button. |
|
0x10 |
Do not display the right/left arrows. |
|
0x20 |
Use the mouse middle button for cloing tabs. |
|
0x40 |
Place tabs at bottom - the default is to place them at top. |
|
0x80 |
Disable dragging of tabs. |
|
0x100 |
Use Visual Studio 2005 (VC8) style for tabs. |
|
0x200 |
Place ‘X’ close button on the active tab. |
|
0x400 |
Use gradients to paint the tabs background. |
|
0x800 |
Use colourful tabs (VC8 style only). |
|
0x1000 |
Style to close tab using double click. |
|
0x2000 |
Use Smart Tabbing, like |
|
0x4000 |
Use a dropdown menu on the left in place of the arrows. |
|
0x8000 |
Allows drag ‘n’ drop operations between different |
|
0x10000 |
Hides the Page Container when there is one or fewer tabs. |
|
0x10020 |
|
|
0x20000 |
Use Firefox 2 style for tabs. |
|
0x40000 |
Does not allow tabs to have focus. |
|
0x80000 |
Use the Ribbon Tabs style. |
|
0x100000 |
Hides the Page Container allowing only keyboard navigation |
|
0x200000 |
Hides the navigation left/right arrows if all tabs fit |
name – the window name.
ChangeSelection
(self, page)¶Sets the selection for the given page.
page – an integer specifying the new selected page.
Note
The call to this function does not generate the page changing events.
SetSelection
(self, page)¶Sets the selection for the given page.
page – an integer specifying the new selected page.
Note
The call to this function generates the page changing events.