GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.CheckListBox — wxPython 4.3.2 Docs
|
Constructor, creating and showing a list box. |
|
Checks the given item. |
|
GetCheckedItems() |
|
GetCheckedStrings() |
|
Returns a list of the indices of the currently selected items. |
|
Returns |
|
SetCheckedItems(indexes) |
|
SetCheckedStrings(strings) |
Properties Summary¶See |
|
See |
|
See |
Class API¶Possible constructors:
CheckListBox(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, choices=[], style=0, validator=DefaultValidator, name="listBox") -> None CheckListBox() -> None
A CheckListBox is like a ListBox, but allows items to be checked or unchecked.
__init__ (self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, choices=[], style=0, validator=DefaultValidator, name=”listBox”)
Constructor, creating and showing a list box.
parent (wx.Window) – Parent window. Must not be nullptr.
id (wx.WindowID) – Window identifier. The value wx.ID_ANY indicates a default value.
pos (wx.Point) – Window position.
size (wx.Size) – Window size. If DefaultSize is specified then the window is sized appropriately.
choices (list of strings) – An array of strings with which to initialise the control.
style (long) – Window style. See wx.CheckListBox.
validator (wx.Validator) – Window validator.
name (string) – Window name.
None
__init__ (self)
Default constructor.
None
Checks the given item.
Note that calling this method does not result in a wxEVT_CHECKLISTBOX event being emitted.
item (int) – Index of item to check.
check (bool) – True if the item is to be checked, False otherwise.
None
parent (wx.Window)
id (wx.WindowID)
pos (wx.Point)
size (wx.Size)
choices (list of strings)
style (long)
validator (wx.Validator)
name (string)
bool
GetCheckedItems()
Return a sequence of integers corresponding to the checked items in
the control, based on IsChecked.
GetCheckedStrings()
Return a tuple of strings corresponding to the checked
items of the control, based on GetChecked.
variant (WindowVariant)
Returns a list of the indices of the currently selected items.
List[int]
Returns True if the given item is checked, False otherwise.
item (int) – Index of item whose check status is to be returned.
bool
SetCheckedItems(indexes)
Sets the checked state of items if the index of the item is found in the indexes sequence.
SetCheckedStrings(strings)
Sets the checked state of items if the item’s string is found in the strings sequence.
See GetChecked and SetChecked
See GetCheckedItems and SetCheckedItems
See GetCheckedStrings and SetCheckedStrings