FullChoice

A full choice is a combination of a label and a menu.

Base Classes

Methods

__init__(self, parent, label, contents, default)

   def __init__(self, 
                parent, 
                label, 
                contents = [], 
                default = None
                ):

Constructor.

addChoice(self, choice)

   def addChoice(self, choice):

Adds the given choice to the menu. choice must be a string.

get(self)

   def get(self):

Returns the current selection in the menu.

setSelection(self, selection)

   def setSelection(self, selection):

Sets the current selection of the menu button. selection must be a string. No verification is performed to insure that it is a valid choice.