Module Expr Str ImportFrom alias alias ImportFrom alias alias alias alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad keyword Call NameLoad keyword ListLoad Str Str Str Str Str Str keyword Num Assign NameStore Call NameLoad Str Call NameLoad Str Call NameLoad Str keyword Str Str Str Str Call NameLoad Str Call NameLoad Str keyword Str Assign NameStore Call NameLoad NameLoad keyword Str keyword ListLoad Str keyword NameLoad decorator_list Assign NameStore Call NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Checklist editor for a List of strings

The checklist editor provides a simple way for the user to select multiple items
from a list of known strings.

This example demonstrates the checklist editor's two most useful styles:

  * 'custom' displays all the strings in columns next to checkboxes.
  * 'readonly' displays only the selected strings, as a Python list of strings.

We do *not* demonstrate two styles which are not as useful for this editor:

  * 'text' is like 'readonly' except editable. It will accept a list of strings
    or numbers or even expressions. This is useful for quick, non-production
    data entry, but it ignores the editor's list of valid 'values'.
  * 'simple' (the default) only lets you select one item at a time, from a
    drop-down widget.
 traits.api HasTraits List traitsui.api UItem Group View CheckListEditor Label CheckListEditorDemo N/A HasTraits N/A N/A  Define the main CheckListEditor simple demo class.  N/A checklist N/A List editor N/A CheckListEditor values N/A one two three four five six cols 2 N/A checklist_group N/A Group 10 N/A Label The custom style lets you select items from a checklist: N/A UItem checklist style custom 10 _ 10 N/A Label The readonly style shows you which items are selected, as a Python list: N/A UItem checklist style readonly N/A traits_view N/A View checklist_group title CheckListEditor buttons N/A OK resizable True N/A N/A demo N/A CheckListEditorDemo N/A N/A __name__ __main__ N/A N/A N/A N/A demo configure_traits