Logo Search packages:      
Sourcecode: newt version File versions  Download package

snack::Listbox Class Reference

Inheritance diagram for snack::Listbox:


List of all members.

Detailed Description

Listbox class.


 - Listbox(self, height, scroll = 0, returnExit = 0, width = 0, showCursor = 0, multiple = 0, border = 0)
 - insert(self, text, item, before) : insert element; before = key to item to insert before, or None.
 - delete(self, item)               : delete item from list.
 - replace(self, text,item)         : Replace a given item's text
 - current(self)                    : returns currently selected item
 - getSelection(self)               : returns a list of selected items
 - setCurrent(self,i tem)           : select current.
 - clear(self)                      : clear listbox

Definition at line 142 of file snack.py.

Public Member Functions

def __init__
def __init__
def append
def clear
def current
def delete
def getSelection
def insert
def replace
def setCallback
def setCurrent

Public Attributes


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index