list_dialog

Classes:

list_dialog(parent[, id, title, label, …])

A dialog containing a wx.ListBox.

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 box

  • id (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 the wx.ListBox. Default 'Choose: '.

  • choices (Optional[List[str]]) – A list of choices for the wx.ListBox. Default None.

  • pos (Point) – The dialog position. The value wx.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. Default 536877056.

  • name (str) – Window name. Default b'dialog'.

Methods:

do_cancel(_)

Event Handler for dialog being cancelled

do_select(_)

Event Handler for item in list being selected

do_cancel(_)[source]

Event Handler for dialog being cancelled

do_select(_)[source]

Event Handler for item in list being selected