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.
Notice that the toolbar can not be modified by changing its tools via the (intentionally undocumented here) setter methods of this class, all the modifications must be done using the methods of wx.ToolBar itself.
Class Hierarchy¶Inheritance diagram for class
ToolBarToolBase:
Methods Summary¶ Properties Summary¶ Class API¶Possible constructors:
ToolBarToolBase(tbar=None, toolid=ID_SEPARATOR, label='', bmpNormal=NullBitmap, bmpDisabled=NullBitmap, kind=ITEM_NORMAL, clientData=None, shortHelpString='', longHelpString='') -> None ToolBarToolBase(tbar, control, label) -> None
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.BitmapBundle)
bmpDisabled (wx.BitmapBundle)
kind (ItemKind)
clientData (PyUserData)
shortHelpString (string)
longHelpString (string)
None
__init__ (self, tbar, control, label)
tbar (wx.ToolBar)
control (wx.Control)
label (string)
None
tbar (wx.ToolBar)
None
bool
None
enable (bool)
bool
PyUserData
Return the bundle containing disabled tool bitmaps.
This bundle may be invalid if the tool doesnât show a bitmap or doesnât have a specific disabled bitmap creates one automatically from the normal bitmap.
Added in version 4.1/wxWidgets-3.1.6.
int
str
str
Return the bundle containing normal tool bitmaps.
This bundle may be invalid if the tool doesnât show a bitmap.
Added in version 4.1/wxWidgets-3.1.6.
str
int
Return the toolbar this tool is a member of.
bool
bool
bool
bool
bool
bool
bool
None
clientData (PyUserData)
None
bmp (wx.BitmapBundle)
None
menu (wx.Menu)
None
label (string)
None
help (string)
bool
bmp (wx.BitmapBundle)
None
help (string)
bool
toggle (bool)
bool
Toggle (self, toggle)
toggle (bool)
bool
Toggle (self)
None
See GetBitmap
See GetClientData
and SetClientData
See GetControl
See GetDisabledBitmap
and SetDisabledBitmap
See GetDropdownMenu
and SetDropdownMenu
See GetId
See GetKind
See GetLongHelp
and SetLongHelp
See GetNormalBitmap
and SetNormalBitmap
See GetShortHelp
and SetShortHelp
See GetStyle
See GetToolBar
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4