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.
Class Hierarchy¶
Inheritance diagram for class MultiChoiceDialog:
Control Appearance¶
Methods Summary¶Constructor taking an array of String choices. |
|
Returns array with indexes of selected items. |
|
Sets selected items from the array of selected itemsâ indexes. |
|
Shows the dialog, returning either |
Properties Summary¶See |
Class API¶Possible constructors:
MultiChoiceDialog(parent, message, caption, n, choices,
style=CHOICEDLG_STYLE, pos=DefaultPosition) -> None
MultiChoiceDialog(parent, message, caption, choices,
style=CHOICEDLG_STYLE, pos=DefaultPosition) -> None
This class represents a dialog that shows a list of strings, and allows the user to select one or more.
__init__ (self, parent, message, caption, n, choices, style=CHOICEDLG_STYLE, pos=DefaultPosition)
Constructor taking an array of String choices.
parent (wx.Window) â Parent window.
message (string) â Message to show on the dialog.
caption (string) â The dialog caption.
n (int) â The number of choices.
choices (string) â An array of strings, or a string list, containing the choices.
style (long) â A dialog style (bitlist) containing flags chosen from standard dialog styles and the ones listed in the class documentation. The default value is equivalent to wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER | wx.OK | wx.CANCEL | wx.CENTRE.
pos (wx.Point) â Dialog position.
None
__init__ (self, parent, message, caption, choices, style=CHOICEDLG_STYLE, pos=DefaultPosition)
Constructor taking an array of String choices.
parent (wx.Window) â Parent window.
message (string) â Message to show on the dialog.
caption (string) â The dialog caption.
choices (list of strings) â An array of strings, or a string list, containing the choices.
style (long) â A dialog style (bitlist) containing flags chosen from standard dialog styles and the ones listed in the class documentation. The default value is equivalent to wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER | wx.OK | wx.CANCEL | wx.CENTRE.
pos (wx.Point) â Dialog position.
None
variant (WindowVariant)
Returns array with indexes of selected items.
List[int]
Sets selected items from the array of selected itemsâ indexes.
selections (list of integers)
None
Shows the dialog, returning either wx.ID_OK or wx.ID_CANCEL.
int
See GetSelections and SetSelections