FXTreeList

Tree list Widget


FXTreeList(p, nvis, tgt=None, sel=0, opts=TREELIST_NORMAL, x=0, y=0, w=0, h=0)

Construct a tree list with nvis visible items; the tree list is initially empty.

ArgumentTypeDefaultDescription
pFXComposite  
nvisInt  
tgtFXObjectNone 
selInt0 
optsIntTREELIST_NORMAL 
xInt0 
yInt0 
wInt0 
hInt0 


addItemAfter(other, text, oi=None, ci=None, ptr=None, notify=False)

Append new item with given text and optional icon, and user-data pointer after to other item.

ArgumentTypeDefaultDescription
otherFXTreeItem  
textString  
oiFXIconNone 
ciFXIconNone 
ptrStringNone 
notifyBoolFalse 


addItemAfter(other, text, oi=None, ci=None, ptr=None, notify=False)

Append new item with given text and optional icon, and user-data pointer after to other item.

ArgumentTypeDefaultDescription
otherFXTreeItem  
textString  
oiFXIconNone 
ciFXIconNone 
ptrStringNone 
notifyBoolFalse 


addItemAfter(other, item, notify=False)

Append new [possibly subclassed] item after to other item.

ArgumentTypeDefaultDescription
otherFXTreeItem  
itemFXTreeItem  
notifyBoolFalse 


addItemBefore(other, text, oi=None, ci=None, ptr=None, notify=False)

Prepend new item with given text and optional icon, and user-data pointer prior to other item.

ArgumentTypeDefaultDescription
otherFXTreeItem  
textString  
oiFXIconNone 
ciFXIconNone 
ptrStringNone 
notifyBoolFalse 


addItemBefore(other, text, oi=None, ci=None, ptr=None, notify=False)

Prepend new item with given text and optional icon, and user-data pointer prior to other item.

ArgumentTypeDefaultDescription
otherFXTreeItem  
textString  
oiFXIconNone 
ciFXIconNone 
ptrStringNone 
notifyBoolFalse 


addItemBefore(other, item, notify=False)

Prepend new [possibly subclassed] item prior to other item.

ArgumentTypeDefaultDescription
otherFXTreeItem  
itemFXTreeItem  
notifyBoolFalse 


addItemFirst(p, text, oi=None, ci=None, ptr=None, notify=False)

Prepend new item with given text and optional icon, and user-data pointer as first child of p.

ArgumentTypeDefaultDescription
pFXTreeItem  
textString  
oiFXIconNone 
ciFXIconNone 
ptrStringNone 
notifyBoolFalse 


addItemFirst(p, text, oi=None, ci=None, ptr=None, notify=False)

Prepend new item with given text and optional icon, and user-data pointer as first child of p.

ArgumentTypeDefaultDescription
pFXTreeItem  
textString  
oiFXIconNone 
ciFXIconNone 
ptrStringNone 
notifyBoolFalse 


addItemFirst(p, item, notify=False)

Prepend new [possibly subclassed] item as first child of p.

ArgumentTypeDefaultDescription
pFXTreeItem  
itemFXTreeItem  
notifyBoolFalse 


addItemLast(p, text, oi=None, ci=None, ptr=None, notify=False)

Append new item with given text and optional icon, and user-data pointer as last child of p.

ArgumentTypeDefaultDescription
pFXTreeItem  
textString  
oiFXIconNone 
ciFXIconNone 
ptrStringNone 
notifyBoolFalse 


addItemLast(p, text, oi=None, ci=None, ptr=None, notify=False)

Append new item with given text and optional icon, and user-data pointer as last child of p.

ArgumentTypeDefaultDescription
pFXTreeItem  
textString  
oiFXIconNone 
ciFXIconNone 
ptrStringNone 
notifyBoolFalse 


addItemLast(p, item, notify=False)

Append new [possibly subclassed] item as last child of p.

ArgumentTypeDefaultDescription
pFXTreeItem  
itemFXTreeItem  
notifyBoolFalse 


canFocus()

Tree list can receive focus.

Reimplemented from FXWindow.


clearItems(notify=False)

Remove all items from list.

ArgumentTypeDefaultDescription
notifyBoolFalse 


closeItem(item, notify=False)

Close item.

ArgumentTypeDefaultDescription
itemFXTreeItem  
notifyBoolFalse 


collapseTree(tree, notify=False)

Collapse tree.

ArgumentTypeDefaultDescription
treeFXTreeItem  
notifyBoolFalse 


