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):
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):
"""GetTargetWindow(self) -> Window"""
return _windows_.ScrolledWindow_GetTargetWindow(*args, **kwargs)
+ def DoPrepareDC(*args, **kwargs):
+ """
+ DoPrepareDC(self, DC dc)
+
+ Normally what is called by `PrepareDC`.
+ """
+ return _windows_.ScrolledWindow_DoPrepareDC(*args, **kwargs)
+
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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):
#---------------------------------------------------------------------------
+SB_NORMAL = _windows_.SB_NORMAL
+SB_FLAT = _windows_.SB_FLAT
+SB_RAISED = _windows_.SB_RAISED
class StatusBar(_core.Window):
def __repr__(self):
return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
"""SetStatusWidths(self, int widths, int widths_field)"""
return _windows_.StatusBar_SetStatusWidths(*args, **kwargs)
+ def SetStatusStyles(*args, **kwargs):
+ """SetStatusStyles(self, int styles, int styles_field)"""
+ return _windows_.StatusBar_SetStatusStyles(*args, **kwargs)
+
def GetFieldRect(*args, **kwargs):
"""GetFieldRect(self, int i) -> Rect"""
return _windows_.StatusBar_GetFieldRect(*args, **kwargs)
return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs)
def ScrollLines(*args, **kwargs):
- """
- 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.
- """
+ """ScrollLines(self, int lines) -> bool"""
return _windows_.VScrolledWindow_ScrollLines(*args, **kwargs)
def ScrollPages(*args, **kwargs):
"""RefreshLines(self, size_t from, size_t to)"""
return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs)
- def HitTestXT(*args, **kwargs):
+ def HitTestXY(*args, **kwargs):
"""
- HitTestXT(self, int x, int y) -> int
+ HitTestXY(self, int x, int y) -> int
Test where the given (in client coords) point lies
"""
- return _windows_.VScrolledWindow_HitTestXT(*args, **kwargs)
+ return _windows_.VScrolledWindow_HitTestXY(*args, **kwargs)
def HitTest(*args, **kwargs):
"""
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):
Update(self, int value, String newmsg=EmptyString) -> bool
Updates the dialog, setting the progress bar to the new value and, if
- given changes the message above it. Returns true unless the Cancel
- button has been pressed.
+ given changes the message above it. The value given should be less
+ than or equal to the maximum value given to the constructor and the
+ dialog is closed if it is equal to the maximum. Returns true unless
+ the Cancel button has been pressed.
If false is returned, the application can either immediately destroy
the dialog or ask the user for the confirmation and if the abort is