pyface.i_single_choice_dialog module

The interface for a dialog that prompts for a choice from a list.

class pyface.i_single_choice_dialog.ISingleChoiceDialog(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: IDialog

The interface for a dialog that prompts for a choice from a list.

choices = List(Any)

List of objects to choose from.

choice = Any()

The object chosen, if any.

name_attribute = Str()

An optional attribute to use for the name of each object in the dialog.

message = Str()

The message to display to the user.

class pyface.i_single_choice_dialog.MSingleChoiceDialog[source]

Bases: HasTraits

The mixin class that contains common code for toolkit specific implementations of the IConfirmationDialog interface.