wx.MultiChoiceDialog

Inheritance diagram for wx.MultiChoiceDialog:



Description

This class represents a dialog that shows a list of strings, and allows the user to select one or more.

Properties Summary

Class API

Methods

__init__(parent, message, caption, choices=[], style=wx.CHOICEDLG_STYLE, pos=wx.DefaultPosition)

Constructor. Use the ShowModal method to show the dialog.

Parameters::

  • parent (wx.Window): The parent window.
  • message (string): Text to display above the list of selections.
  • caption (string): Text to use in the title bar of the dialog.
  • choices (list of strings): A list of strings or unicode objects that the user is allowed to choose from.
  • style (int): Styles to apply to the dialog. The default value is equivallent to wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER | wx.OK | wx.CANCEL | wx.CENTER.
  • pos (wx.Point): Where to position the dialog (not used on Windows)

Returns:

wx.MultiChoiceDialog


GetSelections()

Returns array with indexes of selected items.


Returns:

list of integers


SetSelections(selections)

Sets selected items from the array of selected items’ indexes.

Parameters:

  • selections (list of integers)

ShowModal()

Shows the dialog, returning one of wx.ID_OK or wx.ID_CANCEL.


Returns:

int


Properties

Selections
See GetSelections and SetSelections