.. include:: headings.inc .. _ShowEvent: ========================================================================================================================================== |phoenix_title| **ShowEvent** ========================================================================================================================================== An event being sent when the window is shown or hidden. The event is triggered by calls to :meth:`Window.Show` , and any user action showing a previously hidden window or vice versa (if allowed by the current platform and/or window manager). Notice that the event is not triggered when the application is iconized (minimized) or restored under wxMSW. .. _ShowEvent-events: |events| Events Emitted by this Class ===================================== Handlers bound for the following event types will receive a :ref:`ShowEvent` parameter. - EVT_SHOW: Process a ``wxEVT_SHOW`` event. .. availability:: Only available for MSW, GTK, OS2. .. seealso:: :ref:`Events and Event Handling `, :meth:`Window.Show` , :meth:`Window.IsShown` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **ShowEvent** .. raw:: html

Inheritance diagram of ShowEvent

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~ShowEvent.__init__` Constructor. :meth:`~ShowEvent.IsShown` Return ``True`` if the window has been shown, ``False`` if it has been hidden. :meth:`~ShowEvent.SetShow` Set whether the windows was shown or hidden. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~ShowEvent.Show` See :meth:`~ShowEvent.IsShown` and :meth:`~ShowEvent.SetShow` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: ShowEvent(Event) An event being sent when the window is shown or hidden. **Possible constructors**:: ShowEvent(winid=0, show=False) .. method:: __init__(self, winid=0, show=False) Constructor. :param `winid`: :type `winid`: int :param `show`: :type `show`: bool .. method:: IsShown(self) Return ``True`` if the window has been shown, ``False`` if it has been hidden. :rtype: `bool` .. method:: SetShow(self, show) Set whether the windows was shown or hidden. :param `show`: :type `show`: bool .. attribute:: Show See :meth:`~ShowEvent.IsShown` and :meth:`~ShowEvent.SetShow`