Phoenix Logo

phoenix_title wx.PopupWindow

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


class_hierarchy Class Hierarchy

Inheritance diagram for class PopupWindow:

sub_classes Known Subclasses

wx.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. such that it is entirely visible.

api Class API



class wx.PopupWindow(NonOwnedWindow)

Possible constructors:

PopupWindow()

PopupWindow(parent, flags=BORDER_NONE)

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


Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)

Default constructor.



__init__ (self, parent, flags=BORDER_NONE)

Constructor.

Parameters:





Create(self, parent, flags=BORDER_NONE)

Create method for two-step creation.

Parameters:
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 (wx.Point) – Must be given in screen coordinates!
  • sizePopup (wx.Size) – The size of the popup window