auibook.AuiNotebookEvent

Inheritance diagram for AuiNotebookEvent:


digraph inheritance689b5d3bb3 {
rankdir=LR;
size="8.0, 12.0";
  "wx._core.Object" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25];
  "wx._core.Event" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25];
  "wx._core.Object" -> "wx._core.Event" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "auibook.AuiNotebookEvent" [style="setlinewidth(0.5)",URL="#auibook.AuiNotebookEvent",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "auibook.CommandNotebookEvent" -> "auibook.AuiNotebookEvent" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "wx._core.CommandEvent" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25];
  "wx._core.Event" -> "wx._core.CommandEvent" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "wx._core.PyCommandEvent" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25];
  "wx._core.CommandEvent" -> "wx._core.PyCommandEvent" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "auibook.CommandNotebookEvent" [style="setlinewidth(0.5)",URL="CommandNotebookEvent.html#auibook.CommandNotebookEvent",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "wx._core.PyCommandEvent" -> "auibook.CommandNotebookEvent" [arrowsize=0.5,style="setlinewidth(0.5)"];
}


Description

A specialized command event class for events sent by L{AuiNotebook}.

Class API

Methods

class AuiNotebookEvent(command_type=None, win_id=0)

Bases: auibook.CommandNotebookEvent

A specialized command event class for events sent by L{AuiNotebook}.

__init__()

Default class constructor.

Parameters:
  • command_type – the event kind or an instance of L{wx.PyCommandEvent}.
  • win_id – the window identification number.
Allow()
The event is allowed.
Clone()

Returns a copy of the event.

Any event that is posted to the wxPython event system for later action (via L{wx.EvtHandler.AddPendingEvent} or L{wx.PostEvent}) must implement this method. All wxPython events fully implement this method, but any derived events implemented by the user should also implement this method just in case they (or some event derived from them) are ever posted.

All wxPython events implement a copy constructor, so the easiest way of implementing the Clone function is to implement a copy constructor for a new event (call it MyEvent) and then define the Clone function like this:

def Clone(self):
    return MyEvent(self)
GetNotifyEvent()
Returns the actual L{wx.NotifyEvent}.
IsAllowed()
Returns whether the event is allowed or not.
Veto()
Vetos the event.

Table Of Contents

This Page