wx.lib.agw.aui.framemanager.AuiManagerEvent¶
A specialized command event class for events sent by AuiManager.
Class Hierarchy¶
Known Superclasses¶
Methods Summary¶
Default class constructor. |
|
Returns whether the event can be vetoed and has been vetoed. |
|
Returns the associated |
|
Returns the associated |
|
Returns the associated |
|
Returns the associated |
|
Returns whether the event has been vetoed or not. |
|
Associates a |
|
Sets whether the event can be vetoed or not. |
|
Associates a |
|
Associates a |
|
Associates a |
|
Prevents the change announced by this event from happening. |
Class API¶
- class AuiManagerEvent(wx.PyCommandEvent)¶
A specialized command event class for events sent by
AuiManager.
Methods¶
- __init__(self, eventType, id=1)¶
Default class constructor.
- Parameters:
eventType (integer) – the event kind;
id (integer) – the event identification number.
- CanVeto(self)¶
Returns whether the event can be vetoed and has been vetoed.
- GetButton(self)¶
Returns the associated
AuiPaneButtoninstance (if any).
- GetManager(self)¶
Returns the associated
AuiManager(if any).
- GetPane(self)¶
Returns the associated
AuiPaneInfostructure (if any).
- GetVeto(self)¶
Returns whether the event has been vetoed or not.
- SetButton(self, b)¶
Associates a
AuiPaneButtoninstance to this event.- Parameters:
b – a
AuiPaneButtoninstance.
- SetCanVeto(self, can_veto)¶
Sets whether the event can be vetoed or not.
- Parameters:
can_veto (bool) –
Trueif the event can be vetoed,Falseotherwise.
- SetDC(self, pdc)¶
Associates a
wx.DCdevice context to this event.- Parameters:
pdc – a
wx.DCdevice context object.
- SetManager(self, mgr)¶
Associates a
AuiManagerto the current event.- Parameters:
mgr – an instance of
AuiManager.
- SetPane(self, p)¶
Associates a
AuiPaneInfoinstance to this event.- Parameters:
p – a
AuiPaneInfoinstance.
- Veto(self, veto=True)¶
Prevents the change announced by this event from happening.
It is in general a good idea to notify the user about the reasons for vetoing the change because otherwise the applications behaviour (which just refuses to do what the user wants) might be quite surprising.
- Parameters:
veto (bool) –
Trueto veto the event,Falseotherwise.