Phoenix Logo

phoenix_title wx.lib.agw.zoombar.ZoomBarEvent

Event sent from the ZoomBar when a button is activated.


class_hierarchy Class Hierarchy

Inheritance diagram for class ZoomBarEvent:


super_classes Known Superclasses

wx.PyCommandEvent


method_summary Methods Summary

__init__ Default class constructor.
GetLabel Returns the text label of the selected button.
GetSelection Returns the index of the selected button.
SetLabel Sets the text label of the selected button.
SetSelection Sets the index of the selected button.

api Class API



class ZoomBarEvent(wx.PyCommandEvent)

Event sent from the ZoomBar when a button is activated.


Methods



__init__(self, eventType, eventId=1)

Default class constructor.

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


GetLabel(self)

Returns the text label of the selected button.



GetSelection(self)

Returns the index of the selected button.



SetLabel(self, label)

Sets the text label of the selected button.

Parameters:label – the text label of the selected button.


SetSelection(self, selection)

Sets the index of the selected button.

Parameters:selection – an integer indicating the current selected button.