FXIconList

Icon List Widget


FXIconList(p, tgt=None, sel=0, opts=ICONLIST_NORMAL, x=0, y=0, w=0, h=0)

Construct icon list.

ArgumentTypeDefaultDescription
pFXComposite  
tgtFXObjectNone 
selInt0 
optsIntICONLIST_NORMAL 
xInt0 
yInt0 
wInt0 
hInt0 


appendHeader(text, icon=None, size=1)

Append header with given text and optional icon.

ArgumentTypeDefaultDescription
textString  
iconFXIconNone 
sizeInt1 


appendItem(text, big=None, mini=None, ptr=None, notify=False)

Append new item with given text and optional icons, and user-data pointer.

ArgumentTypeDefaultDescription
textString  
bigFXIconNone 
miniFXIconNone 
ptrStringNone 
notifyBoolFalse 


appendItem(item, notify=False)

Append a [possibly subclassed] item to the end of the list.

ArgumentTypeDefaultDescription
itemFXIconItem  
notifyBoolFalse 


canFocus()

Icon list can receive focus.

Reimplemented from FXWindow.


clearItems(notify=False)

Remove all items from list.

ArgumentTypeDefaultDescription
notifyBoolFalse 


create()

Create server-side resources.

Reimplemented from FXComposite.

Reimplemented in FXFileList.


deselectItem(index, notify=False)

Deselect item at index.

ArgumentTypeDefaultDescription
indexInt  
notifyBoolFalse 


detach()

Detach server-side resources.

Reimplemented from FXComposite.

Reimplemented in FXFileList.


disableItem(index)

Disable item at index.

ArgumentTypeDefaultDescription
indexInt  


enableItem(index)

Enable item at index.

ArgumentTypeDefaultDescription
indexInt  


extendSelection(index, notify=False)

Extend selection from anchor index to index.

ArgumentTypeDefaultDescription
indexInt  
notifyBoolFalse 


