wx.lib.buttons.GenButtonEvent¶
Event sent from the generic buttons when the button is activated.
Class Hierarchy¶
Known Superclasses¶
Methods Summary¶
Default class constructor. |
|
Returns the object associated with this event. |
|
Returns the button toggle status as |
|
Sets the event object for the event. |
|
Set the button toggle status as ‘down’ or ‘up’. |
Class API¶
- class GenButtonEvent(wx.CommandEvent)¶
Event sent from the generic buttons when the button is activated.
Methods¶
- __init__(self, eventType, id)¶
Default class constructor.
- Parameters:
eventType (integer) – the event type;
id (integer) – the event identifier.
- GetButtonObj(self)¶
Returns the object associated with this event.
- Returns:
An instance of
GenButton
.
- GetIsDown(self)¶
Returns the button toggle status as
True
if the button is down,False
otherwise.- Return type:
bool
- SetButtonObj(self, btn)¶
Sets the event object for the event.
- Parameters:
btn – the button object, an instance of
GenButton
.
- SetIsDown(self, isDown)¶
Set the button toggle status as ‘down’ or ‘up’.
- Parameters:
isDown (bool) –
True
if the button is clicked,False
otherwise.