dip.pui

The dip.pui module implements a toolkit independent API for creating a user interface procedurally.

Action()

dip.pui.Action(parent=None, **args)

Create a toolkit specific action that implements the IAction interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the action.

CheckBox()

dip.pui.CheckBox(parent=None, **args)

Create a toolkit specific check box that implements the ICheckBox interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the check box.

ComboBox()

dip.pui.ComboBox(parent=None, **args)

Create a toolkit specific combo box that implements the IComboBox interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the combo box.

Dialog()

dip.pui.Dialog(parent=None, **args)

Create a toolkit specific dialog that implements the IDialog interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the dialog.

Dock()

dip.pui.Dock(parent=None, **args)

Create a toolkit specific dock that implements the IDock interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the dock.

FilesystemLocationEditor()

dip.pui.FilesystemLocationEditor(parent=None, **args)

Create a toolkit specific file selector that implements the IFilesystemLocationEditor interface. Note that StorageLocationEditor should normally be used instead.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the filesystem location editor.

FloatSpinBox()

dip.pui.FloatSpinBox(parent=None, **args)

Create a toolkit specific float spin box that implements the IFloatSpinBox interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the float spin box.

Form()

dip.pui.Form(parent=None, **args)

Create a toolkit specific form that implements the IForm interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the form.

Grid()

dip.pui.Grid(parent=None, **args)

Create a toolkit specific grid container that implements the IGrid interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the grid container.

GroupBox()

dip.pui.GroupBox(parent=None, **args)

Create a toolkit specific group box that implements the IGroupBox interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the group box.

HBox()

dip.pui.HBox(parent=None, **args)

Create a toolkit specific horizontal box container that implements the the IHBox interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the horizontal box container.

Label()

dip.pui.Label(parent=None, **args)

Create a toolkit specific label that implements the ILabel interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the label.

LineEditor()

dip.pui.LineEditor(parent=None, **args)

Create a toolkit specific line editor that implements the ILineEditor interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the line editor.

ListEditor()

dip.pui.ListEditor(parent=None, **args)

Create a toolkit specific list editor that implements the IListEditor interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the list editor.

MainWindow()

dip.pui.MainWindow(parent=None, **args)

Create a toolkit specific main window that implements the IMainWindow interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the main window.

MessageArea()

dip.pui.MessageArea(parent=None, **args)

Create a toolkit specific message area that implements the IMessageArea interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the message area.

OptionList()

dip.pui.OptionList(parent=None, **args)

Create a toolkit specific option list that implements the IOptionList interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the option list.

PushButton()

dip.pui.PushButton(parent=None, **args)

Create a toolkit specific push button that implements the IPushButton interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the push button.

RadioButtons()

dip.pui.RadioButtons(parent=None, **args)

Create a toolkit specific set of radio buttons that implements the IRadioButtons interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the radio buttons.

SpinBox()

dip.pui.SpinBox(parent=None, **args)

Create a toolkit specific int spin box that implements the ISpinBox interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the int spin box.

Splitter()

dip.pui.Splitter(parent=None, **args)

Create a toolkit specific splitter that implements the ISplitter interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the splitter.

StorageLocationEditor()

dip.pui.StorageLocationEditor(parent=None, **args)

Create a toolkit specific file selector that implements the IStorageLocationEditor interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the storage location editor.

TabBar()

dip.pui.TabBar(parent=None, **args)

Create a toolkit specific tab bar that implements the ITabBar interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the tab bar.

TabPage()

dip.pui.TabPage(parent=None, **args)

Create a toolkit specific tab page that implements the ITabPage interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the tab page.

TableEditor()

dip.pui.TableEditor(parent=None, **args)

Create a toolkit specific table editor that implements the ITableEditor interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the table editor.

TextEditor()

dip.pui.TextEditor(parent=None, **args)

Create a toolkit specific text editor that implements the ITextEditor interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the text editor.

ToolButton()

dip.pui.ToolButton(parent=None, **args)

Create a toolkit specific tool button that implements the IToolButton interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the tool button.

Toolkit

class dip.pui.Toolkit

Base class: Singleton

The Toolkit class is a singleton that provides access to a default toolkit.

instance = Instance(IToolkit)

The toolkit instance.

VBox()

dip.pui.VBox(parent=None, **args)

Create a toolkit specific vertical box container that implements the IVBox interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the vertical box container.

ViewStack()

dip.pui.ViewStack(parent=None, **args)

Create a toolkit specific view stack that implements the IViewStack interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the view stack.

Wizard()

dip.pui.Wizard(parent=None, **args)

Create a toolkit specific wizard that implements the IWizard interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the wizard.

WizardPage()

dip.pui.WizardPage(parent=None, **args)

Create a toolkit specific wizard page that implements the IWizardPage interface.

Parameters:
  • parent – is the optional parent view.
  • **args – are the initial attribute and property values.
Returns:

the wizard page.