wx.lib.agw.aui.auibar.CommandToolBarEvent¶
A specialized command event class for events sent by AuiToolBar
.
Class Hierarchy¶
Known Subclasses¶
wx.lib.agw.aui.auibar.AuiToolBarEvent
Known Superclasses¶
Methods Summary¶
Default class constructor. |
|
Returns the point where the user clicked with the mouse. |
|
Returns the |
|
Returns the |
|
Returns whether the drop down menu has been clicked. |
|
Sets the clicking point. |
|
Sets whether the drop down menu has been clicked. |
|
Sets the |
|
Sets the |
Class API¶
- class CommandToolBarEvent(wx.PyCommandEvent)¶
A specialized command event class for events sent by
AuiToolBar
.
Methods¶
- __init__(self, command_type, win_id)¶
Default class constructor.
- Parameters:
command_type – the event kind or an instance of
PyCommandEvent
.win_id (integer) – the window identification number.
- GetClickPoint(self)¶
Returns the point where the user clicked with the mouse.
- GetItemRect(self)¶
Returns the
AuiToolBarItem
rectangle.
- GetToolId(self)¶
Returns the
AuiToolBarItem
identifier.
- IsDropDownClicked(self)¶
Returns whether the drop down menu has been clicked.
- SetClickPoint(self, p)¶
Sets the clicking point.
- Parameters:
p (wx.Point) – the location of the mouse click.
- SetDropDownClicked(self, c)¶
Sets whether the drop down menu has been clicked.
- Parameters:
c (bool) –
True
to set the drop down as clicked,False
otherwise.
- SetItemRect(self, r)¶
Sets the
AuiToolBarItem
rectangle.- Parameters:
r (wx.Rect) – the toolbar item rectangle.
- SetToolId(self, id)¶
Sets the
AuiToolBarItem
identifier.- Parameters:
id (integer) – the toolbar item identifier.