Package Gnumed :: Package wxpython :: Module gmMeasurementWidgets :: Class cMeasurementsGrid |
[frames] | no frames]

# Class cMeasurementsGrid

source code

         object --+
                  |
    wx._core.Object --+
                      |
    wx._core.EvtHandler --+
                          |
            wx._core.Window --+
                              |
              wx._windows.Panel --+
                                  |
         wx._windows.ScrolledWindow --+
                                      |
                           wx.grid.Grid --+
                                          |
                                         cMeasurementsGrid

    A grid class for displaying measurment results.

    - does NOT listen to the currently active patient
    - thereby it can display any patient at any time

Instance Methods
EvtHandler |
__init__(self, *args, **kwargs) __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, ... | source code
delete_current_selection(self) | source code
sign_current_selection(self) | source code
plot_current_selection(self) | source code
get_selected_cells(self) | source code
select_cells(self, unsigned_only=False, accountables_only=False, keep_preselections=False) Select a range of cells according to criteria. | source code
repopulate_grid(self) | source code
empty_grid(self) | source code
get_row_tooltip(self, row=None) | source code
get_cell_tooltip(self, col=None, row=None) | source code
Inherited from `wx.grid.Grid`: `AppendCols`, `AppendRows`, `AutoSize`, `AutoSizeColLabelSize`, `AutoSizeColumn`, `AutoSizeColumns`, `AutoSizeRow`, `AutoSizeRowLabelSize`, `AutoSizeRows`, `BeginBatch`, `BlockToDeviceRect`, `CanDragCell`, `CanDragColSize`, `CanDragGridSize`, `CanDragRowSize`, `CanEnableCellControl`, `CellToRect`, `ClearGrid`, `ClearSelection`, `Create`, `CreateGrid`, `DeleteCols`, `DeleteRows`, `DeselectCell`, `DeselectCol`, `DeselectRow`, `DisableCellEditControl`, `DisableDragCell`, `DisableDragColSize`, `DisableDragGridSize`, `DisableDragRowSize`, `DrawCellHighlight`, `DrawTextRectangle`, `EnableCellEditControl`, `EnableDragCell`, `EnableDragColSize`, `EnableDragGridSize`, `EnableDragRowSize`, `EnableEditing`, `EnableGridLines`, `EndBatch`, `ForceRefresh`, `GetBatchCount`, `GetCellAlignment`, `GetCellBackgroundColour`, `GetCellEditor`, `GetCellFont`, `GetCellHighlightColour`, `GetCellHighlightPenWidth`, `GetCellHighlightROPenWidth`, `GetCellOverflow`, `GetCellRenderer`, `GetCellSize`, `GetCellTextColour`, `GetCellValue`, `GetColLabelAlignment`, `GetColLabelSize`, `GetColLabelTextOrientation`, `GetColLabelValue`, `GetColMinimalAcceptableWidth`, `GetColSize`, `GetDefaultCellAlignment`, `GetDefaultCellBackgroundColour`, `GetDefaultCellFont`, `GetDefaultCellOverflow`, `GetDefaultCellTextColour`, `GetDefaultColLabelSize`, `GetDefaultColSize`, `GetDefaultEditor`, `GetDefaultEditorForCell`, `GetDefaultEditorForType`, `GetDefaultRenderer`, `GetDefaultRendererForCell`, `GetDefaultRendererForType`, `GetDefaultRowLabelSize`, `GetDefaultRowSize`, `GetGridColLabelWindow`, `GetGridCornerLabelWindow`, `GetGridCursorCol`, `GetGridCursorRow`, `GetGridLineColour`, `GetGridRowLabelWindow`, `GetGridWindow`, `GetLabelBackgroundColour`, `GetLabelFont`, `GetLabelTextColour`, `GetNumberCols`, `GetNumberRows`, `GetOrCreateCellAttr`, `GetRowLabelAlignment`, `GetRowLabelSize`, `GetRowLabelValue`, `GetRowMinimalAcceptableHeight`, `GetRowSize`, `GetScrollLineX`, `GetScrollLineY`, `GetScrollX`, `GetScrollY`, `GetSelectedCells`, `GetSelectedCols`, `GetSelectedRows`, `GetSelectionBackground`, `GetSelectionBlockBottomRight`, `GetSelectionBlockTopLeft`, `GetSelectionForeground`, `GetSelectionMode`, `GetTable`, `GetTextBoxSize`, `GridLinesEnabled`, `HideCellEditControl`, `InsertCols`, `InsertRows`, `IsCellEditControlEnabled`, `IsCellEditControlShown`, `IsCurrentCellReadOnly`, `IsEditable`, `IsInSelection`, `IsReadOnly`, `IsSelection`, `IsVisible`, `MakeCellVisible`, `MoveCursorDown`, `MoveCursorDownBlock`, `MoveCursorLeft`, `MoveCursorLeftBlock`, `MoveCursorRight`, `MoveCursorRightBlock`, `MoveCursorUp`, `MoveCursorUpBlock`, `MovePageDown`, `MovePageUp`, `ProcessTableMessage`, `RegisterDataType`, `SaveEditControlValue`, `SelectAll`, `SelectBlock`, `SelectCol`, `SelectRow`, `SetAttr`, `SetCellAlignment`, `SetCellBackgroundColour`, `SetCellEditor`, `SetCellFont`, `SetCellHighlightColour`, `SetCellHighlightPenWidth`, `SetCellHighlightROPenWidth`, `SetCellOverflow`, `SetCellRenderer`, `SetCellSize`, `SetCellTextColour`, `SetCellValue`, `SetColAttr`, `SetColFormatBool`, `SetColFormatCustom`, `SetColFormatFloat`, `SetColFormatNumber`, `SetColLabelAlignment`, `SetColLabelSize`, `SetColLabelTextOrientation`, `SetColLabelValue`, `SetColMinimalAcceptableWidth`, `SetColMinimalWidth`, `SetColSize`, `SetDefaultCellAlignment`, `SetDefaultCellBackgroundColour`, `SetDefaultCellFont`, `SetDefaultCellOverflow`, `SetDefaultCellTextColour`, `SetDefaultColSize`, `SetDefaultEditor`, `SetDefaultRenderer`, `SetDefaultRowSize`, `SetGridCursor`, `SetGridLineColour`, `SetLabelBackgroundColour`, `SetLabelFont`, `SetLabelTextColour`, `SetMargins`, `SetReadOnly`, `SetRowAttr`, `SetRowLabelAlignment`, `SetRowLabelSize`, `SetRowLabelValue`, `SetRowMinimalAcceptableHeight`, `SetRowMinimalHeight`, `SetRowSize`, `SetScrollLineX`, `SetScrollLineY`, `SetSelectionBackground`, `SetSelectionForeground`, `SetSelectionMode`, `SetTable`, `ShowCellEditControl`, `XToCol`, `XToEdgeOfCol`, `XYToCell`, `YToEdgeOfRow`, `YToRow`, `__repr__` Inherited from `wx._windows.ScrolledWindow`: `AdjustScrollbars`, `CalcScrollInc`, `CalcScrolledPosition`, `CalcUnscrolledPosition`, `DoPrepareDC`, `EnableScrolling`, `GetScaleX`, `GetScaleY`, `GetScrollPageSize`, `GetScrollPixelsPerUnit`, `GetTargetWindow`, `GetViewStart`, `Scroll`, `SetScale`, `SetScrollPageSize`, `SetScrollRate`, `SetScrollbars`, `SetTargetWindow` Inherited from `wx._windows.Panel`: `InitDialog`, `SetFocus`, `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.grid.Grid`: `GetClassDefaultAttributes` Inherited from `wx._core.Window`: `FindFocus`, `GetCapture`, `NewControlId`, `NextControlId`, `PrevControlId`

Class Variables
| patient = `property(lambda x: x, _set_patient)`
Inherited from `wx.grid.Grid`: `SelectCells`, `SelectColumns`, `SelectRows`, `wxGridSelectCells`, `wxGridSelectColumns`, `wxGridSelectRows`

Properties
Inherited from `object`: `__class__`

Method Details

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

### select_cells(self, unsigned_only=False, accountables_only=False, keep_preselections=False) | source code
Select a range of cells according to criteria. unsigned_only: include only those which are not signed at all yet accountable_only: include only those for which the current user is responsible keep_preselections: broaden (rather than replace) the range of selected cells Combinations are powerful !