Table Of Contents

Previous topic

WindowDisabler

Next topic

WindowVariant

This Page

phoenix_title WindowModalDialogEvent


class_hierarchy Inheritance Diagram

Inheritance diagram for class WindowModalDialogEvent

Inheritance diagram of WindowModalDialogEvent


method_summary Methods Summary

__init__  
Clone Returns a copy of the event.
GetDialog  
GetReturnCode  

property_summary Properties Summary

Dialog See GetDialog
ReturnCode See GetReturnCode

api Class API



class WindowModalDialogEvent(CommandEvent)

Possible constructors:

WindowModalDialogEvent(commandType=wxEVT_NULL, id=0)

Methods



__init__(self, commandType=wxEVT_NULL, id=0)
Parameters:
  • commandType (EventType) –
  • id (int) –


Clone(self)

Returns a copy of the event.

Any event that is posted to the wxWidgets event system for later action (via EvtHandler.AddPendingEvent , EvtHandler.QueueEvent or PostEvent) must implement this method.

All wxWidgets 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 wxWidgets 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()
Return type: Event


GetDialog(self)
Return type: Dialog


GetReturnCode(self)
Return type:int

Properties



Dialog

See GetDialog



ReturnCode

See GetReturnCode