Inherits from
- Dialog: enthought.pyface.dialog.Dialog
Attributes
- caption
caption = Str
- choice
choice = Any
- choices
choices = List(Any)
- name_attribute
name_attribute = Str
Method summary
- close(self)
Methods
- close(self)
Closes the window.
API Reference for Enthought Tool Suite 3.2.0
A dialog that allows the user to chose a single item from a list.
choices is the list of things to choose from. If name_attribute is set then we assume it is a list of objects getattr(obj, name_attribute) gives us the string to put in the dialog. Otherwise we just call str() on the choices to get the strings.
caption = Str
choice = Any
choices = List(Any)
name_attribute = Str
Closes the window.
© Copyright 2002-2009 Enthought, Inc.