X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6923d0a94792d9fae2f4292d842ab723464b599b..42d0aa30b801d8c2ea7cd16a2a191bec4fbfa876:/wxPython/src/msw/_windows.py diff --git a/wxPython/src/msw/_windows.py b/wxPython/src/msw/_windows.py index 5dcdef14dd..5eae69855b 100644 --- a/wxPython/src/msw/_windows.py +++ b/wxPython/src/msw/_windows.py @@ -137,7 +137,11 @@ class ScrolledWindow(Panel): return _windows_.ScrolledWindow_SetScrollRate(*args, **kwargs) def GetScrollPixelsPerUnit(*args, **kwargs): - """GetScrollPixelsPerUnit() -> (xUnit, yUnit)""" + """ + GetScrollPixelsPerUnit() -> (xUnit, yUnit) + + Get the size of one logical unit in physical units. + """ return _windows_.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs) def EnableScrolling(*args, **kwargs): @@ -145,7 +149,11 @@ class ScrolledWindow(Panel): return _windows_.ScrolledWindow_EnableScrolling(*args, **kwargs) def GetViewStart(*args, **kwargs): - """GetViewStart() -> (x,y)""" + """ + GetViewStart() -> (x,y) + + Get the view start + """ return _windows_.ScrolledWindow_GetViewStart(*args, **kwargs) def SetScale(*args, **kwargs): @@ -593,6 +601,9 @@ class Dialog(TopLevelWindow): return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) + def SendSizeEvent(self): + self.ProcessEvent(wx.SizeEvent((-1,-1))) + class DialogPtr(Dialog): def __init__(self, this): @@ -1756,7 +1767,14 @@ class VScrolledWindow(Panel): return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs) def ScrollLines(*args, **kwargs): - """ScrollLines(self, int lines) -> bool""" + """ + ScrollLines(self, int lines) -> bool + + If the platform and window class supports it, scrolls the window by + the given number of lines down, if lines is positive, or up if lines + is negative. Returns True if the window was scrolled, False if it was + already on top/bottom and nothing was done. + """ return _windows_.VScrolledWindow_ScrollLines(*args, **kwargs) def ScrollPages(*args, **kwargs): @@ -1779,11 +1797,19 @@ class VScrolledWindow(Panel): return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs) def HitTestXT(*args, **kwargs): - """HitTestXT(self, int x, int y) -> int""" + """ + HitTestXT(self, int x, int y) -> int + + Test where the given (in client coords) point lies + """ return _windows_.VScrolledWindow_HitTestXT(*args, **kwargs) def HitTest(*args, **kwargs): - """HitTest(self, Point pt) -> int""" + """ + HitTest(self, Point pt) -> int + + Test where the given (in client coords) point lies + """ return _windows_.VScrolledWindow_HitTest(*args, **kwargs) def RefreshAll(*args, **kwargs): @@ -2471,7 +2497,12 @@ class MultiChoiceDialog(Dialog): self._setOORInfo(self) def SetSelections(*args, **kwargs): - """SetSelections(List selections)""" + """ + SetSelections(List selections) + + Specify the items in the list that should be selected, using a list of + integers. + """ return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs) def GetSelections(*args, **kwargs):