AGW Logo

agw_title SButtonEvent

Event sent from the generic buttons when the button is activated.

hierarchy Inheritance Diagram

Inheritance diagram for: SButtonEvent

Inheritance diagram of SButtonEvent


method_summary Methods Summary

__init__Default class constructor.
GetButtonObjReturns the object associated with this event.
GetIsDownReturns True if the button event is “pressed”.
SetButtonObjSets the event object for the event.
SetIsDownSets the button event as pressed.

API Class API

class SButtonEvent(wx.PyCommandEvent)[source]

Event sent from the generic buttons when the button is activated.



__init__(eventType, eventId)[source]

Default class constructor.

Parameters:
  • eventType – the event type;
  • eventId – the event identifier.


GetButtonObj()[source]

Returns the object associated with this event.



GetIsDown()[source]

Returns True if the button event is “pressed”.



SetButtonObj(btn)[source]

Sets the event object for the event.

Parameters:btn – the button object.


SetIsDown(isDown)[source]

Sets the button event as pressed.

Parameters:isDownTrue to set the event as “pressed”, False otherwise.
Tree

Table Of Contents

Previous topic

SButton

Next topic

SToggleButton