AGW Logo

agw_title AuiManagerEvent

A specialized command event class for events sent by AuiManager.

hierarchy Inheritance Diagram

Inheritance diagram for: AuiManagerEvent

Inheritance diagram of AuiManagerEvent


method_summary Methods Summary

__init__Default class constructor.
CanVetoReturns whether the event can be vetoed and has been vetoed.
GetButtonReturns the associated AuiPaneButton instance (if any).
GetDCReturns the associated wx.DC device context (if any).
GetManagerReturns the associated AuiManager (if any).
GetPaneReturns the associated AuiPaneInfo structure (if any).
GetVetoReturns whether the event has been vetoed or not.
SetButtonAssociates a AuiPaneButton instance to this event.
SetCanVetoSets whether the event can be vetoed or not.
SetDCAssociates a wx.DC device context to this event.
SetManagerAssociates a AuiManager to the current event.
SetPaneAssociates a AuiPaneInfo instance to this event.
VetoPrevents the change announced by this event from happening.

API Class API

class AuiManagerEvent(wx.PyCommandEvent)[source]

A specialized command event class for events sent by AuiManager.



__init__(eventType, id=1)[source]

Default class constructor.

Parameters:
  • eventType – the event kind;
  • id – the event identification number.


CanVeto()[source]

Returns whether the event can be vetoed and has been vetoed.



GetButton()[source]

Returns the associated AuiPaneButton instance (if any).



GetDC()[source]

Returns the associated wx.DC device context (if any).



GetManager()[source]

Returns the associated AuiManager (if any).



GetPane()[source]

Returns the associated AuiPaneInfo structure (if any).



GetVeto()[source]

Returns whether the event has been vetoed or not.



SetButton(b)[source]

Associates a AuiPaneButton instance to this event.

Parameters:b – a AuiPaneButton instance.


SetCanVeto(can_veto)[source]

Sets whether the event can be vetoed or not.

Parameters:can_veto – a bool flag. True if the event can be vetoed, False otherwise.


SetDC(pdc)[source]

Associates a wx.DC device context to this event.

Parameters:pdc – a wx.DC device context object.



SetManager(mgr)[source]

Associates a AuiManager to the current event.

Parameters:mgr – an instance of AuiManager.


SetPane(p)[source]

Associates a AuiPaneInfo instance to this event.

Parameters:p – a AuiPaneInfo instance.


Veto(veto=True)[source]

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:vetoTrue to veto the event, False otherwise.
Tree

Table Of Contents

Previous topic

AuiManager

Next topic

AuiManager_DCP