wx.aui.AuiToolBarItem¶ wx.aui.AuiToolBarItem is part of the AUI class framework, representing a toolbar element.
See also wx.aui.AuiToolBar and AUI Overview.
It has a unique id (except for the separators which always have id = -1), the style (telling whether it is a normal button, separator or a control), the state (toggled or not, enabled or not) and short and long help strings. The default implementations use the short help string for the tooltip text which is popped up when the mouse pointer enters the tool and the long help string for the applications status bar (currently not implemented).
Class Hierarchy¶
Inheritance diagram for class AuiToolBarItem:
Methods Summary¶Default Constructor. |
|
Assigns the properties of the wx.aui.AuiToolBarItem “c” to this. |
|
Returns whether the toolbar item can be toggled. |
|
Returns the toolbar item identifier. |
|
Returns the toolbar item kind. |
|
Gets the current state of the toolbar item. |
|
Returns the Window associated to the toolbar item. |
|
Returns whether the toolbar item has an associated drop down button. |
|
Set whether this tool has a drop down button. |
|
Sets the toolbar item identifier. |
|
Sets the wx.aui.AuiToolBarItem kind. |
|
Set the current state of the toolbar item. |
|
Assigns a window to the toolbar item. |
Properties Summary¶See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
Class API¶Possible constructors:
AuiToolBarItem() -> None
AuiToolBarItem(c) -> None
AuiToolBarItem is part of the AUI class framework, representing a
toolbar element.
__init__ (self)
Default Constructor.
None
__init__ (self, c)
Assigns the properties of the wx.aui.AuiToolBarItem “c” to this.
None
Assigns the properties of the wx.aui.AuiToolBarItem “c” to this.
None
Returns whether the toolbar item can be toggled.
bool
Added in version 4.1/wxWidgets-3.1.5.
int
Returns the toolbar item identifier.
int
Returns the toolbar item kind.
int
one of ITEM_NORMAL , ITEM_CHECK or ITEM_RADIO , ITEM_SEPARATOR , ITEM_CONTROL , ITEM_SPACER , ITEM_LABEL ,
str
str
Size
int
str
int
Gets the current state of the toolbar item.
int
an or’d combination of flags from AuiPaneButtonState representing the current state
int
Returns whether the toolbar item has an associated drop down button.
bool
bool
bool
b (bool)
None
l (int)
None
bmp (wx.BitmapBundle)
None
bmp (wx.BitmapBundle)
None
Set whether this tool has a drop down button.
This is only valid for wx.ITEM_NORMAL tools.
b (bool)
None
bmp (wx.BitmapBundle)
None
Sets the toolbar item identifier.
new_id (int)
None
Sets the wx.aui.AuiToolBarItem kind.
new_kind (int)
None
s (string)
None
s (string)
None
p (int)
None
s (string)
None
s (wx.SizerItem)
None
s (int)
None
Set the current state of the toolbar item.
new_state (int) – is an or’d combination of flags from AuiPaneButtonState
None
b (bool)
None
l (long)
None
Assigns a window to the toolbar item.
w (wx.Window)
None
See GetAlignment and SetAlignment
See GetDisabledBitmap and SetDisabledBitmap
See GetHoverBitmap and SetHoverBitmap
See GetLongHelp and SetLongHelp
See GetMinSize and SetMinSize
See GetProportion and SetProportion
See GetShortHelp and SetShortHelp
See GetSizerItem and SetSizerItem
See GetSpacerPixels and SetSpacerPixels
See GetUserData and SetUserData