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.
Bitmap | See GetBitmap |
ClientData | See GetClientData and SetClientData |
Control | See GetControl |
DisabledBitmap | See GetDisabledBitmap and SetDisabledBitmap |
DropdownMenu | See GetDropdownMenu and SetDropdownMenu |
Id | See GetId |
Kind | See GetKind |
Label | See GetLabel and SetLabel |
LongHelp | See GetLongHelp and SetLongHelp |
NormalBitmap | See GetNormalBitmap and SetNormalBitmap |
ShortHelp | See GetShortHelp and SetShortHelp |
Style | See GetStyle |
ToolBar | See GetToolBar |
A toolbar tool represents one item on the toolbar.
Possible constructors:
ToolBarToolBase(tbar=None, toolid=ID_SEPARATOR, label='',
bmpNormal=NullBitmap, bmpDisabled=NullBitmap, kind=ITEM_NORMAL,
clientData=None, shortHelpString='',
longHelpString='')
ToolBarToolBase(tbar, control, label)
Overloaded Implementations:
__init__ (self, tbar=None, toolid=ID_SEPARATOR, label=’‘, bmpNormal=NullBitmap, bmpDisabled=NullBitmap, kind=ITEM_NORMAL, clientData=None, shortHelpString=’‘, longHelpString=’‘)
Parameters: |
---|
__init__ (self, tbar, control, label)
Parameters: |
|
---|
Parameters: | tbar (ToolBarBase) – |
---|
Return type: | bool |
---|
Parameters: | enable (bool) – |
---|---|
Return type: | bool |
Return type: | PyUserData |
---|
Return type: | int |
---|
Return type: | string |
---|
Return type: | string |
---|
Return type: | string |
---|
Return type: | int |
---|
Return type: | ToolBarBase |
---|
Return type: | bool |
---|
Return type: | bool |
---|
Return type: | bool |
---|
Return type: | bool |
---|
Return type: | bool |
---|
Return type: | bool |
---|
Return type: | bool |
---|
Parameters: | clientData (PyUserData) – |
---|
Parameters: | label (string) – |
---|
Parameters: | help (string) – |
---|---|
Return type: | bool |
Parameters: | help (string) – |
---|---|
Return type: | bool |
Parameters: | toggle (bool) – |
---|---|
Return type: | bool |
Overloaded Implementations:
Toggle (self, toggle)
Parameters: | toggle (bool) – |
---|---|
Return type: | 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