Package Gnumed :: Package wxpython :: Module gmResizingWidgets :: Class cResizingWindow |
[frames] | no frames]

# Class cResizingWindow

source code

         object --+
                  |
    wx._core.Object --+
                      |
    wx._core.EvtHandler --+
                          |
            wx._core.Window --+
                              |
              wx._windows.Panel --+
                                  |
         wx._windows.ScrolledWindow --+
                                      |
                                     cResizingWindow

A vertically-scrolled window which allows subwindows to change their size, and adjusts accordingly.

Instance Methods
EvtHandler |
__init__(self, parent, id, pos=wx.Point(-1, -1), size=wx.Size(-1, -1)) __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, ... | source code
AddWidget(self, widget, label=None) Adds a widget, optionally with label | source code
Newline(self) Starts a newline on the widget | source code
DoLayout(self) Overridden by descendants, this function uses AddWidget and Newline to form the outline of the widget | source code
ReSize(self, widget, new_height) Called when a child widget has a new height, redoes the layout. | source code
EnsureVisible(self, widget, cur_x=0, cur_y=0) Ensures widget is visible | source code
SetValue(self, values) Runs SetValue() on all the fields | source code
GetValue(self) Return dict of values of inner widgets. | source code
Clear(self) Clears all widgets where this makes sense | source code
SetFocus(self) Overrides `wx.Window.SetFocus`. | source code
GetPickList(self, callback, x_intended, y_intended) Returns a pick list, destroying a pre-existing pick list for this widget | source code
GetSummary(self) Gets a terse summary string for the data in the widget | source code
Inherited from `wx._windows.ScrolledWindow`: `AdjustScrollbars`, `CalcScrollInc`, `CalcScrolledPosition`, `CalcUnscrolledPosition`, `Create`, `DoPrepareDC`, `EnableScrolling`, `GetScaleX`, `GetScaleY`, `GetScrollPageSize`, `GetScrollPixelsPerUnit`, `GetTargetWindow`, `GetViewStart`, `Scroll`, `SetScale`, `SetScrollPageSize`, `SetScrollRate`, `SetScrollbars`, `SetTargetWindow`, `__repr__` Inherited from `wx._windows.Panel`: `InitDialog`, `SetFocusIgnoringChildren` Inherited from `wx._core.Window`: `AcceptsFocus`, `AcceptsFocusFromKeyboard`, `AddChild`, `AssociateHandle`, `CacheBestSize`, `CaptureMouse`, `Center`, `CenterOnParent`, `CenterOnScreen`, `Centre`, `CentreOnParent`, `CentreOnScreen`, `ClearBackground`, `ClientToScreen`, `ClientToScreenXY`, `Close`, `ConvertDialogPointToPixels`, `ConvertDialogSizeToPixels`, `ConvertPixelPointToDialog`, `ConvertPixelSizeToDialog`, `DLG_PNT`, `DLG_SZE`, `Destroy`, `DestroyChildren`, `Disable`, `DissociateHandle`, `DragAcceptFiles`, `Enable`, `FindWindowById`, `FindWindowByName`, `Fit`, `FitInside`, `Freeze`, `GetAcceleratorTable`, `GetAdjustedBestSize`, `GetAutoLayout`, `GetBackgroundColour`, `GetBackgroundStyle`, `GetBestFittingSize`, `GetBestSize`, `GetBestSizeTuple`, `GetBestVirtualSize`, `GetBorder`, `GetCaret`, `GetCharHeight`, `GetCharWidth`, `GetChildren`, `GetClientAreaOrigin`, `GetClientRect`, `GetClientSize`, `GetClientSizeTuple`, `GetConstraints`, `GetContainingSizer`, `GetCursor`, `GetDefaultAttributes`, `GetDefaultItem`, `GetDropTarget`, `GetEventHandler`, `GetExtraStyle`, `GetFont`, `GetForegroundColour`, `GetFullTextExtent`, `GetGrandParent`, `GetHandle`, `GetHelpText`, `GetId`, `GetLabel`, `GetMaxHeight`, `GetMaxSize`, `GetMaxWidth`, `GetMinHeight`, `GetMinSize`, `GetMinWidth`, `GetName`, `GetParent`, `GetPosition`, `GetPositionTuple`, `GetRect`, `GetScrollPos`, `GetScrollRange`, `GetScrollThumb`, `GetSize`, `GetSizeTuple`, `GetSizer`, `GetTextExtent`, `GetThemeEnabled`, `GetTitle`, `GetToolTip`, `GetUpdateClientRect`, `GetUpdateRegion`, `GetValidator`, `GetVirtualSize`, `GetVirtualSizeTuple`, `GetWindowStyle`, `GetWindowStyleFlag`, `GetWindowVariant`, `HasCapture`, `HasFlag`, `HasScrollbar`, `HasTransparentBackground`, `Hide`, `HitTest`, `HitTestXY`, `InheritAttributes`, `InheritsBackgroundColour`, `InvalidateBestSize`, `IsBeingDeleted`, `IsEnabled`, `IsExposed`, `IsExposedPoint`, `IsExposedRect`, `IsRetained`, `IsShown`, `IsTopLevel`, `Layout`, `LineDown`, `LineUp`, `Lower`, `MakeModal`, `Move`, `MoveAfterInTabOrder`, `MoveBeforeInTabOrder`, `MoveXY`, `Navigate`, `PageDown`, `PageUp`, `PopEventHandler`, `PopupMenu`, `PopupMenuXY`, `PostCreate`, `PrepareDC`, `PushEventHandler`, `Raise`, `Refresh`, `RefreshRect`, `RegisterHotKey`, `ReleaseMouse`, `RemoveChild`, `RemoveEventHandler`, `Reparent`, `ScreenToClient`, `ScreenToClientXY`, `ScrollLines`, `ScrollPages`, `ScrollWindow`, `SendSizeEvent`, `SetAcceleratorTable`, `SetAutoLayout`, `SetBackgroundColour`, `SetBackgroundStyle`, `SetBestFittingSize`, `SetCaret`, `SetClientRect`, `SetClientSize`, `SetClientSizeWH`, `SetConstraints`, `SetContainingSizer`, `SetCursor`, `SetDefaultItem`, `SetDimensions`, `SetDropTarget`, `SetEventHandler`, `SetExtraStyle`, `SetFocusFromKbd`, `SetFont`, `SetForegroundColour`, `SetHelpText`, `SetHelpTextForId`, `SetId`, `SetLabel`, `SetMaxSize`, `SetMinSize`, `SetName`, `SetOwnBackgroundColour`, `SetOwnFont`, `SetOwnForegroundColour`, `SetPosition`, `SetRect`, `SetScrollPos`, `SetScrollbar`, `SetSize`, `SetSizeHints`, `SetSizeHintsSz`, `SetSizeWH`, `SetSizer`, `SetSizerAndFit`, `SetThemeEnabled`, `SetTitle`, `SetTmpDefaultItem`, `SetToolTip`, `SetToolTipString`, `SetValidator`, `SetVirtualSize`, `SetVirtualSizeHints`, `SetVirtualSizeHintsSz`, `SetVirtualSizeWH`, `SetWindowStyle`, `SetWindowStyleFlag`, `SetWindowVariant`, `ShouldInheritColours`, `Show`, `Thaw`, `TransferDataFromWindow`, `TransferDataToWindow`, `UnregisterHotKey`, `Update`, `UpdateWindowUI`, `UseBgCol`, `Validate`, `WarpPointer` Inherited from `wx._core.EvtHandler`: `AddPendingEvent`, `Bind`, `Connect`, `Disconnect`, `GetEvtHandlerEnabled`, `GetNextHandler`, `GetPreviousHandler`, `ProcessEvent`, `ProcessPendingEvents`, `SetEvtHandlerEnabled`, `SetNextHandler`, `SetPreviousHandler`, `Unbind` Inherited from `wx._core.Object`: `GetClassName` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Static Methods
Inherited from `wx._windows.ScrolledWindow`: `GetClassDefaultAttributes` Inherited from `wx._core.Window`: `FindFocus`, `GetCapture`, `NewControlId`, `NextControlId`, `PrevControlId`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, parent, id, pos=wx.Point(-1, -1), size=wx.Size(-1, -1)) (Constructor) | source code
    __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
        Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
        String name=PanelNameStr) -> ScrolledWindow
