| Home | Trees | Index | Help |
|
|---|
| Package wx :: Class ListBox |
|
object--+ |Object--+ |EvtHandler--+ |Window--+ |Control--+ |object--+ | | |ItemContainer--+ |ControlWithItems--+ | ListBox
CheckListBoxProxy of C++ ListBox class
| Method Summary | |
|---|---|
| ListBox | __init__(self,
parent,
id,
pos,
size,
choices,
style,
validator,
name)
|
__repr__(self)
| |
AppendAndEnsureVisible(self,
s)
| |
| bool |
Do the 2nd phase and create the GUI control. |
Deselect(self,
n)
| |
DeselectAll(self,
itemToLeaveSelected)
| |
EnsureVisible(self,
n)
| |
| VisualAttributes |
Get the default attributes for this class. (Static method) |
| PyObject | GetSelections(self)
|
Insert an item into the control before the item at the pos index, optionally associating some data object with the item. | |
InsertItems(self,
items,
pos)
| |
| bool | IsSelected(self,
n)
|
| bool | IsSorted(self)
|
This is the same as SetSelection and exists only because it is
slightly more natural for controls which support multiple selection. | |
Set(self,
items)
| |
SetFirstItem(self,
n)
| |
SetFirstItemStr(self,
s)
| |
SetItemBackgroundColour(self,
item,
c)
| |
SetItemFont(self,
item,
f)
| |
SetItemForegroundColour(self,
item,
c)
| |
Sets the item at index 'n' to be the selected item. | |
| bool | SetStringSelection(self,
s,
select)
|
| Instance Method Details |
|---|
Create(self, parent, id=-1, pos=DefaultPosition, size=DefaultSize, choices=wxPyEmptyStringArray, style=0, validator=DefaultValidator, name=ListBoxNameStr)Do the 2nd phase and create the GUI control.
|
Insert(self, item, pos, clientData=None)Insert an item into the control before the item at the pos index, optionally associating some data object with the item.
|
Select(self, n)This is the same as
|
SetSelection(self, n, select=True)Sets the item at index 'n' to be the selected item.
|
| Static Method Details |
|---|
GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)Get the default attributes for this class. This is useful if you want to use the same font or colour in your own control as in a standard control -- which is a much better idea than hard coding specific colours or fonts which might look completely out of place on the user's system, especially if it uses themes. The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of
the returned font. See
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1.20050511.rpd on Sun Mar 26 10:04:42 2006 | http://epydoc.sf.net |