Package reflectometry :: Package reduction :: Module selection :: Class DirTree

Class DirTree

source code


Traditional directory tree to manage the selection of multiple files.
Instance Methods
EvtHandler
__init__(self, *args, **kwargs)
Default class constructor.
source code
 
root(self, path) source code
 
expand(self, item) source code
 
onSelected(self, event) source code
 
onChecked(self, event) source code
 
onExpandItem(self, event) source code

Inherited from wx.lib.customtreectrl.CustomTreeCtrl: AcceptsFocus, AddRoot, AdjustMyScrollbars, AppendItem, AssignButtonsImageList, AssignImageList, AssignStateImageList, AutoCheckChild, AutoCheckParent, AutoToggleChild, CalculateLevel, CalculateLineHeight, CalculatePositions, CalculateSize, CheckChilds, CheckItem, CheckItem2, CheckSameLevel, ChildrenClosing, Collapse, CollapseAndReset, Delete, DeleteAllItems, DeleteChildren, DeleteItemWindow, DoGetBestSize, DoInsertItem, DoSelectItem, DrawHorizontalGradient, DrawVerticalGradient, DrawVistaRectangle, Edit, EditLabel, EnableChildren, EnableItem, EnableSelectionGradient, EnableSelectionVista, EnsureVisible, Expand, ExpandAll, ExpandAllChildren, FillArray, FindItem, Freeze, GetBackgroundImage, GetBorderPen, GetBoundingRect, GetButtonsImageList, GetChildrenCount, GetConnectionPen, GetCount, GetDisabledColour, GetEditControl, GetFirstChild, GetFirstGradientColour, GetFirstVisibleItem, GetGradientStyle, GetHilightFocusColour, GetHilightNonFocusColour, GetHyperTextFont, GetHyperTextNewColour, GetHyperTextVisitedColour, GetImageList, GetImageListCheck, GetIndent, GetItemBackgroundColour, GetItemFont, GetItemImage, GetItemParent, GetItemPyData, GetItemText, GetItemTextColour, GetItemType, GetItemVisited, GetItemWindow, GetItemWindowEnabled, GetLastChild, GetLineHeight, GetMaxWidth, GetNext, GetNextActiveItem, GetNextChild, GetNextSibling, GetNextVisible, GetPrevSibling, GetPrevVisible, GetPyData, GetRootItem, GetSecondGradientColour, GetSelection, GetSelections, GetSpacing, GetStateImageList, GetTreeStyle, HandleHyperLink, HasButtons, HasChildren, HideWindows, HitTest, InsertItem, InsertItemByIndex, InsertItemByItem, IsBold, IsDescendantOf, IsExpanded, IsItalic, IsItemChecked, IsItemEnabled, IsItemHyperText, IsSelected, IsVisible, ItemHasChildren, OnCompareItems, OnDestroy, OnEraseBackground, OnGetToolTip, OnInternalIdle, OnKeyDown, OnKillFocus, OnMouse, OnPaint, OnRenameAccept, OnRenameCancelled, OnRenameTimer, OnSetFocus, PaintItem, PaintLevel, PrependItem, RecurseOnChildren, RefreshLine, RefreshSelected, RefreshSelectedUnder, RefreshSubtree, ResetTextControl, ScrollTo, SelectItem, SelectItemRange, SendDeleteEvent, SetBackgroundColour, SetBackgroundImage, SetBorderPen, SetButtonsImageList, SetConnectionPen, SetDisabledColour, SetFirstGradientColour, SetFont, SetForegroundColour, SetGradientStyle, SetHilightFocusColour, SetHilightNonFocusColour, SetHyperTextFont, SetHyperTextNewColour, SetHyperTextVisitedColour, SetImageList, SetImageListCheck, SetIndent, SetItemBackgroundColour, SetItemBold, SetItemDropHighlight, SetItemFont, SetItemHasChildren, SetItemHyperText, SetItemImage, SetItemItalic, SetItemPyData, SetItemText, SetItemTextColour, SetItemVisited, SetItemWindow, SetItemWindowEnabled, SetPyData, SetSecondGradientColour, SetSpacing, SetStateImageList, SetTreeStyle, ShouldInheritColours, SortChildren, TagAllChildrenUntilLast, TagNextChildren, Thaw, TileBackground, Toggle, ToggleItemSelection, UnCheckRadioParent, Unselect, UnselectAll, UnselectAllChildren

