wx.MultiChoiceDialog¶This class represents a dialog that shows a list of strings, and allows the user to select one or more.
Window Styles¶This class supports the following styles:
wx.OK: Show an wx.OK button.wx.CANCEL: Show a Cancel button.wx.CENTRE: Centre the message. Not Windows.
Methods Summary¶__init__ |
Constructor taking an array of String choices. |
GetSelections |
Returns array with indexes of selected items. |
SetSelections |
Sets selected items from the array of selected items’ indexes. |
ShowModal |
Shows the dialog, returning either wx.ID_OK or wx.ID_CANCEL. |
Class API¶wx.MultiChoiceDialog(Dialog)¶Possible constructors:
MultiChoiceDialog(parent, message, caption, n, choices,
style=CHOICEDLG_STYLE, pos=DefaultPosition)
MultiChoiceDialog(parent, message, caption, choices,
style=CHOICEDLG_STYLE, pos=DefaultPosition)
This class represents a dialog that shows a list of strings, and allows the user to select one or more.
__init__(self, *args, **kw)¶__init__ (self, parent, message, caption, n, choices, style=CHOICEDLG_STYLE, pos=DefaultPosition)
Constructor taking an array of String choices.
| Parameters: |
|
|---|
__init__ (self, parent, message, caption, choices, style=CHOICEDLG_STYLE, pos=DefaultPosition)
Constructor taking an array of String choices.
| Parameters: |
|
|---|
GetSelections(self)¶Returns array with indexes of selected items.
| Return type: | list of integers |
|---|
SetSelections(self, selections)¶Sets selected items from the array of selected items’ indexes.
| Parameters: | selections (list of integers) – |
|---|
ShowModal(self)¶Shows the dialog, returning either wx.ID_OK or wx.ID_CANCEL.
| Return type: | int |
|---|
Selections¶See GetSelections and SetSelections