Base class for generic flat menu derived from PopupWindow
.
wx.lib.agw.flatmenu.ShadowPopupWindow
Default class constructor. |
|
Adjusts position so the menu will be fully visible on screen. |
|
Dismisses the popup window. |
|
Returns the menu logical owner, the owner does not necessarly mean the |
|
Returns the renderer for this class. |
|
Returns the top level menu. |
|
Handles children dismiss. |
|
Fires an event |
|
Popups menu at the specified point. |
|
Scroll one unit down. |
|
Scroll one unit up. |
|
Sets the menu owner height, this will be used to position the menu below |
FlatMenuBase
(ShadowPopupWindow)¶Base class for generic flat menu derived from PopupWindow
.
__init__
(self, parent=None)¶Default class constructor.
parent – the ShadowPopupWindow
parent window.
AdjustPosition
(self, pos)¶Adjusts position so the menu will be fully visible on screen.
pos – an instance of wx.Point
specifying the menu position.
Dismiss
(self, dismissParent, resetOwner)¶Dismisses the popup window.
dismissParent (bool) – whether to dismiss the parent menu or not;
resetOwner (bool) – True
to delete the link between this menu and the
owner menu, False
otherwise.
GetMenuOwner
(self)¶Returns the menu logical owner, the owner does not necessarly mean the menu parent, it can also be the window that popped up it.
GetRenderer
(self)¶Returns the renderer for this class.
GetRootMenu
(self)¶Returns the top level menu.
OnChildDismiss
(self)¶Handles children dismiss.
OnDismiss
(self)¶Fires an event EVT_FLAT_MENU_DISMISSED
and handle menu dismiss.
Popup
(self, pt, parent)¶Popups menu at the specified point.
ScrollDown
(self)¶Scroll one unit down. By default this function is empty, let derived class do something.
ScrollUp
(self)¶Scroll one unit up. By default this function is empty, let derived class do something.
SetOwnerHeight
(self, height)¶Sets the menu owner height, this will be used to position the menu below or above the owner.
height (integer) – an integer representing the menu owner height.