.. include:: headings.inc .. _PopupWindow: ========================================================================================================================================== |phoenix_title| **PopupWindow** ========================================================================================================================================== A special kind of top level window used for popup menus, combobox popups and such. .. seealso:: :ref:`Dialog`, :ref:`Frame` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **PopupWindow** .. raw:: html

Inheritance diagram of PopupWindow

| |sub_classes| Known Subclasses ============================== :ref:`PopupTransientWindow` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~PopupWindow.__init__` Default constructor. :meth:`~PopupWindow.Create` Create method for two-step creation. :meth:`~PopupWindow.Position` Move the popup window to the right position, i.e. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: PopupWindow(NonOwnedWindow) A special kind of top level window used for popup menus, combobox popups and such. **Possible constructors**:: PopupWindow() PopupWindow(parent, flags=BORDER_NONE) .. method:: __init__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__init__** `(self)` Default constructor. **~~~** **__init__** `(self, parent, flags=BORDER_NONE)` Constructor. :param `parent`: :type `parent`: Window :param `flags`: :type `flags`: int **~~~** .. method:: Create(self, parent, flags=BORDER_NONE) Create method for two-step creation. :param `parent`: :type `parent`: Window :param `flags`: :type `flags`: int :rtype: `bool` .. method:: Position(self, ptOrigin, sizePopup) Move the popup window to the right position, i.e. such that it is entirely visible. The popup is positioned at ptOrigin + size if it opens below and to the right (default), at ptOrigin - sizePopup if it opens above and to the left etc. :param `ptOrigin`: Must be given in screen coordinates! :type `ptOrigin`: Point :param `sizePopup`: The size of the popup window :type `sizePopup`: Size