| Home | Trees | Index | Help |
|---|
| Module widgetlistbox :: Class WidgetListBox |
|
MegaArchetype--+ |MegaWidget--+ |ScrolledFrame--+ | WidgetListBox
Class for displaying a list of custom widgets
Each widget must be an instance of WidgetListBoxItem (or a subclass)| Method Summary | |
|---|---|
__init__(self,
parent,
*args,
**kw)
| |
Append an item to the end of the list | |
clear(self)
| |
Deletes an item from the end of the list | |
Similar to Pmw.ScrolledListBox.get() | |
See getvalue() | |
Returns the 'index' with which the item is internally stored, or -1 if the item isn't known | |
Returns a list of the currently selected items | |
Inserts an item at an arbitrary position within the list | |
Pack the item and set its bindings | |
Callback for mouse click events. | |
Callback which gets hit whenever an item gets deselected | |
Callback for 'Down' key events. | |
Callback which gets hit whenever an item gets selected | |
Callback for 'Up' key events. | |
scrollDown(self,
ev)
| |
scrollDownPage(self,
ev)
| |
scrollTo(self,
idx)
| |
scrollUp(self,
ev)
| |
scrollUpPage(self,
ev)
| |
Selects one item | |
Toss all the items in the list, and replace them with a whole new list of items. | |
Sets the current selection for the WidgetListBox to itemOrItems | |
Returns the number of items in the list | |
| Inherited from ScrolledFrame | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Inherited from MegaWidget | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Inherited from MegaArchetype | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Method Details |
|---|
append(self, item)Append an item to the end of the list Arguments:
|
delete(self, idxOrItem)Deletes an item from the end of the list Arguments:
|
get(self, first=None, last=None)Similar to Pmw.ScrolledListBox.get() Retrieves one, some or all the items in the list. Note that the items returned are widget refs Arguments:
|
getcurselection(self)See getvalue() |
getItemIndex(self, item)Returns the 'index' with which the item is internally stored, or -1 if the item isn't known |
getvalue(self)Returns a list of the currently selected items |
insert(self, idx, item)Inserts an item at an arbitrary position within the list Arguments:
|
itemPackAndBind(self, item)Pack the item and set its bindings |
on_click(self, ev)Callback for mouse click events. You likely won't need to override this. |
on_deselect(self, item)Callback which gets hit whenever an item gets deselected Override as desired |
on_down(self, ev)Callback for 'Down' key events. You likely won't need to override this. |
on_select(self, item)Callback which gets hit whenever an item gets selected Override as desired |
on_up(self, ev)Callback for 'Up' key events. You likely won't need to override this. |
selectItem(self, item)Selects one item Arguments:
|
setlist(self, lst, **kw)Toss all the items in the list, and replace them with a whole new list of items. Each element of lst must be an instance of WidgetListBoxItem (or subclass) |
setvalue(self, itemOrItems)Sets the current selection for the WidgetListBox to itemOrItems Argument:
|
size(self)Returns the number of items in the list
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.0 on Sat Nov 29 23:55:25 2003 | http://epydoc.sf.net |