A specialized command event class for events sent by AuiManager
.
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. |
AuiManagerEvent
(wx.PyCommandEvent)¶A specialized command event class for events sent by AuiManager
.
__init__
(self, eventType, id=1)¶Default class constructor.
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 AuiPaneButton
instance (if any).
GetManager
(self)¶Returns the associated AuiManager
(if any).
GetPane
(self)¶Returns the associated AuiPaneInfo
structure (if any).
GetVeto
(self)¶Returns whether the event has been vetoed or not.
SetButton
(self, b)¶Associates a AuiPaneButton
instance to this event.
b – a AuiPaneButton
instance.
SetCanVeto
(self, can_veto)¶Sets whether the event can be vetoed or not.
can_veto (bool) – True
if the event can be vetoed, False
otherwise.
SetDC
(self, pdc)¶Associates a wx.DC
device context to this event.
pdc – a wx.DC
device context object.
SetManager
(self, mgr)¶Associates a AuiManager
to the current event.
mgr – an instance of AuiManager
.
SetPane
(self, p)¶Associates a AuiPaneInfo
instance to this event.
p – a AuiPaneInfo
instance.
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.
veto (bool) – True
to veto the event, False
otherwise.