Gnumed.wxpython.gmListWidgets.cReportListCtrl

Package Gnumed :: Package wxpython :: Module gmListWidgets :: Class cReportListCtrl |
[frames] | no frames]

# Class cReportListCtrl

source code

                       object --+
                                |
                  wx._core.Object --+
                                    |
                  wx._core.EvtHandler --+
                                        |
                          wx._core.Window --+
                                            |
                             wx._core.Control --+
                                                |
                            wx._controls.ListCtrl --+
                                                    |
    wx.lib.mixins.listctrl.ListCtrlAutoWidthMixin --+
                                                    |
         wx.lib.mixins.listctrl.ColumnSorterMixin --+
                                                    |
                                                   cReportListCtrl

Instance Methods
map_item_idx2data_idx(*args, **kwargs) GetItemData(self, long item) -> long |
EvtHandler |
__init__(self, *args, **kwargs) __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, ... | source code
set_columns(self, columns=None) (Re)define the columns. | source code
set_column_widths(self, widths=None) Set the column width policy. | source code
set_string_items(self, items=None) All item members must be unicode()able or None. | source code
set_data(self, data=None) <data> assumed to be a list corresponding to the item indices | source code
set_selections(self, selections=None) | source code
get_column_labels(self) | source code
get_item(self, item_idx=None) | source code
get_items(self) | source code
get_string_items(self) | source code
get_selected_items(self, only_one=False) | source code
get_selected_string_items(self, only_one=False) | source code
get_item_data(self, item_idx=None) | source code
get_selected_item_data(self, only_one=False) | source code
deselect_selected_item(self) | source code
remove_item(self, item_idx=None) | source code
GetListCtrl(self) | source code
OnSortOrderChanged(self) | source code
GetSecondarySortValues(self, primary_sort_col, item1_idx, item2_idx) Returns a tuple of 2 values to use for secondary sort values when the items in the selected column match equal. | source code
Inherited from `wx._controls.ListCtrl`: `Append`, `Arrange`, `AssignImageList`, `ClearAll`, `ClearColumnImage`, `Create`, `DeleteAllColumns`, `DeleteAllItems`, `DeleteColumn`, `DeleteItem`, `EditLabel`, `EnsureVisible`, `FindItem`, `FindItemAtPos`, `FindItemData`, `Focus`, `GetColumn`, `GetColumnCount`, `GetColumnWidth`, `GetCountPerPage`, `GetFirstSelected`, `GetFocusedItem`, `GetImageList`, `GetItem`, `GetItemBackgroundColour`, `GetItemCount`, `GetItemData`, `GetItemFont`, `GetItemPosition`, `GetItemRect`, `GetItemSpacing`, `GetItemState`, `GetItemText`, `GetItemTextColour`, `GetMainWindow`, `GetNextItem`, `GetNextSelected`, `GetSelectedItemCount`, `GetTextColour`, `GetTopItem`, `GetViewRect`, `HitTest`, `InReportView`, `InsertColumn`, `InsertColumnInfo`, `InsertColumnItem`, `InsertImageItem`, `InsertImageStringItem`, `InsertItem`, `InsertStringItem`, `IsSelected`, `IsVirtual`, `RefreshItem`, `RefreshItems`, `ScrollList`, `Select`, `SetBackgroundColour`, `SetColumn`, `SetColumnImage`, `SetColumnWidth`, `SetForegroundColour`, `SetImageList`, `SetItem`, `SetItemBackgroundColour`, `SetItemColumnImage`, `SetItemCount`, `SetItemData`, `SetItemFont`, `SetItemImage`, `SetItemPosition`, `SetItemSpacing`, `SetItemState`, `SetItemText`, `SetItemTextColour`, `SetSingleStyle`, `SetStringItem`, `SetTextColour`, `SetWindowStyleFlag`, `SortItems`, `__repr__` Inherited from `wx._core.Control`: `Command`, `GetLabel`, `SetLabel` 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`, `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`, `HitTestXY`, `InheritAttributes`, `InheritsBackgroundColour`, `InitDialog`, `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`, `SetBackgroundStyle`, `SetBestFittingSize`, `SetCaret`, `SetClientRect`, `SetClientSize`, `SetClientSizeWH`, `SetConstraints`, `SetContainingSizer`, `SetCursor`, `SetDefaultItem`, `SetDimensions`, `SetDropTarget`, `SetEventHandler`, `SetExtraStyle`, `SetFocus`, `SetFocusFromKbd`, `SetFont`, `SetHelpText`, `SetHelpTextForId`, `SetId`, `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`, `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__` Inherited from `wx.lib.mixins.listctrl.ListCtrlAutoWidthMixin`: `resizeColumn`, `resizeLastColumn`, `setResizeColumn` Inherited from `wx.lib.mixins.listctrl.ColumnSorterMixin`: `GetColumnSorter`, `GetColumnWidths`, `GetSortImages`, `SetColumnCount`, `SortListItems`

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

Class Variables
| sort_order_tags = ``{`False`:` `u'``[ωΩ → αΑ]``'``,` True`:` `u'``[αΑ → ωΩ]``'``}``

Properties
| data
| selections
| activate_callback
| rightclick_callback
| item_tooltip_callback
| searchable_columns
| secondary_sort_column
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=LC_ICON,
        Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
Returns: EvtHandler Overrides: wx.lib.mixins.listctrl.ColumnSorterMixin.__init__

### set_columns(self, columns=None) | source code
(Re)define the columns. Note that this will (have to) delete the items.

### set_column_widths(self, widths=None) | source code
    Set the column width policy.

    widths = None:
            use previous policy if any or default policy
    widths != None:
            use this policy and remember it for later calls

    This means there is no way to *revert* to the default policy :-(

### GetSecondarySortValues(self, primary_sort_col, item1_idx, item2_idx) | source code
Returns a tuple of 2 values to use for secondary sort values when the items in the selected column match equal. The default just returns the item data values. Overrides: wx.lib.mixins.listctrl.ColumnSorterMixin.GetSecondarySortValues (inherited documentation)

Property Details

### data Get Method: _get_data(self) Set Method: set_data(self, data=None) - <data> assumed to be a list corresponding to the item indices

### selections Get Method: __get_selections(self) Set Method: set_selections(self, selections=None)

### activate_callback Get Method: _get_activate_callback(self) Set Method: _set_activate_callback(self, callback)

### rightclick_callback Get Method: _get_rightclick_callback(self) Set Method: _set_rightclick_callback(self, callback)

### item_tooltip_callback Get Method: unreachable(x) Set Method: _set_item_tooltip_callback(self, callback)

### searchable_columns Get Method: unreachable(x) Set Method: _set_searchable_cols(self, cols)

### secondary_sort_column Get Method: __get_secondary_sort_col(self) Set Method: __set_secondary_sort_col(self, col)