create()

Create server-side resources.

Reimplemented from FXComposite.

Reimplemented in FXDirList.


deselectItem(item, notify=False)

Deselect item.

ArgumentTypeDefaultDescription
itemFXTreeItem  
notifyBoolFalse 


destroy()

Destroy server-side resources.

Reimplemented from FXComposite.

Reimplemented in FXDirList.


detach()

Detach server-side resources.

Reimplemented from FXComposite.

Reimplemented in FXDirList.


disableItem(item)

Disable item.

ArgumentTypeDefaultDescription
itemFXTreeItem  


enableItem(item)

Enable item.

ArgumentTypeDefaultDescription
itemFXTreeItem  


expandTree(tree, notify=False)

Expand tree.

ArgumentTypeDefaultDescription
treeFXTreeItem  
notifyBoolFalse 


extendSelection(item, notify=False)

Extend selection from anchor item to item.

ArgumentTypeDefaultDescription
itemFXTreeItem  
notifyBoolFalse 


findItem(text, start=None, flags=SEARCH_FORWARD| SEARCH_WRAP)

Search items for item by name, starting from start item; the flags argument controls the search direction, and case sensitivity.

ArgumentTypeDefaultDescription
textString  
startFXTreeItemNone 
flagsIntSEARCH_FORWARD| SEARCH_WRAP 


getAnchorItem()

Return anchor item, if any.


getContentHeight()

Return content height.

Reimplemented from FXScrollArea.


getContentWidth()

Compute and return content width.

Reimplemented from FXScrollArea.


getCurrentItem()

Return current item, if any.


getCursorItem()

Return item under cursor, if any.


getDefaultHeight()

Return default height.

Reimplemented from FXScrollArea.


getDefaultWidth()

Return default width.

Reimplemented from FXScrollArea.


getFirstItem()

REturn first root item.


getFont()

Return text font.


getHelpText()

Get the status line help text for this list.


getIndent()

Return parent-child indent amount.


getItemAt(x, y)

Get item at x,y, if any.

ArgumentTypeDefaultDescription
xInt  
yInt  


getItemCheck(item)

Returns the item checked state.

ArgumentTypeDefaultDescription
itemFXTreeItem  


getItemClosedIcon(item)

Return item's closed icon.

ArgumentTypeDefaultDescription
itemFXTreeItem  


getItemData(item)

Return item user-data pointer.

ArgumentTypeDefaultDescription
itemFXTreeItem  


getItemHeight(item)

Return item height.

ArgumentTypeDefaultDescription
itemFXTreeItem  


getItemOpenIcon(item)

Return item's open icon.

ArgumentTypeDefaultDescription
itemFXTreeItem  


getItemText(item)

Return item's text.

ArgumentTypeDefaultDescription
itemFXTreeItem  


getItemWidth(item)

Return item width.

ArgumentTypeDefaultDescription
itemFXTreeItem  


getLastItem()

Return last root item.


getLineColor()

Return line color.


getListStyle()

Return list style.


getNumItems()

Return number of items.


getNumVisible()

Return number of visible items.


getSelBackColor()

Return selected text background.


getSelTextColor()

Return selected text color.


getTextColor()

Return normal text color.


hitItem(item, x, y)

Return item hit code: 0 outside, 1 icon, 2 text, 3 box.

ArgumentTypeDefaultDescription
itemFXTreeItem  
xInt  
yInt  


isItemCurrent(item)

Return True if item is current.

ArgumentTypeDefaultDescription
itemFXTreeItem  


isItemEnabled(item)

Return True if item is enabled.

ArgumentTypeDefaultDescription
itemFXTreeItem  


isItemExpanded(item)

Return True if item expanded.

ArgumentTypeDefaultDescription
itemFXTreeItem  


isItemLeaf(item)

Return True if item is a leaf-item, i.e. has no children.

ArgumentTypeDefaultDescription
itemFXTreeItem  


isItemOpened(item)

Return True if item opened.

ArgumentTypeDefaultDescription
itemFXTreeItem  


isItemSelected(item)

Return True if item is selected.

ArgumentTypeDefaultDescription
itemFXTreeItem  


isItemVisible(item)

Return True if item is visible.

ArgumentTypeDefaultDescription
itemFXTreeItem  


killFocus()

Remove the focus from this window.

Reimplemented from FXWindow.


killSelection(notify=False)

Deselect all items.

ArgumentTypeDefaultDescription
notifyBoolFalse 


