Package Gnumed :: Package wxpython :: Module gmMedDocWidgets :: Class cDocTree
[frames] | no frames]

Class cDocTree

source code

     object --+                    
              |                    
wx._core.Object --+                
                  |                
wx._core.EvtHandler --+            
                      |            
        wx._core.Window --+        
                          |        
           wx._core.Control --+    
                              |    
          wx._controls.TreeCtrl --+
                                  |
gmRegetMixin.cRegetOnPaintMixin --+
                                  |
                                 cDocTree

This wx.TreeCtrl derivative displays a tree view of stored medical documents.

It listens to document and patient changes and updated itself accordingly.

Instance Methods
EvtHandler
__init__(self, parent, id, *args, **kwds)
Set up our specialised tree.
source code
 
display_selected_part(self, *args, **kwargs) source code
 
OnCompareItems(self, node1=None, node2=None)
Used in sorting items.
source code

Inherited from wx._controls.TreeCtrl: AddRoot, AppendItem, AssignImageList, AssignStateImageList, Collapse, CollapseAndReset, Create, Delete, DeleteAllItems, DeleteChildren, EditLabel, EnsureVisible, Expand, GetBoundingRect, GetChildrenCount, GetCount, GetEditControl, GetFirstChild, GetFirstVisibleItem, GetImageList, GetIndent, GetItemBackgroundColour, GetItemData, GetItemFont, GetItemImage, GetItemParent, GetItemPyData, GetItemText, GetItemTextColour, GetLastChild, GetNextChild, GetNextSibling, GetNextVisible, GetPrevSibling, GetPrevVisible, GetPyData, GetRootItem, GetSelection, GetSelections, GetSpacing, GetStateImageList, HitTest, InsertItem, InsertItemBefore, IsBold, IsExpanded, IsSelected, IsVisible, ItemHasChildren, PrependItem, ScrollTo, SelectItem, SetImageList, SetIndent, SetItemBackgroundColour, SetItemBold, SetItemData, SetItemDropHighlight, SetItemFont, SetItemHasChildren, SetItemImage, SetItemPyData, SetItemText, SetItemTextColour, SetPyData, SetSpacing, SetStateImageList, SortChildren, Toggle, ToggleItemSelection, Unselect, UnselectAll, UnselectItem, __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, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDefaultItem, SetDimensions, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, 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, 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__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Inherited from gmRegetMixin.cRegetOnPaintMixin: repopulate_ui

Static Methods

Inherited from wx._controls.TreeCtrl: GetClassDefaultAttributes

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, NextControlId, PrevControlId

Properties
  sort_mode

Inherited from object: __class__

Method Details

__init__(self, parent, id, *args, **kwds)
(Constructor)

source code 

Set up our specialised tree.

Returns: EvtHandler
Overrides: gmRegetMixin.cRegetOnPaintMixin.__init__

OnCompareItems(self, node1=None, node2=None)

source code 
Used in sorting items.

-1: 1 < 2
 0: 1 = 2
 1: 1 > 2


Property Details

sort_mode

Get Method:
_get_sort_mode(self)
Set Method:
_set_sort_mode(self, mode)