findItem(text, start=-1, 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  
startInt-1 
flagsIntSEARCH_FORWARD| SEARCH_WRAP 


getAnchorItem()

Return anchor item index, or -1 if none.


getContentHeight()

Return content height.

Reimplemented from FXScrollArea.


getContentWidth()

Compute and return content width.

Reimplemented from FXScrollArea.


getCurrentItem()

Return current item index, or -1 if none.


getCursorItem()

Return index of item under cursor, or -1 if none.


getFont()

Return text font.


getHeader()

Return header control.


getHeaderIcon(index)

Return icon of header at index.

ArgumentTypeDefaultDescription
indexInt  


getHeaderSize(index)

Return width of header at index.

ArgumentTypeDefaultDescription
indexInt  


getHeaderText(index)

Return text of header at index.

ArgumentTypeDefaultDescription
indexInt  


getHelpText()

Get the status line help text for this widget.


getItemAt(x, y)

Return index of item at x,y, or -1 if none.

ArgumentTypeDefaultDescription
xInt  
yInt  


getItemBigIcon(index)

Return big icon of item at index.

ArgumentTypeDefaultDescription
indexInt  


getItemData(index)

Return item user-data pointer.

ArgumentTypeDefaultDescription
indexInt  


getItemHeight()

Return item height.


getItemMiniIcon(index)

Return mini icon of item at index.

ArgumentTypeDefaultDescription
indexInt  


getItemSpace()

Return maximum item space.


getItemText(index)

Return item text.

ArgumentTypeDefaultDescription
indexInt  


getItemWidth()

Return item width.


getListStyle()

Get the current icon list style.


getNumCols()

Return number of columns.


getNumHeaders()

Return number of headers.


getNumItems()

Return number of items.


getNumRows()

Return number of rows.


getSelBackColor()

Return selected text background.


getSelTextColor()

Return selected text color.


getSortFunc()

Return sort function.


getTextColor()

Return normal text color.


getViewportHeight()

Return viewport size.

Reimplemented from FXScrollArea.


hitItem(index, x, y, ww=1, hh=1)

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

ArgumentTypeDefaultDescription
indexInt  
xInt  
yInt  
wwInt1 
hhInt1 


insertItem(index, text, big=None, mini=None, ptr=None, notify=False)

Insert item at index with given text, icons, and user-data pointer.

ArgumentTypeDefaultDescription
indexInt  
textString  
bigFXIconNone 
miniFXIconNone 
ptrStringNone 
notifyBoolFalse 


insertItem(index, item, notify=False)

Insert a new [possibly subclassed] item at the give index.

ArgumentTypeDefaultDescription
indexInt  
itemFXIconItem  
notifyBoolFalse 


isItemCurrent(index)

Return True if item at index is current.

ArgumentTypeDefaultDescription
indexInt  


isItemEnabled(index)

Return True if item at index is enabled.

ArgumentTypeDefaultDescription
indexInt  


isItemSelected(index)

Return True if item at index is selected.

ArgumentTypeDefaultDescription
indexInt  


isItemVisible(index)

Return True if item at index is visible.

ArgumentTypeDefaultDescription
indexInt  


killFocus()

Remove the focus from this window.

Reimplemented from FXWindow.


killSelection(notify=False)

Deselect all items.

ArgumentTypeDefaultDescription
notifyBoolFalse 


makeItemVisible(index)

Scroll to make item at index visible.

ArgumentTypeDefaultDescription
indexInt  


moveContents(x, y)

Move contents to the specified position.

Reimplemented from FXScrollArea.

ArgumentTypeDefaultDescription
xInt  
yInt  


position(x, y, w, h)

Move and resize this window in the parent's coordinates.

Reimplemented from FXWindow.

ArgumentTypeDefaultDescription
xInt  
yInt  
wInt  
hInt  


prependItem(text, big=None, mini=None, ptr=None, notify=False)

Append new item with given text and optional icons, and user-data pointer.

ArgumentTypeDefaultDescription
textString  
bigFXIconNone 
miniFXIconNone 
ptrStringNone 
notifyBoolFalse 


prependItem(item, notify=False)

Append a [possibly subclassed] item to the end of the list.

ArgumentTypeDefaultDescription
itemFXIconItem  
notifyBoolFalse 


recalc()

Recalculate layout.

Reimplemented from FXWindow.


removeHeader(index)

Remove header at index.

ArgumentTypeDefaultDescription
indexInt  


removeItem(index, notify=False)

Remove item from list.

ArgumentTypeDefaultDescription
indexInt  
notifyBoolFalse 


replaceItem(index, text, big=None, mini=None, ptr=None, notify=False)

Replace items text, icons, and user-data pointer.

ArgumentTypeDefaultDescription
indexInt  
textString  
bigFXIconNone 
miniFXIconNone 
ptrStringNone 
notifyBoolFalse 


replaceItem(index, item, notify=False)

Replace the item with a [possibly subclassed] item.

ArgumentTypeDefaultDescription
indexInt  
itemFXIconItem  
notifyBoolFalse 


resize(w, h)

Resize this window to the specified width and height.

Reimplemented from FXWindow.

ArgumentTypeDefaultDescription
wInt  
hInt  


retrieveItem(index)

Return the item at the given index.

ArgumentTypeDefaultDescription
indexInt  


selectInRectangle(x, y, w, h, notify=False)

Select items in rectangle.

ArgumentTypeDefaultDescription
xInt  
yInt  
wInt  
hInt  
notifyBoolFalse 


selectItem(index, notify=False)

Select item at index.

ArgumentTypeDefaultDescription
indexInt  
notifyBoolFalse 


setAnchorItem(index)

Change anchor item index.

ArgumentTypeDefaultDescription
indexInt  


setCurrentItem(index, notify=False)

Change current item index.

ArgumentTypeDefaultDescription
indexInt  
notifyBoolFalse 


setFocus()

Move the focus to this window.

Reimplemented from FXWindow.


setFont(fnt)

Change text font.

ArgumentTypeDefaultDescription
fntFXFont  


setHeaderIcon(index, icon)

Change icon of header at index.

ArgumentTypeDefaultDescription
indexInt  
iconFXIcon  


setHeaderSize(index, size)

Change size of header at index.

ArgumentTypeDefaultDescription
indexInt  
sizeInt  


setHeaderText(index, text)

Change text of header at index.

ArgumentTypeDefaultDescription
indexInt  
textString  


setHelpText(text)

Set the status line help text for this widget.

ArgumentTypeDefaultDescription
textString  


setItemBigIcon(index, icon)

Change item big icon.

ArgumentTypeDefaultDescription
indexInt  
iconFXIcon  


setItemData(index, ptr)

Change item user-data pointer.

ArgumentTypeDefaultDescription
indexInt  
ptrString  


setItemMiniIcon(index, icon)

Change item mini icon.

ArgumentTypeDefaultDescription
indexInt  
iconFXIcon  


setItemSpace(s)

Change maximum item space for each item.

ArgumentTypeDefaultDescription
sInt  


setItemText(index, text)

Change item text.

ArgumentTypeDefaultDescription
indexInt  
textString  


setListStyle(style)

Set the current icon list style.

ArgumentTypeDefaultDescription
styleInt  


setSelBackColor(clr)

Change selected text background.

ArgumentTypeDefaultDescription
clrFXColor  


setSelTextColor(clr)

Change selected text color.

ArgumentTypeDefaultDescription
clrFXColor  


setSortFunc(func)

Change sort function.

ArgumentTypeDefaultDescription
funcFXIconListSortFunc  


setTextColor(clr)

Change normal text color.

ArgumentTypeDefaultDescription
clrFXColor  


sortItems()

Sort items.


toggleItem(index, notify=False)

Toggle item at index.

ArgumentTypeDefaultDescription
indexInt  
notifyBoolFalse 


updateItem(index)

Repaint item at index.

ArgumentTypeDefaultDescription
indexInt  


Global flags

Icon list styles

ICONLIST_EXTENDEDSELECT

Extended selection mode.

ICONLIST_SINGLESELECT

At most one selected item.

ICONLIST_BROWSESELECT

Always exactly one selected item.

ICONLIST_MULTIPLESELECT

Multiple selection mode.

ICONLIST_AUTOSIZE

Automatically size item spacing.

ICONLIST_DETAILED

List mode.

ICONLIST_MINI_ICONS

Mini Icon mode.

ICONLIST_BIG_ICONS

Big Icon mode.

ICONLIST_ROWS

Row-wise mode.

ICONLIST_COLUMNS

Column-wise mode.