A specialized command event class for events sent by AuiToolBar
.
wx.lib.agw.aui.auibar.AuiToolBarEvent
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 |
CommandToolBarEvent
(wx.PyCommandEvent)¶A specialized command event class for events sent by AuiToolBar
.
__init__
(self, command_type, win_id)¶Default class constructor.
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.
p (wx.Point) – the location of the mouse click.
SetDropDownClicked
(self, c)¶Sets whether the drop down menu has been clicked.
c (bool) – True
to set the drop down as clicked, False
otherwise.
SetItemRect
(self, r)¶Sets the AuiToolBarItem
rectangle.
r (wx.Rect) – the toolbar item rectangle.
SetToolId
(self, id)¶Sets the AuiToolBarItem
identifier.
id (integer) – the toolbar item identifier.