Inherited from wx._windows.PyScrolledWindow: DoEraseBackground, DoGetClientSize, DoGetPosition, DoGetSize, DoGetVirtualSize, DoMoveWindow, DoSetClientSize, DoSetSize, DoSetVirtualSize, GetDefaultAttributes, SetBestSize, base_AcceptsFocus, base_AcceptsFocusFromKeyboard, base_AddChild, base_DoGetBestSize, base_DoGetClientSize, base_DoGetPosition, base_DoGetSize, base_DoGetVirtualSize, base_DoMoveWindow, base_DoSetClientSize, base_DoSetSize, base_DoSetVirtualSize, base_GetDefaultAttributes, base_GetMaxSize, base_InitDialog, base_OnInternalIdle, base_RemoveChild, base_ShouldInheritColours, base_TransferDataFromWindow, base_TransferDataToWindow, base_Validate

Inherited from wx._windows.ScrolledWindow: AdjustScrollbars, CalcScrollInc, CalcScrolledPosition, CalcUnscrolledPosition, Create, DoPrepareDC, EnableScrolling, GetScaleX, GetScaleY, GetScrollPageSize, GetScrollPixelsPerUnit, GetTargetRect, GetTargetWindow, GetViewStart, Scroll, SetScale, SetScrollPageSize, SetScrollRate, SetScrollbars, SetTargetRect, SetTargetWindow

Inherited from wx._windows.Panel: SetFocusIgnoringChildren, __repr__

Inherited from wx._core.Window: AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, ClientToWindowSize, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByLabel, FindWindowByName, Fit, FitInside, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDropTarget, GetEffectiveMinSize, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetGtkWidget, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMaxHeight, GetMaxSize, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsShown, IsShownOnScreen, 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, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, Show, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer, WindowToClientSize

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.Object: GetClassName, IsSameAs

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Methods

Inherited from wx.lib.customtreectrl.CustomTreeCtrl: GetClassDefaultAttributes

Static Methods

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

Properties

Inherited from wx._windows.PyScrolledWindow: thisown

Inherited from wx._windows.ScrolledWindow: ScaleX, ScaleY, TargetWindow, ViewStart

Inherited from wx._core.Window: AcceleratorTable, AutoLayout, BackgroundColour, BackgroundStyle, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, EffectiveMinSize, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, GtkWidget, Handle, HelpText, Id, Label, LayoutDirection, MaxHeight, MaxSize, MaxWidth, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, TopLevel, TopLevelParent, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from object: __class__

Method Details

__init__(self, *args, **kwargs)
(Constructor)

source code 

Default class constructor.

parent: parent window. Must not be none.

id: window identifier. A value of -1 indicates a default value.

pos: window position.

size: window size. If the default size (-1, -1) is specified then the window is sized appropriately.

style: the underlying wx.ScrolledWindow style + CustomTreeCtrl window style. This can be one of:

TR_NO_BUTTONS TR_HAS_BUTTONS # draw collapsed/expanded btns TR_NO_LINES # don't draw lines at all TR_LINES_AT_ROOT # connect top-level nodes TR_TWIST_BUTTONS # draw mac-like twist buttons TR_SINGLE # single selection mode TR_MULTIPLE # can select multiple items TR_EXTENDED # todo: allow extended selection TR_HAS_VARIABLE_ROW_HEIGHT # allows rows to have variable height TR_EDIT_LABELS # can edit item labels TR_ROW_LINES # put border around items TR_HIDE_ROOT # don't display root node TR_FULL_ROW_HIGHLIGHT # highlight full horizontal space TR_AUTO_CHECK_CHILD # only meaningful for checkboxes TR_AUTO_CHECK_PARENT # only meaningful for checkboxes TR_AUTO_TOGGLE_CHILD # only meaningful for checkboxes

ctstyle: kept for backward compatibility.

validator: window validator.

name: window name.

Returns: EvtHandler
Overrides: object.__init__
(inherited documentation)