X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0085ce493764aeb971cb312126cf46184fcc6916..89a3d0f77289fe8a39757bfc3bfe3704c009d224:/wxPython/src/gtk/_core.py?ds=inline diff --git a/wxPython/src/gtk/_core.py b/wxPython/src/gtk/_core.py index 94a9352223..26162f84fd 100644 --- a/wxPython/src/gtk/_core.py +++ b/wxPython/src/gtk/_core.py @@ -1738,6 +1738,8 @@ class CPPFileSystemHandler(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self): raise AttributeError, "No constructor defined" __repr__ = _swig_repr + __swig_destroy__ = _core_.delete_CPPFileSystemHandler + __del__ = lambda self : None; CPPFileSystemHandler_swigregister = _core_.CPPFileSystemHandler_swigregister CPPFileSystemHandler_swigregister(CPPFileSystemHandler) @@ -7754,7 +7756,10 @@ class Window(EvtHandler): """ GetPosition(self) -> Point - Get the window's position. + Get the window's position. Notice that the position is in client + coordinates for child windows and screen coordinates for the top level + ones, use `GetScreenPosition` if you need screen coordinates for all + kinds of windows. """ return _core_.Window_GetPosition(*args, **kwargs) @@ -7762,10 +7767,38 @@ class Window(EvtHandler): """ GetPositionTuple() -> (x,y) - Get the window's position. + Get the window's position. Notice that the position is in client + coordinates for child windows and screen coordinates for the top level + ones, use `GetScreenPosition` if you need screen coordinates for all + kinds of windows. """ return _core_.Window_GetPositionTuple(*args, **kwargs) + def GetScreenPosition(*args, **kwargs): + """ + GetScreenPosition(self) -> Point + + Get the position of the window in screen coordinantes. + """ + return _core_.Window_GetScreenPosition(*args, **kwargs) + + def GetScreenPositionTuple(*args, **kwargs): + """ + GetScreenPositionTuple() -> (x,y) + + Get the position of the window in screen coordinantes. + """ + return _core_.Window_GetScreenPositionTuple(*args, **kwargs) + + def GetScreenRect(*args, **kwargs): + """ + GetScreenRect(self) -> Rect + + Returns the size and position of the window in screen coordinantes as + a `wx.Rect` object. + """ + return _core_.Window_GetScreenRect(*args, **kwargs) + def GetSize(*args, **kwargs): """ GetSize(self) -> Size @@ -7786,7 +7819,7 @@ class Window(EvtHandler): """ GetRect(self) -> Rect - Returns the size and position of the window as a wx.Rect object. + Returns the size and position of the window as a `wx.Rect` object. """ return _core_.Window_GetRect(*args, **kwargs) @@ -9306,7 +9339,7 @@ class Window(EvtHandler): Sets the help text to be used as context-sensitive help for this window. Note that the text is actually stored by the current - wxHelpProvider implementation, and not in the window object itself. + `wx.HelpProvider` implementation, and not in the window object itself. """ return _core_.Window_SetHelpText(*args, **kwargs) @@ -9325,7 +9358,7 @@ class Window(EvtHandler): Gets the help text to be used as context-sensitive help for this window. Note that the text is actually stored by the current - wxHelpProvider implementation, and not in the window object itself. + `wx.HelpProvider` implementation, and not in the window object itself. """ return _core_.Window_GetHelpText(*args, **kwargs) @@ -10487,7 +10520,7 @@ class ItemContainer(object): def Insert(*args, **kwargs): """ - Insert(self, String item, int pos, PyObject clientData=None) -> int + Insert(self, String item, unsigned int pos, PyObject clientData=None) -> int Insert an item into the control before the item at the ``pos`` index, optionally associating some data object with the item. @@ -10504,7 +10537,7 @@ class ItemContainer(object): def Delete(*args, **kwargs): """ - Delete(self, int n) + Delete(self, unsigned int n) Deletes the item at the zero-based index 'n' from the control. Note that it is an error (signalled by a `wx.PyAssertionError` exception if @@ -10515,7 +10548,7 @@ class ItemContainer(object): def GetClientData(*args, **kwargs): """ - GetClientData(self, int n) -> PyObject + GetClientData(self, unsigned int n) -> PyObject Returns the client data associated with the given item, (if any.) """ @@ -10523,7 +10556,7 @@ class ItemContainer(object): def SetClientData(*args, **kwargs): """ - SetClientData(self, int n, PyObject clientData) + SetClientData(self, unsigned int n, PyObject clientData) Associate the given client data with the item at position n. """ @@ -10531,7 +10564,7 @@ class ItemContainer(object): def GetCount(*args, **kwargs): """ - GetCount(self) -> int + GetCount(self) -> unsigned int Returns the number of items in the control. """ @@ -10547,7 +10580,7 @@ class ItemContainer(object): def GetString(*args, **kwargs): """ - GetString(self, int n) -> String + GetString(self, unsigned int n) -> String Returns the label of the item with the given index. """ @@ -10559,7 +10592,7 @@ class ItemContainer(object): def SetString(*args, **kwargs): """ - SetString(self, int n, String s) + SetString(self, unsigned int n, String s) Sets the label for the given item. """