Display one or more windows in a notebook.
Method Summary |
|
__init__ (self,
parent,
id,
pos,
size,
style,
name)
Default class constructor. |
|
AddPage (self,
page,
text,
select,
imageId)
Add a page to the FlatNotebook . |
|
AdvanceSelection (self,
forward)
Cycles through the tabs. |
|
AssignImageList (self,
imageList)
Assigns the image list for the page control. |
|
DeleteAllPages (self)
Deletes all the pages. |
|
DeletePage (self,
page)
Deletes the specified page, and the associated window. |
|
Enable (self,
page,
enabled)
Enables or disables a tab. |
|
GetActiveTabColour (self)
Returns the active tab colour. |
|
GetActiveTabTextColour (self)
Get the active tab text colour. |
|
GetBorderColour (self)
Returns the border colour. |
|
GetCurrentPage (self)
Returns the currently selected notebook page or None. |
|
GetEnabled (self,
page)
Returns whether a tab is enabled or not. |
|
GetGradientColourBorder (self)
Gets the tab border colour. |
|
GetGradientColourFrom (self)
Gets first gradient colour. |
|
GetGradientColourTo (self)
Gets second gradient colour. |
|
GetImageList (self)
Returns the associated image list. |
|
GetNonActiveTabTextColour (self)
Returns the non active tabs text colour. |
|
GetPadding (self)
Returns the amount of space around each page's icon and label, in
pixels. |
|
GetPage (self,
page)
Returns the window at the given page position, or None. |
|
GetPageBestSize (self)
Return the page best size. |
|
GetPageCount (self)
Returns the number of pages in the FlatNotebook control. |
|
GetPageImage (self,
nPage)
Returns the image index for the given page. |
|
GetPageIndex (self,
win)
Returns the index at which the window is found. |
|
GetPageShapeAngle (self,
page_index)
Returns the angle associated to a tab. |
|
GetPageText (self,
nPage)
Returns the tab caption. |
|
GetPreviousSelection (self)
Returns the previous selection. |
|
GetSelection (self)
Returns the currently selected page, or -1 if none was selected. |
|
GetTabArea (self)
Returns the associated page. |
|
GetTabAreaColour (self)
Returns the area behind the tabs colour. |
|
Init (self)
Initializes all the class attributes. |
|
InsertPage (self,
indx,
page,
text,
select,
imageId)
Inserts a new page at the specified position. |
|
OnDropTarget (self,
x,
y,
nTabPage,
wnd_oldContainer)
Handles the drop action from a DND operation. |
|
OnNavigationKey (self,
event)
Handles the wx.EVT_NAVIGATION_KEY event for FlatNotebook . |
|
RemovePage (self,
page)
Deletes the specified page, without deleting the associated
window. |
|
SetActiveTabColour (self,
color)
Sets the active tab colour. |
|
SetActiveTabTextColour (self,
textColour)
Sets the text colour for the active tab. |
|
SetAllPagesShapeAngle (self,
angle)
Sets the angle associated to all the tab. |
|
SetGradientColourBorder (self,
border)
Sets the tab border colour. |
|
SetGradientColourFrom (self,
fr)
Sets the starting colour for the gradient. |
|
SetGradientColours (self,
fr,
to,
border)
Sets the gradient colours for the tab. |
|
SetGradientColourTo (self,
to)
Sets the ending colour for the gradient. |
|
SetImageList (self,
imageList)
Sets the image list for the page control. |
|
SetNonActiveTabTextColour (self,
color)
Sets the non active tabs text colour. |
|
SetPadding (self,
padding)
Sets the amount of space around each page's icon and label, in
pixels. |
|
SetPageImage (self,
page,
image)
Sets the image index for the given page. |
|
SetPageShapeAngle (self,
page_index,
angle)
Sets the angle associated to a tab. |
|
SetPageText (self,
page,
text)
Sets the text for the given page. |
|
SetRightClickMenu (self,
menu)
Sets the popup menu associated to a right click on a tab. |
|
SetSelection (self,
page)
Sets the selection for the given page. |
|
SetTabAreaColour (self,
color)
Sets the area behind the tabs colour. |
|
SetWindowStyleFlag (self,
style)
Sets the FlatNotebook window style flags. |