.. include:: headings.inc .. _ProcessEvent: ========================================================================================================================================== |phoenix_title| **ProcessEvent** ========================================================================================================================================== A process event is sent to the :ref:`EvtHandler` specified to :ref:`Process` when a process is terminated. .. _ProcessEvent-events: |events| Events Emitted by this Class ===================================== Handlers bound for the following event types will receive a :ref:`ProcessEvent` parameter. - EVT_END_PROCESS: Process a ``wxEVT_END_PROCESS`` event. `id` is the identifier of the process object (the id passed to the :ref:`Process` constructor) or a window to receive the event. .. seealso:: :ref:`Process`, :ref:`Events and Event Handling ` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **ProcessEvent** .. raw:: html

Inheritance diagram of ProcessEvent

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~ProcessEvent.__init__` Constructor. :meth:`~ProcessEvent.GetExitCode` Returns the exist status. :meth:`~ProcessEvent.GetPid` Returns the process id. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~ProcessEvent.ExitCode` See :meth:`~ProcessEvent.GetExitCode` :attr:`~ProcessEvent.Pid` See :meth:`~ProcessEvent.GetPid` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: ProcessEvent(Event) A process event is sent to the EvtHandler specified to Process when a process is terminated. **Possible constructors**:: ProcessEvent(id=0, pid=0, exitcode=0) .. method:: __init__(self, id=0, pid=0, exitcode=0) Constructor. Takes a ProcessObject or window id, a process id and an exit status. :param `id`: :type `id`: int :param `pid`: :type `pid`: int :param `exitcode`: :type `exitcode`: int .. method:: GetExitCode(self) Returns the exist status. :rtype: `int` .. method:: GetPid(self) Returns the process id. :rtype: `int` .. attribute:: ExitCode See :meth:`~ProcessEvent.GetExitCode` .. attribute:: Pid See :meth:`~ProcessEvent.GetPid`