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.SingleChoiceDialog — wxPython 4.3.2 Docs
|
Constructor, taking an array of String choices and optional client data. |
|
Returns the index of selected item. |
|
Returns the selected string. |
|
Sets the index of the initially selected item. |
|
Shows the dialog, returning either |
Properties Summary¶See |
|
Class API¶PySingleChoiceDialog(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.
Constructor, taking an array of String choices and optional client data.
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 the index of selected item.
int
Returns the selected string.
str
Sets the index of the initially selected item.
selection (int)
None
Shows the dialog, returning either wx.ID_OK or wx.ID_CANCEL.
int
See GetSelection and SetSelection