Component: List


Required Attributes

NameDefault value
nameNone

Optional Attributes

NameDefault value
backgroundColorNone
commandNone
enabled1
fontNone
foregroundColorNone
id-1
items[]
position[-1, -1]
selectedNone
size[-1, -1]
toolTip''
userdata''
visible1

Events:

gainFocus
loseFocus
mouseContextDoubleClick
mouseContextDown
mouseContextUp
mouseDoubleClick
mouseDown
mouseEnter
mouseLeave
mouseMiddleDoubleClick
mouseMiddleDown
mouseMiddleUp
mouseMove
mouseUp
select
timer

Methods:

methodargsdoc stringcomments
append(self, aString)  
clear(self)  
delete(self, aPosition)  
findString(self, aString)  
getCount(self)  
getId(self) # KEA 2004-04-10 # getId should go away # components should just use # self.id during and after initialization
getNumber(self) # KEA this should probably have a different name # KEA 2004-03-30, obsolete in wxPython 2.5 and will be removed in PythonCard
getSelectionIndex(self)  
getSelections(self)  
getString(self, aPosition)  
getStringSelection(self)  
insertItems(self, aList, aPosition)  
setFocus(self, aBoolean=1)  
setString(self, n, aString)  
setStringSelection(self, s, select=1) # KEA this is redundant, may remove it later

SourceForge Logo