FXTabBar

The tab bar layout manager arranges tab items side by side, and raises the active tab item above the neighboring tab items. The tab bar can be have the tab items on the top or bottom for horizontal arrangement, or on the left or right for vertical arrangement.


FXTabBar(p, tgt=None, sel=0, opts=TABBOOK_NORMAL, x=0, y=0, w=0, h=0, pl=DEFAULT_SPACING, pr=DEFAULT_SPACING, pt=DEFAULT_SPACING, pb=DEFAULT_SPACING)

Construct a tab bar.

ArgumentTypeDefaultDescription
pFXComposite  
tgtFXObjectNone 
selInt0 
optsIntTABBOOK_NORMAL 
xInt0 
yInt0 
wInt0 
hInt0 
plIntDEFAULT_SPACING 
prIntDEFAULT_SPACING 
ptIntDEFAULT_SPACING 
pbIntDEFAULT_SPACING 


create()

Create all of the server-side resources for this window // CAE.

Reimplemented from FXComposite.


getCurrent()

Return the currently active tab item.


getDefaultHeight()

Return default height.

Reimplemented from FXPacker.

Reimplemented in FXTabBook.


getDefaultWidth()

Return default width.

Reimplemented from FXPacker.

Reimplemented in FXTabBook.


getTabStyle()

Return tab bar style.


setCurrent(panel, notify=False)

Change currently active tab item; this raises the active tab item slightly above the neighboring tab items.

ArgumentTypeDefaultDescription
panelInt  
notifyBoolFalse 


setTabStyle(style)

Change tab tab style.

ArgumentTypeDefaultDescription
styleInt  


Class flags

ID_OPEN_ITEM

Sent from one of the FXTabItems.

ID_OPEN_FIRST

Switch to panel ID_OPEN_FIRST+i.


Global flags

Tab Book options

TABBOOK_TOPTABS

Tabs on top (default).

TABBOOK_BOTTOMTABS

Tabs on bottom.

TABBOOK_SIDEWAYS

Tabs on left.

TABBOOK_LEFTTABS

Tabs on left.

TABBOOK_RIGHTTABS

Tabs on right.