Table Of Contents

Previous topic

PopupTransientWindow

Next topic

PortId

This Page

phoenix_title PopupWindow

A special kind of top level window used for popup menus, combobox popups and such.

See also

Dialog, Frame


class_hierarchy Inheritance Diagram

Inheritance diagram for class PopupWindow

Inheritance diagram of PopupWindow


sub_classes Known Subclasses

PopupTransientWindow


method_summary Methods Summary

__init__ Default constructor.
Create Create method for two-step creation.
Position Move the popup window to the right position, i.e.

api Class API



A special kind of top level window used for popup menus, combobox popups and such.

Possible constructors:

PopupWindow()

PopupWindow(parent, flags=BORDER_NONE)

Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)

Default constructor.



__init__ (self, parent, flags=BORDER_NONE)

Constructor.

Parameters:
  • parent (Window) –
  • flags (int) –





Create(self, parent, flags=BORDER_NONE)

Create method for two-step creation.

Parameters:
  • parent (Window) –
  • flags (int) –
Return type:

bool



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.

Parameters:
  • ptOrigin (Point) – Must be given in screen coordinates!
  • sizePopup (Size) – The size of the popup window