X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ac8dba00c38e34f3b69d4199366c89bf19e2cd8..11ec0dcea243f7ce1cbe7d33bfd9cd0e2f6d9083:/wxPython/src/gtk/_windows.py?ds=sidebyside diff --git a/wxPython/src/gtk/_windows.py b/wxPython/src/gtk/_windows.py index dda373a8ad..0fa05fae43 100644 --- a/wxPython/src/gtk/_windows.py +++ b/wxPython/src/gtk/_windows.py @@ -41,6 +41,28 @@ class Panel(_core.Window): """ return _windows_.Panel_InitDialog(*args, **kwargs) + def SetFocus(*args, **kwargs): + """ + SetFocus(self) + + Overrides `wx.Window.SetFocus`. This method uses the (undocumented) + mix-in class wxControlContainer which manages the focus and TAB logic + for controls which usually have child controls. In practice, if you + call this method and the panel has at least one child window, then the + focus will be given to the child window. + """ + return _windows_.Panel_SetFocus(*args, **kwargs) + + def SetFocusIgnoringChildren(*args, **kwargs): + """ + SetFocusIgnoringChildren(self) + + In contrast to `SetFocus` (see above) this will set the focus to the + panel even of there are child windows in the panel. This is only + rarely needed. + """ + return _windows_.Panel_SetFocusIgnoringChildren(*args, **kwargs) + def GetClassDefaultAttributes(*args, **kwargs): """ GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes @@ -1102,6 +1124,28 @@ class SplitterWindow(_core.Window): """ return _windows_.SplitterWindow_GetSashPosition(*args, **kwargs) + def SetSashGravity(*args, **kwargs): + """ + SetSashGravity(self, double gravity) + + Set the sash gravity. Gravity is a floating-point factor between 0.0 + and 1.0 which controls position of sash while resizing the + `wx.SplitterWindow`. The gravity specifies how much the left/top + window will grow while resizing. + """ + return _windows_.SplitterWindow_SetSashGravity(*args, **kwargs) + + def GetSashGravity(*args, **kwargs): + """ + GetSashGravity(self) -> double + + Gets the sash gravity. + + :see: `SetSashGravity` + + """ + return _windows_.SplitterWindow_GetSashGravity(*args, **kwargs) + def SetMinimumPaneSize(*args, **kwargs): """ SetMinimumPaneSize(self, int min) @@ -2604,6 +2648,7 @@ class SingleChoiceDialogPtr(SingleChoiceDialog): self.__class__ = SingleChoiceDialog _windows_.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr) +TextEntryDialogStyle = _windows_.TextEntryDialogStyle class TextEntryDialog(Dialog): """A dialog with text control, [ok] and [cancel] buttons""" def __repr__(self): @@ -2612,7 +2657,7 @@ class TextEntryDialog(Dialog): """ __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr, String defaultValue=EmptyString, - long style=wxTextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog + long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog Constructor. Use ShowModal method to show the dialog. """ @@ -2654,7 +2699,7 @@ class PasswordEntryDialog(TextEntryDialog): """ __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr, String value=EmptyString, - long style=wxTextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog + long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog """ newobj = _windows_.new_PasswordEntryDialog(*args, **kwargs) self.this = newobj.this @@ -3300,7 +3345,7 @@ class MDIChildFrame(Frame): return _windows_.MDIChildFrame_Activate(*args, **kwargs) def Maximize(*args, **kwargs): - """Maximize(self, bool maximize)""" + """Maximize(self, bool maximize=True)""" return _windows_.MDIChildFrame_Maximize(*args, **kwargs) def Restore(*args, **kwargs):