return _core_.NavigationKeyEvent_GetDirection(*args, **kwargs)
def SetDirection(*args, **kwargs):
- """SetDirection(self, bool bForward)"""
+ """SetDirection(self, bool forward)"""
return _core_.NavigationKeyEvent_SetDirection(*args, **kwargs)
def IsWindowChange(*args, **kwargs):
return _core_.NavigationKeyEvent_IsWindowChange(*args, **kwargs)
def SetWindowChange(*args, **kwargs):
- """SetWindowChange(self, bool bIs)"""
+ """SetWindowChange(self, bool ischange)"""
return _core_.NavigationKeyEvent_SetWindowChange(*args, **kwargs)
+ def SetFlags(*args, **kwargs):
+ """SetFlags(self, long flags)"""
+ return _core_.NavigationKeyEvent_SetFlags(*args, **kwargs)
+
def GetCurrentFocus(*args, **kwargs):
"""GetCurrentFocus(self) -> Window"""
return _core_.NavigationKeyEvent_GetCurrentFocus(*args, **kwargs)
"""SetCurrentFocus(self, Window win)"""
return _core_.NavigationKeyEvent_SetCurrentFocus(*args, **kwargs)
+ IsForward = _core_.NavigationKeyEvent_IsForward
+ WinChange = _core_.NavigationKeyEvent_WinChange
class NavigationKeyEventPtr(NavigationKeyEvent):
def __init__(self, this):
def SetSizeHints(*args):
"""
+ SetSizeHints(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)
SetSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
int incH=-1)
- SetSizeHints(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), the
default values will be used. If this function is called, the user
- will not be able to size the window outside the given bounds. The
- resizing increments are only significant under Motif or Xt.
+ will not be able to size the window outside the given bounds (if it is
+ a top-level window.) Sizers will also inspect the minimum window size
+ and will use that value if set when calculating layout.
+
+ The resizing increments are only significant under Motif or Xt.
"""
return _core_.Window_SetSizeHints(*args)
def SetVirtualSizeHints(*args):
"""
- SetVirtualSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1)
SetVirtualSizeHints(self, Size minSize, Size maxSize=DefaultSize)
+ SetVirtualSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1)
Allows specification of minimum and maximum virtual window sizes. If a
pair of values is not set (or set to -1), the default values will be
"""
return _core_.Window_SetVirtualSizeHints(*args)
+ def GetMaxSize(*args, **kwargs):
+ """GetMaxSize(self) -> Size"""
+ return _core_.Window_GetMaxSize(*args, **kwargs)
+
+ def GetMinSize(*args, **kwargs):
+ """GetMinSize(self) -> Size"""
+ return _core_.Window_GetMinSize(*args, **kwargs)
+
+ def SetMinSize(*args, **kwargs):
+ """
+ SetMinSize(self, Size minSize)
+
+ A more convenient method than `SetSizeHints` for setting just the
+ min size.
+ """
+ return _core_.Window_SetMinSize(*args, **kwargs)
+
+ def SetMaxSize(*args, **kwargs):
+ """
+ SetMaxSize(self, Size maxSize)
+
+ A more convenient method than `SetSizeHints` for setting just the
+ max size.
+ """
+ return _core_.Window_SetMaxSize(*args, **kwargs)
+
def GetMinWidth(*args, **kwargs):
"""GetMinWidth(self) -> int"""
return _core_.Window_GetMinWidth(*args, **kwargs)
"""GetMaxHeight(self) -> int"""
return _core_.Window_GetMaxHeight(*args, **kwargs)
- def GetMaxSize(*args, **kwargs):
- """GetMaxSize(self) -> Size"""
- return _core_.Window_GetMaxSize(*args, **kwargs)
-
- def GetMinSize(*args, **kwargs):
- """GetMinSize(self) -> Size"""
- return _core_.Window_GetMinSize(*args, **kwargs)
-
def SetVirtualSize(*args, **kwargs):
"""
SetVirtualSize(self, Size size)
"""
return _core_.Window_SetTmpDefaultItem(*args, **kwargs)
+ def Navigate(*args, **kwargs):
+ """
+ Navigate(self, int flags=NavigationKeyEvent.IsForward) -> bool
+
+ :param flags: A combination of the ``IsForward`` and ``WinChange``
+ values in the `wx.NavigationKeyEvent` class, which
+ determine if the navigation should be in forward or
+ reverse order, and if it should be able to cross
+ parent window boundaries, such as between notebook
+ pages or MDI child frames. Typically the status of
+ the Shift key (for forward or reverse) or the
+ Control key (for WinChange) would be used to
+ determine how to set the flags.
+
+ situation in which you may wish to call this method is from a text
+ rol custom keypress handler to do the default navigation behaviour
+ the tab key, since the standard default behaviour for a multiline
+ control with the wx.TE_PROCESS_TAB style is to insert a tab and
+ navigate to the next control.
+ """
+ return _core_.Window_Navigate(*args, **kwargs)
+
def GetChildren(*args, **kwargs):
"""
GetChildren(self) -> PyObject
def PopupMenuXY(*args, **kwargs):
"""
- PopupMenuXY(self, Menu menu, int x, int y) -> bool
+ PopupMenuXY(self, Menu menu, int x=-1, int y=-1) -> bool
- Pops up the given menu at the specified coordinates, relative to this
- window, and returns control when the user has dismissed the menu. If a
- menu item is selected, the corresponding menu event is generated and
- will be processed as usual.
+ Pops up the given menu at the specified coordinates, relative to this window,
+ and returns control when the user has dismissed the menu. If a menu item is
+ selected, the corresponding menu event is generated and will be processed as
+ usual. If the default position is given then the current position of the
+ mouse cursor will be used.
"""
return _core_.Window_PopupMenuXY(*args, **kwargs)
def PopupMenu(*args, **kwargs):
"""
- PopupMenu(self, Menu menu, Point pos) -> bool
+ PopupMenu(self, Menu menu, Point pos=DefaultPosition) -> bool
- Pops up the given menu at the specified coordinates, relative to this
- window, and returns control when the user has dismissed the menu. If a
- menu item is selected, the corresponding menu event is generated and
- will be processed as usual.
+ Pops up the given menu at the specified coordinates, relative to this window,
+ and returns control when the user has dismissed the menu. If a menu item is
+ selected, the corresponding menu event is generated and will be processed as
+ usual. If the default position is given then the current position of the
+ mouse cursor will be used.
"""
return _core_.Window_PopupMenu(*args, **kwargs)
return _core_.Control_SetLabel(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
- """
- GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
-
- Get the default attributes for this class. This is useful if you want
- to use the same font or colour in your own control as in a standard
- control -- which is a much better idea than hard coding specific
- colours or fonts which might look completely out of place on the
- user's system, especially if it uses themes.
-
- The variant parameter is only relevant under Mac currently and is
- ignore under other platforms. Under Mac, it will change the size of
- the returned font. See `wx.Window.SetWindowVariant` for more about
- this.
- """
+ """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
return _core_.Control_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
return val
def Control_GetClassDefaultAttributes(*args, **kwargs):
- """
- Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
-
- Get the default attributes for this class. This is useful if you want
- to use the same font or colour in your own control as in a standard
- control -- which is a much better idea than hard coding specific
- colours or fonts which might look completely out of place on the
- user's system, especially if it uses themes.
-
- The variant parameter is only relevant under Mac currently and is
- ignore under other platforms. Under Mac, it will change the size of
- the returned font. See `wx.Window.SetWindowVariant` for more about
- this.
- """
+ """Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
return _core_.Control_GetClassDefaultAttributes(*args, **kwargs)
#---------------------------------------------------------------------------