Base class for generic flat menu derived from PopupWindow
.
__init__ |
Default class constructor. |
AdjustPosition |
Adjusts position so the menu will be fully visible on screen. |
Dismiss |
Dismisses the popup window. |
GetMenuOwner |
Returns the menu logical owner, the owner does not necessarly mean the |
GetRenderer |
Returns the renderer for this class. |
GetRootMenu |
Returns the top level menu. |
OnChildDismiss |
Handles children dismiss. |
OnDismiss |
Fires an event EVT_FLAT_MENU_DISMISSED and handle menu dismiss. |
Popup |
Popups menu at the specified point. |
ScrollDown |
Scroll one unit down. |
ScrollUp |
Scroll one unit up. |
SetOwnerHeight |
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.
Parameters: | parent – the ShadowPopupWindow parent window. |
---|
AdjustPosition
(self, pos)¶Adjusts position so the menu will be fully visible on screen.
Parameters: | pos – an instance of wx.Point specifying the menu position. |
---|
Dismiss
(self, dismissParent, resetOwner)¶Dismisses the popup window.
Parameters: |
|
---|
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.
Parameters: |
---|
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.
Parameters: | height (integer) – an integer representing the menu owner height. |
---|