X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/704eda0cdc33dfb009dfd578fdf78ee29e159f23..ff03f5670752dcc897e6f46872fa1fc51c9ebfa0:/wxPython/src/gtk/_windows.py diff --git a/wxPython/src/gtk/_windows.py b/wxPython/src/gtk/_windows.py index 3584dea91b..8ecebd1905 100644 --- a/wxPython/src/gtk/_windows.py +++ b/wxPython/src/gtk/_windows.py @@ -419,6 +419,51 @@ class TopLevelWindow(_core.Window): return _windows_.TopLevelWindow_CenterOnScreen(*args, **kwargs) CentreOnScreen = CenterOnScreen + def EnableCloseButton(*args, **kwargs): + """EnableCloseButton(self, bool enable=True) -> bool""" + return _windows_.TopLevelWindow_EnableCloseButton(*args, **kwargs) + + def SetTransparent(*args, **kwargs): + """SetTransparent(self, byte alpha) -> bool""" + return _windows_.TopLevelWindow_SetTransparent(*args, **kwargs) + + def CanSetTransparent(*args, **kwargs): + """CanSetTransparent(self) -> bool""" + return _windows_.TopLevelWindow_CanSetTransparent(*args, **kwargs) + + def GetDefaultItem(*args, **kwargs): + """ + GetDefaultItem(self) -> Window + + Get the default child of this parent, i.e. the one which is activated + by pressing such as the OK button on a wx.Dialog. + """ + return _windows_.TopLevelWindow_GetDefaultItem(*args, **kwargs) + + def SetDefaultItem(*args, **kwargs): + """ + SetDefaultItem(self, Window child) -> Window + + Set this child as default, return the old default. + """ + return _windows_.TopLevelWindow_SetDefaultItem(*args, **kwargs) + + def SetTmpDefaultItem(*args, **kwargs): + """ + SetTmpDefaultItem(self, Window win) + + Set this child as temporary default + """ + return _windows_.TopLevelWindow_SetTmpDefaultItem(*args, **kwargs) + + def GetTmpDefaultItem(*args, **kwargs): + """ + GetTmpDefaultItem(self) -> Window + + Return the temporary default item, which can be None. + """ + return _windows_.TopLevelWindow_GetTmpDefaultItem(*args, **kwargs) + _windows_.TopLevelWindow_swigregister(TopLevelWindow) cvar = _windows_.cvar FrameNameStr = cvar.FrameNameStr @@ -2201,12 +2246,14 @@ OVERWRITE_PROMPT = _windows_.OVERWRITE_PROMPT FILE_MUST_EXIST = _windows_.FILE_MUST_EXIST MULTIPLE = _windows_.MULTIPLE CHANGE_DIR = _windows_.CHANGE_DIR +HIDE_READONLY = _windows_.HIDE_READONLY FD_OPEN = _windows_.FD_OPEN FD_SAVE = _windows_.FD_SAVE FD_OVERWRITE_PROMPT = _windows_.FD_OVERWRITE_PROMPT FD_FILE_MUST_EXIST = _windows_.FD_FILE_MUST_EXIST FD_MULTIPLE = _windows_.FD_MULTIPLE FD_CHANGE_DIR = _windows_.FD_CHANGE_DIR +FD_PREVIEW = _windows_.FD_PREVIEW FD_DEFAULT_STYLE = _windows_.FD_DEFAULT_STYLE class FileDialog(Dialog): """ @@ -2421,7 +2468,7 @@ class SingleChoiceDialog(Dialog): """ GetSelection(self) -> int - Get the index of teh currently selected item. + Get the index of the currently selected item. """ return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs) @@ -2492,6 +2539,26 @@ class PasswordEntryDialog(TextEntryDialog): _windows_.PasswordEntryDialog_swigregister(PasswordEntryDialog) GetPasswordFromUserPromptStr = cvar.GetPasswordFromUserPromptStr +class NumberEntryDialog(Dialog): + """A dialog with spin control, ok and cancel buttons.""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """ + __init__(self, Window parent, String message, String prompt, String caption, + long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog + + Constructor. Use ShowModal method to show the dialog. + """ + _windows_.NumberEntryDialog_swiginit(self,_windows_.new_NumberEntryDialog(*args, **kwargs)) + self._setOORInfo(self) + + def GetValue(*args, **kwargs): + """GetValue(self) -> long""" + return _windows_.NumberEntryDialog_GetValue(*args, **kwargs) + +_windows_.NumberEntryDialog_swigregister(NumberEntryDialog) + class FontData(_core.Object): """ This class holds a variety of information related to font dialogs and