Navigation
index
next
|
previous
|
Traits 3 User Manual
»
Traits UI User Guide
Traits UI User Guide
¶
Traits UI User Guide
Introduction
The Model-View-Controller (MVC) Design Pattern
The Model: HasTraits Subclasses and Objects
The View: View Objects
The Controller: Handler Subclasses and Objects
Toolkit Selection
Structure of this Guide
The View and Its Building Blocks
The View Object
Contents of a View
The Item Object
Subclasses of Item
The Group Object
Subclasses of Group
Customizing a View
Specifying Window Type: the
kind
Attribute
Stand-alone Windows
Wizards
Panels and Subpanels
Command Buttons: the
buttons
Attribute
Other View Attributes
Advanced View Concepts
Internal Views
Defining a Default View
Defining Multiple Views Within the Model
Separating Model and View: External Views
Displaying a View
configure_traits()
edit_traits()
ui()
The View Context
Multi-Object Views
Include Objects
Controlling the Interface: the Handler
Backstage: Introducing the UIInfo Object
Assigning Handlers to Views
Binding a Singleton Handler to a View
Linking Handler and View at Edit Time
Creating a Default View Within a Handler
Handler Subclasses
Controller Class
ModelView Class
Writing Handler Methods
Overriding Standard Methods
Reacting to Trait Changes
Implementing Custom Window Commands
Traits UI Themes
Theme Data
Themeable Traits UI Elements
Adding Themes to a UI
Introduction to Trait Editor Factories
Specifying an Alternate Trait Editor Factory
Initializing Editors
Specifying an Editor Style
The ‘simple’ Style
The ‘custom’ Style
The ‘text’ Style
The ‘readonly’ style
Using Editor Styles
The Predefined Trait Editor Factories
Basic Trait Editor Factories
ArrayEditor()
BooleanEditor()
ButtonEditor()
CheckListEditor()
CodeEditor()
ColorEditor()
CompoundEditor()
DirectoryEditor()
EnumEditor()
FileEditor()
FontEditor()
HTMLEditor()
ImageEnumEditor()
InstanceEditor()
ListEditor()
ListStrEditor()
NullEditor()
RangeEditor()
RGBColorEditor()
SetEditor()
ShellEditor()
TextEditor()
TitleEditor()
TupleEditor()
ValueEditor()
Advanced Trait Editors
CustomEditor()
DropEditor()
DNDEditor()
KeyBindingEditor()
TableEditor()
Specifying Columns
Managing Items
Editing the Table
Defining the Layout
Defining the Format
Other User Interactions
TabularEditor()
Advantages
Disadvantages
TabularAdapter
The Tabular Editor User Interface
TreeEditor()
Defining Nodes
Defining Operations on Nodes
Defining the Format
“Extra” Trait Editor Factories
AnimatedGIFEditor()
ArrayViewEditor()
FlashEditor()
HistoryEditor()
IEHTMLEditor()
ImageEditor()
LEDEditor()
ThemedButtonEditor()
ThemedCheckboxEditor()
ThemedSliderEditor()
ThemedTextEditor()
ThemedVerticalNotebookEditor()
Tips, Tricks and Gotchas
Getting and Setting Model View Elements
trait_views()
trait_view()
Appendix I: Glossary of Terms
Appendix II: Editor Factories for Predefined Traits
Indices and tables
¶
Index
Module Index
Search Page
Table Of Contents
Traits UI User Guide
Indices and tables
Previous topic
Writing a graphical application for scientific programming using TraitsUI
Next topic
Traits UI User Guide
This Page
Show Source
Quick search
Navigation
index
next
|
previous
|
Traits 3 User Manual
»
Traits UI User Guide