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.
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
wx.
ToolBarToolBase
(Object)¶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, *args, **kw)¶__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) –
Attach
(self, tbar)¶tbar (wx.ToolBar) –
CanBeToggled
(self)¶bool
Detach
(self)¶Enable
(self, enable)¶enable (bool) –
bool
GetClientData
(self)¶PyUserData
GetControl
(self)¶GetId
(self)¶int
GetKind
(self)¶GetLabel
(self)¶string
GetLongHelp
(self)¶string
GetShortHelp
(self)¶string
GetStyle
(self)¶int
GetToolBar
(self)¶Return the toolbar this tool is a member of.
IsButton
(self)¶bool
IsControl
(self)¶bool
IsEnabled
(self)¶bool
IsSeparator
(self)¶bool
IsStretchable
(self)¶bool
IsStretchableSpace
(self)¶bool
IsToggled
(self)¶bool
MakeStretchable
(self)¶SetClientData
(self, clientData)¶clientData (PyUserData) –
SetLabel
(self, label)¶label (string) –
SetLongHelp
(self, help)¶help (string) –
bool
SetShortHelp
(self, help)¶help (string) –
bool
SetToggle
(self, toggle)¶toggle (bool) –
bool
Toggle
(self, *args, **kw)¶Toggle (self, toggle)
toggle (bool) –
bool
Toggle (self)
ClientData
¶See GetClientData
and SetClientData
Control
¶See GetControl
DisabledBitmap
¶See GetDisabledBitmap
and SetDisabledBitmap
DropdownMenu
¶See GetDropdownMenu
and SetDropdownMenu
LongHelp
¶See GetLongHelp
and SetLongHelp
NormalBitmap
¶See GetNormalBitmap
and SetNormalBitmap
ShortHelp
¶See GetShortHelp
and SetShortHelp
ToolBar
¶See GetToolBar