A toolbar tool represents one item on the toolbar.
It has a unique id (except for the separators), 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.
Return the toolbar this tool is a member of. |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
Possible constructors:
ToolBarToolBase(tbar=None, toolid=ID_SEPARATOR, label="",
bmpNormal=NullBitmap, bmpDisabled=NullBitmap, kind=ITEM_NORMAL,
clientData=None, shortHelpString="",
longHelpString="")
ToolBarToolBase(tbar, control, label)
A toolbar tool represents one item on the toolbar.
__init__ (self, tbar=None, toolid=ID_SEPARATOR, label=””, bmpNormal=NullBitmap, bmpDisabled=NullBitmap, kind=ITEM_NORMAL, clientData=None, shortHelpString=””, longHelpString=””)
tbar (wx.ToolBar) –
toolid (int) –
label (string) –
bmpNormal (wx.Bitmap) –
bmpDisabled (wx.Bitmap) –
kind (ItemKind) –
clientData (PyUserData) –
shortHelpString (string) –
longHelpString (string) –
__init__ (self, tbar, control, label)
tbar (wx.ToolBar) –
control (wx.Control) –
label (string) –
tbar (wx.ToolBar) –
bool
enable (bool) –
bool
PyUserData
int
string
string
string
int
Return the toolbar this tool is a member of.
bool
bool
bool
bool
bool
bool
bool
clientData (PyUserData) –
label (string) –
help (string) –
bool
help (string) –
bool
toggle (bool) –
bool
Toggle (self, toggle)
toggle (bool) –
bool
Toggle (self)
See GetClientData
and SetClientData
See GetControl
See GetDisabledBitmap
and SetDisabledBitmap
See GetDropdownMenu
and SetDropdownMenu
See GetLongHelp
and SetLongHelp
See GetNormalBitmap
and SetNormalBitmap
See GetShortHelp
and SetShortHelp
See GetToolBar