makeItemVisible(item)

Scroll to make item visible.

ArgumentTypeDefaultDescription
itemFXTreeItem  


moveItemAfter(other, item)

Move item after other.

ArgumentTypeDefaultDescription
otherFXTreeItem  
itemFXTreeItem  


moveItemBefore(other, item)

Move item before other.

ArgumentTypeDefaultDescription
otherFXTreeItem  
itemFXTreeItem  


openItem(item, notify=False)

Open item.

ArgumentTypeDefaultDescription
itemFXTreeItem  
notifyBoolFalse 


recalc()

Recalculate layout.

Reimplemented from FXWindow.


removeItem(item, notify=False)

Remove item.

ArgumentTypeDefaultDescription
itemFXTreeItem  
notifyBoolFalse 


removeItems(fm, to, notify=False)

Remove items in range [fm, to] inclusively.

ArgumentTypeDefaultDescription
fmFXTreeItem  
toFXTreeItem  
notifyBoolFalse 


reparentItem(item, p)

Reparent item under parent p.

ArgumentTypeDefaultDescription
itemFXTreeItem  
pFXTreeItem  


selectItem(item, notify=False)

Select item.

ArgumentTypeDefaultDescription
itemFXTreeItem  
notifyBoolFalse 


setAnchorItem(item)

Change anchor item.

ArgumentTypeDefaultDescription
itemFXTreeItem  


setCurrentItem(item, notify=False)

Change current item.

ArgumentTypeDefaultDescription
itemFXTreeItem  
notifyBoolFalse 


setFocus()

Move the focus to this window.

Reimplemented from FXWindow.


setFont(fnt)

Change text font.

ArgumentTypeDefaultDescription
fntFXFont  


setHelpText(text)

Set the status line help text for this list.

ArgumentTypeDefaultDescription
textString  


setIndent(in)

Change parent-child indent amount.

ArgumentTypeDefaultDescription
inInt  


setItemCheck(item, check, notify=False)

Sets the item checked state. Valid states are True, False and MAYBE. Returns True if the check value has changed, False otherwise.

ArgumentTypeDefaultDescription
itemFXTreeItem  
checkInt  
notifyBoolFalse 


setItemClosedIcon(item, icon)

Chance item's closed icon.

ArgumentTypeDefaultDescription
itemFXTreeItem  
iconFXIcon  


setItemData(item, ptr)

Change item user-data pointer.

ArgumentTypeDefaultDescription
itemFXTreeItem  
ptrString  


setItemOpenIcon(item, icon)

Change item's open icon.

ArgumentTypeDefaultDescription
itemFXTreeItem  
iconFXIcon  


setItemText(item, text)

Change item's text.

ArgumentTypeDefaultDescription
itemFXTreeItem  
textString  


setLineColor(clr)

Change line color.

ArgumentTypeDefaultDescription
clrFXColor  


setListStyle(style)

Change list style.

ArgumentTypeDefaultDescription
styleInt  


setNumVisible(nvis)

Change number of visible items.

ArgumentTypeDefaultDescription
nvisInt  


setSelBackColor(clr)

Change selected text background.

ArgumentTypeDefaultDescription
clrFXColor  


setSelTextColor(clr)

Change selected text color.

ArgumentTypeDefaultDescription
clrFXColor  


setTextColor(clr)

Change normal text color.

ArgumentTypeDefaultDescription
clrFXColor  


toggleItem(item, notify=False)

Toggle item selection.

ArgumentTypeDefaultDescription
itemFXTreeItem  
notifyBoolFalse 


updateItem(item)

Repaint item.

ArgumentTypeDefaultDescription
itemFXTreeItem  


Global flags

Tree list styles

TREELIST_EXTENDEDSELECT

Extended selection mode allows for drag-selection of ranges of items.

TREELIST_SINGLESELECT

Single selection mode allows up to one item to be selected.

TREELIST_BROWSESELECT

Browse selection mode enforces one single item to be selected at all times.

TREELIST_MULTIPLESELECT

Multiple selection mode is used for selection of individual items.

TREELIST_AUTOSELECT

Automatically select under cursor.

TREELIST_SHOWS_LINES

Lines shown.

TREELIST_SHOWS_BOXES

Boxes to expand shown.

TREELIST_ROOT_BOXES

Display root boxes also.

TREELIST_CHECK_BOXES

Display check boxes.

TREELIST_PROPAGATE_CHECKS

Propagate checked state to children and parents.