list_dialog
Classes:
|
A dialog containing a |
-
class
list_dialog
(parent, id=- 1, title='Choose', label='Choose: ', choices=None, pos=(- 1, - 1), size=(- 1, - 1), style=536877056, name=b'dialog')[source] Bases:
Dialog
A dialog containing a
wx.ListBox
.- Parameters
parent (
Window
) – The parent window. Can be None, a frame or another dialog boxid (
int
) – An identifier for the dialog.wx.ID_ANY
is taken to mean a default. Default-1
.title (
str
) – The title of the dialog. Default'Choose'
.label (
str
) – The label for thewx.ListBox
. Default'Choose: '
.choices (
Optional
[List
[str
]]) – A list of choices for the wx.ListBox. DefaultNone
.pos (
Point
) – The dialog position. The valuewx.DefaultPosition
indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform. Default(-1, -1)
.size (
Size
) – The dialog size. The value ::wxDefaultSize indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform. Default(-1, -1)
.style (
int
) – The window style. See wxPanel. Default536877056
.name (
str
) – Window name. Defaultb'dialog'
.
Methods:
do_cancel
(_)Event Handler for dialog being cancelled
do_select
(_)Event Handler for item in list being selected