|
|
AddRoot(self,
text,
ct_type=0,
wnd=None,
image=-1,
selImage=-1,
data=None)
Adds a root to the CustomTreeCtrl.
|
|
AdjustMyScrollbars(self)
Adjust the wx.ScrolledWindow scrollbars.
|
|
AppendItem(self,
parentId,
text,
ct_type=0,
wnd=None,
image=-1,
selImage=-1,
data=None)
Appends an item as a last child of its parent.
|
|
AssignButtonsImageList(self,
imageList)
Assigns the button image list.
|
|
AssignImageList(self,
imageList)
Assigns the normal image list.
|
|
AssignStateImageList(self,
imageList)
Assigns the state image list.
|
|
AutoCheckChild(self,
item,
checked)
Transverses the tree and checks/unchecks the items.
|
|
AutoToggleChild(self,
item)
Transverses the tree and toggles the items.
|
|
CalculateLevel(self,
item,
dc,
level,
y)
Calculates the level of an item.
|
|
CalculateLineHeight(self)
Calculates the height of a line.
|
|
CalculatePositions(self)
Calculates all the positions of the visible items.
|
|
CalculateSize(self,
item,
dc)
Calculates overall position and size of an item.
|
|
CheckChilds(self,
item,
checked=True)
Programatically check/uncheck item children.
|
|
CheckItem(self,
item,
checked=True)
Actually checks/uncheks an item, sending (eventually) the two
events EVT_TREE_ITEM_CHECKING/EVT_TREE_ITEM_CHECKED.
|
|
CheckItem2(self,
item,
checked=True,
torefresh=False)
Used internally to avoid EVT_TREE_ITEM_CHECKED events.
|
|
CheckSameLevel(self,
item,
checked=False)
Uncheck radio items which are on the same level of the checked
one.
|
|
ChildrenClosing(self,
item)
We are about to destroy the item children.
|
|
Collapse(self,
item)
Collapse an item, sending a EVT_TREE_ITEM_COLLAPSING and
EVT_TREE_ITEM_COLLAPSED events.
|
|
CollapseAndReset(self,
item)
Collapse the given item and deletes its children.
|
|
Delete(self,
item)
Delete an item.
|
|
DeleteAllItems(self)
Delete all items in the CustomTreeCtrl.
|
|
DeleteChildren(self,
item)
Delete item children.
|
|
DoGetBestSize(self)
Something is better than nothing...
|
|
DoInsertItem(self,
parentId,
previous,
text,
ct_type=0,
wnd=None,
image=-1,
selImage=-1,
data=None)
Actually inserts an item in the tree.
|
|
DoSelectItem(self,
item,
unselect_others=True,
extended_select=False)
Actually selects/unselects an item, sending a EVT_TREE_SEL_CHANGED
event.
|
|
DrawHorizontalGradient(self,
dc,
rect,
hasfocus)
Gradient fill from colour 1 to colour 2 from left to right.
|
|
DrawVerticalGradient(self,
dc,
rect,
hasfocus)
Gradient fill from colour 1 to colour 2 from top to bottom.
|
|
DrawVistaRectangle(self,
dc,
rect,
hasfocus)
Draw the selected item(s) with the Windows Vista style.
|
|
Edit(self,
item)
Internal function.
|
|
EditLabel(self,
item)
Starts editing an item label.
|
|
EnableChildren(self,
item,
enable=True)
Enables/disables item children.
|
|
EnableItem(self,
item,
enable=True,
torefresh=True)
Enables/disables an item.
|
|
EnableSelectionGradient(self,
enable=True)
Globally enables/disables drawing of gradient selection.
|
|
EnableSelectionVista(self,
enable=True)
Globally enables/disables drawing of Windows Vista selection.
|
|
EnsureVisible(self,
item)
Ensure that an item is visible in CustomTreeCtrl.
|
|
Expand(self,
item)
Expands an item, sending a EVT_TREE_ITEM_EXPANDING and
EVT_TREE_ITEM_EXPANDED events.
|
|
ExpandAll(self,
item)
Expands all the items.
|
|
FillArray(self,
item,
array=[])
Internal function.
|
|
FindItem(self,
idParent,
prefixOrig)
Finds the first item starting with the given prefix after the
given item.
|
|
Freeze(self)
Freeze CustomTreeCtrl.
|
|
GetBackgroundImage(self)
Returns the CustomTreeCtrl background image (can be none).
|
|
GetBorderPen(self)
Returns the pen used to draw the selected item border.
|
|
GetBoundingRect(self,
item,
textOnly=False)
Gets the bounding rectangle of the item.
|
|
GetButtonsImageList(self)
Returns the buttons image list (from which application-defined
button images are taken).
|
|
GetChildrenCount(self,
item,
recursively=True)
Gets the item children count.
|
|
GetClassDefaultAttributes(self)
Gets the class default attributes.
|
|
GetConnectionPen(self)
Returns the pen used to draw the connecting lines between
items.
|
|
GetCount(self)
Returns the global number of items in the tree.
|
|
GetDisabledColour(self)
Returns the items disabled colour.
|
|
GetEditControl(self)
Returns a pointer to the edit TextCtrl if the item is being edited
or None otherwise (it is assumed that no more than one item may be
edited simultaneously).
|
|
GetFirstChild(self,
item)
Gets the item first child.
|
|
GetFirstGradientColour(self)
Returns the first gradient colour.
|
|
GetFirstVisibleItem(self)
Returns the first visible item.
|
|
GetGradientStyle(self)
Returns the gradient style: 0: horizontal gradient 1: vertical
gradient
|
|
GetHilightFocusColour(self)
Returns the colour used to highlight focused selected items.
|
|
GetHilightNonFocusColour(self)
Returns the colour used to highlight unfocused selected items.
|
|
GetHyperTextFont(self)
Returns the font used to render an hypertext item.
|
|
GetHyperTextNewColour(self)
Returns the colour used to render a non-visited hypertext
item.
|
|
GetHyperTextVisitedColour(self)
Returns the colour used to render a visited hypertext item.
|
|
GetImageList(self)
Returns the normal image list.
|
|
GetImageListCheck(self)
Returns the image list used to build the check/radio buttons.
|
|
GetIndent(self)
Returns the item indentation.
|
|
GetItemBackgroundColour(self,
item)
Returns the item background colour.
|
|
GetItemFont(self,
item)
Returns the item font.
|
|
GetItemImage(self,
item,
which)
Returns the item image.
|
|
GetItemParent(self,
item)
Gets the item parent.
|
|
GetItemPyData(self,
item)
Returns the data associated to an item.
|
|
GetItemText(self,
item)
Returns the item text.
|
|
GetItemTextColour(self,
item)
Returns the item text colour.
|
|
GetItemType(self,
item)
Returns the item type: 0: normal 1: checkbox item 2: radiobutton
item
|
|
GetItemVisited(self,
item)
Returns whether an hypertext item was visited.
|
|
GetItemWindow(self,
item)
Returns the window associated to the item (if any).
|
|
GetItemWindowEnabled(self,
item)
Returns whether the window associated to the item is enabled.
|
|
GetLastChild(self,
item)
Gets the item last child.
|
|
GetLineHeight(self,
item)
Returns the line height for the given item.
|
|
GetNext(self,
item)
Gets the next item.
|
|
GetNextActiveItem(self,
item,
down=True)
Returns the next active item.
|
|
GetNextChild(self,
item,
cookie)
Gets the item next child based on the 'cookie' parameter.
|
|
GetNextSibling(self,
item)
Gets the next sibling of an item.
|
|
GetNextVisible(self,
item)
Returns the next visible item.
|
|
GetPrevSibling(self,
item)
Gets the previous sibling of an item.
|
|
GetPrevVisible(self,
item)
|
|
GetPyData(self,
item)
Returns the data associated to an item.
|
|
GetRootItem(self)
Returns the root item.
|
|
GetSecondGradientColour(self)
Returns the second gradient colour.
|
|
GetSelection(self)
Returns the current selection: TR_SINGLE only.
|
|
GetSelections(self)
Returns a list of selected items.
|
|
GetSpacing(self)
Returns the spacing between the start and the text.
|
|
GetStateImageList(self)
Returns the state image list (from which application-defined state
images are taken).
|
|
GetTreeStyle(self)
Returns the CustomTreeCtrl style.
|
|
HasButtons(self)
Returns whether CustomTreeCtrl has the TR_AHS_BUTTONS flag.
|
|
HasChildren(self,
item)
Returns whether an item has children or not.
|
|
HasFlag(self,
flag)
Returns whether CustomTreeCtrl has a flag.
|
|
HideWindows(self)
Hides the windows associated to the items.
|
|
HitTest(self,
point,
flags=0)
Calculates which (if any) item is under the given point, returning
the tree item at this point plus extra information flags.
|
|
InsertItem(self,
parentId,
input,
text,
ct_type=0,
wnd=None,
image=-1,
selImage=-1,
data=None)
Inserts an item after the given previous.
|
|
InsertItemByIndex(self,
parentId,
before,
text,
ct_type=0,
wnd=None,
image=-1,
selImage=-1,
data=None)
Auxiliary function to cope with the C++ hideous multifunction.
|
|
InsertItemByItem(self,
parentId,
idPrevious,
text,
ct_type=0,
wnd=None,
image=-1,
selImage=-1,
data=None)
Auxiliary function to cope with the C++ hideous multifunction.
|
|
IsBold(self,
item)
Returns whether the item font is bold or not.
|
|
IsDescendantOf(self,
parent,
item)
Checks if the given item is under another one.
|
|
IsEnabled(self,
item)
Returns whether an item is enabled or disabled.
|
|
IsExpanded(self,
item)
Returns whether the item is expanded or not.
|
|
IsItalic(self,
item)
Returns whether the item font is italic or not.
|
|
IsItemChecked(self,
item)
Returns whether an item is checked or not.
|
|
IsItemHyperText(self,
item)
Returns whether an item is hypertext or not.
|
|
IsSelected(self,
item)
Returns whether the item is selected or not.
|
|
IsVisible(self,
item)
Returns whether the item is visible or not.
|
|
ItemHasChildren(self,
item)
Returns whether the item has children or not.
|
|
OnCompareItems(self,
item1,
item2)
Returns whether 2 items have the same text.
|
|
OnDestroy(self,
event)
Handles the wx.EVT_WINDOW_DESTROY event.
|
|
OnEraseBackground(self,
event)
Handles the wx.EVT_ERASE_BACKGROUND event.
|
|
OnGetToolTip(self,
event)
Process the tooltip event, to speed up event processing.
|
|
OnInternalIdle(self,
event)
Performs operations in idle time (essentially drawing).
|
|
OnKeyDown(self,
event)
Handles the wx.EVT_CHAR event, sending a EVT_TREE_KEY_DOWN
event.
|
|
OnKillFocus(self,
event)
Handles the wx.EVT_KILL_FOCUS event.
|
|
OnMouse(self,
event)
Handles a bunch of wx.EVT_MOUSE_EVENTS events.
|
|
OnPaint(self,
event)
Handles the wx.EVT_PAINT event.
|
|
OnRenameAccept(self,
item,
value)
Called by TreeTextCtrl, to accept the changes and to send the
EVT_TREE_END_LABEL_EDIT event.
|
|
OnRenameCancelled(self,
item)
Called by TreeTextCtrl, to cancel the changes and to send the
EVT_TREE_END_LABEL_EDIT event.
|
|
OnRenameTimer(self)
The timer for renaming has expired.
|
|
OnSetFocus(self,
event)
Handles the wx.EVT_SET_FOCUS event.
|
|
PaintItem(self,
item,
dc)
Actually paint an item.
|
|
PaintLevel(self,
item,
dc,
level,
y)
Paint a level of CustomTreeCtrl.
|
|
PrependItem(self,
parent,
text,
ct_type=0,
wnd=None,
image=-1,
selImage=-1,
data=None)
Appends an item as a first child of parent.
|
|
RefreshLine(self,
item)
Refreshes a damaged item line.
|
|
RefreshSelected(self)
Refreshes a damaged selected item line.
|
|
RefreshSelectedUnder(self,
item)
Refreshes the selected items under the given item.
|
|
RefreshSubtree(self,
item)
Refreshes a damaged subtree of an item.
|
|
ResetTextControl(self)
Called by TreeTextCtrl when it marks itself for deletion.
|
|
ScrollTo(self,
item)
Scrolls the specified item into view.
|
|
SelectItem(self,
item,
select=True)
Selects/deselects an item.
|
|
SelectItemRange(self,
item1,
item2)
Selects all the items between item1 and item2.
|
|
SendDeleteEvent(self,
item)
Actully sends the EVT_TREE_DELETE_ITEM event.
|
|
SetBackgroundColour(self,
colour)
Changes the background colour of CustomTreeCtrl.
|
|
SetBackgroundImage(self,
image)
Sets the CustomTreeCtrl background image (can be none).
|
|
SetBorderPen(self,
pen)
Sets the pen used to draw the selected item border.
|
|
SetButtonsImageList(self,
imageList)
Sets the buttons image list (from which application-defined button
images are taken).
|
|
SetConnectionPen(self,
pen)
Sets the pen used to draw the connecting lines between items.
|
|
SetDisabledColour(self,
colour)
Sets the items disabled colour.
|
|
SetFirstGradientColour(self,
colour=None)
Sets the first gradient colour.
|
|
SetFont(self,
font)
Sets the CustomTreeCtrl font.
|
|
SetForegroundColour(self,
colour)
Changes the foreground colour of CustomTreeCtrl.
|
|
SetGradientStyle(self,
vertical=0)
Sets the gradient style: 0: horizontal gradient 1: vertical
gradient
|
|
SetHilightFocusColour(self,
colour)
Sets the colour used to highlight focused selected items.
|
|
SetHilightNonFocusColour(self,
colour)
Sets the colour used to highlight unfocused selected items.
|
|
SetHyperTextFont(self,
font)
Sets the font used to render an hypertext item.
|
|
SetHyperTextNewColour(self,
colour)
Sets the colour used to render a non-visited hypertext item.
|
|
SetHyperTextVisitedColour(self,
colour)
Sets the colour used to render a visited hypertext item.
|
|
SetImageList(self,
imageList)
Sets the normal image list.
|
|
SetImageListCheck(self,
sizex,
sizey,
imglist=None)
Sets the check image list.
|
|
SetIndent(self,
indent)
Sets item indentation.
|
|
SetItemBackgroundColour(self,
item,
col)
Sets the item background colour.
|
|
SetItemBold(self,
item,
bold=True)
Sets the item font bold/unbold.
|
|
SetItemDropHighlight(self,
item,
highlight=True)
Gives the item the visual feedback for drag and drop
operations.
|
|
SetItemFont(self,
item,
font)
Sets the item font.
|
|
SetItemHasChildren(self,
item,
has=True)
Forces the appearance of the button next to the item.
|
|
SetItemHyperText(self,
item,
hyper=True)
Sets whether the item is hypertext or not.
|
|
SetItemImage(self,
item,
image,
which=0)
Sets the item image, depending on the item state.
|
|
SetItemItalic(self,
item,
italic=True)
Sets the item font italic/non-italic.
|
|
SetItemPyData(self,
item,
data)
Sets the data associated to an item.
|
|
SetItemText(self,
item,
text)
Sets the item text.
|
|
SetItemTextColour(self,
item,
col)
Sets the item text colour.
|
|
SetItemVisited(self,
item,
visited=True)
Sets whether an hypertext item was visited.
|
|
SetItemWindowEnabled(self,
item,
enable=True)
Enables/disables the window associated to the item.
|
|
SetPyData(self,
item,
data)
Sets the data associated to an item.
|
|
SetSecondGradientColour(self,
colour=None)
Sets the second gradient colour.
|
|
SetSpacing(self,
spacing)
Sets item spacing.
|
|
SetStateImageList(self,
imageList)
Sets the state image list (from which application-defined state
images are taken).
|
|
SetTreeStyle(self,
styles)
Sets the CustomTreeCtrl style.
|
|
ShouldInheritColours(self)
We don't inherit colours from anyone.
|
|
SortChildren(self,
item)
Sorts the children of the given item using OnCompareItems method
of CustomTreeCtrl.
|
|
TagAllChildrenUntilLast(self,
crt_item,
last_item,
select)
Used internally.
|
|
TagNextChildren(self,
crt_item,
last_item,
select)
Used internally.
|
|
Thaw(self)
Thaw CustomTreeCtrl.
|
|
TileBackground(self,
dc)
Tiles the background image to fill all the available area.
|
|
Toggle(self,
item)
Toggles the item state (collapsed/expanded).
|
|
ToggleItemSelection(self,
item)
Toggles the item selection.
|
|
UnCheckRadioParent(self,
item,
checked=False)
Used internally to handle radio node parent correctly.
|
|
Unselect(self)
Unselects the current selection.
|
|
UnselectAll(self)
Unselect all the items.
|
|
UnselectAllChildren(self,
item)
Unselects all the children of the given item.
|
|
__init__(self,
parent,
id=-1,
pos=wx.Point(-1, -1),
size=wx.Size(-1, -1),
style=0,
ctstyle=9,
validator=wxPython wrapper for UNBORN object! (The C++ object is not initialized yet.),
name='CustomTreeCtrl')
Default class constructor.
|
:
AdjustScrollbars ,
CalcScrollInc ,
CalcScrolledPosition ,
CalcUnscrolledPosition ,
Create ,
DoPrepareDC ,
EnableScrolling ,
GetScaleX ,
GetScaleY ,
GetScrollPageSize ,
GetScrollPixelsPerUnit ,
GetTargetRect ,
GetTargetWindow ,
GetViewStart ,
Scroll ,
SetScale ,
SetScrollPageSize ,
SetScrollRate ,
SetScrollbars ,
SetTargetRect ,
SetTargetWindow ,
__repr__
:
InitDialog ,
SetFocus ,
SetFocusIgnoringChildren
:
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 ,
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 ,
HasScrollbar ,
HasTransparentBackground ,
Hide ,
HitTestXY ,
InheritAttributes ,
InheritsBackgroundColour ,
InvalidateBestSize ,
IsBeingDeleted ,
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 ,
SetFocusFromKbd ,
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 ,
Show ,
TransferDataFromWindow ,
TransferDataToWindow ,
UnregisterHotKey ,
Update ,
UpdateWindowUI ,
UseBgCol ,
Validate ,
WarpPointer
:
AddPendingEvent ,
Bind ,
Connect ,
Disconnect ,
GetEvtHandlerEnabled ,
GetNextHandler ,
GetPreviousHandler ,
ProcessEvent ,
ProcessPendingEvents ,
SetEvtHandlerEnabled ,
SetNextHandler ,
SetPreviousHandler ,
Unbind
:
GetClassName
:
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|