Returns: EvtHandler Overrides: object.__init__ (inherited documentation)

### AddWidget(self, widget, label=None) | source code
Adds a widget, optionally with label Parameters: `label` (string) - text of the label `widgets` (wx.Window descendant)

### EnsureVisible(self, widget, cur_x=0, cur_y=0) | source code
Ensures widget is visible Parameters: `widget` - a child widget `cur_x` (integer) - the X co-ordinate of the cursor inside widget, if applicable `cur_y` (integer) - the Y co-ordinate of the cursor inside widget

### SetValue(self, values) | source code
Runs SetValue() on all the fields Parameters: `values` (dictionary) - keys are the labels, values are passed to SetValue()

### GetValue(self) | source code
Return dict of values of inner widgets. Returns a dictionary of the results of GetValue() called on all widgets, keyed by label Unlabelled widgets don't get called

### SetFocus(self) | source code
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. Overrides: wx._core.Window.SetFocus (inherited documentation)

### GetPickList(self, callback, x_intended, y_intended) | source code
Returns a pick list, destroying a pre-existing pick list for this widget the alive member is true until the object is Destroy ()'ed Parameters: `callback` (callable) - called when a item is selected, `x_intended` (int) - the X-position where the list should appear `x` - the Y-position where the list should appear `y_intended` (int) Returns: PickList