qt_binder.raw_widgets

Mostly automated wrappers around all of the QWidgets and QLayouts provided in PySide.QtGui. Generally, the Binder is named by dropping the leading Q. Only a few of these are minimally customized when it is necessary to make them useful. Only those are documented here. The Qt API reference should be consulted for details of what properties, signals, and slots are defined.


qt_binder.raw_widgets.binder_registry

The global TypeRegistry mapping PySide/PyQt types to their default Binder class.


class qt_binder.raw_widgets.ComboBox(*args, **traits)[source]

Bases: qt_binder.binder.Composite

Customized to exposed the line-edit widget as a child Binder.

qclass
lineEdit_class

alias of LineEdit


class qt_binder.raw_widgets.Layout(*children, **kwds)[source]

Bases: qt_binder.binder.NChildren

Base class for all QLayouts.

qclass
construct()[source]

Build the QLayout.


class qt_binder.raw_widgets.BoxLayout(*children, **kwds)[source]

Bases: qt_binder.raw_widgets.Layout

Base class for box layouts.

qclass
configure()[source]

class qt_binder.raw_widgets.VBoxLayout(*children, **kwds)[source]

Bases: qt_binder.raw_widgets.BoxLayout

A vertical layout.

qclass

class qt_binder.raw_widgets.HBoxLayout(*children, **kwds)[source]

Bases: qt_binder.raw_widgets.BoxLayout

A horizontal layout.

qclass

class qt_binder.raw_widgets.StackedLayout(*children, **kwds)[source]

Bases: qt_binder.raw_widgets.Layout

A stacked layout.

qclass
configure()[source]

class qt_binder.raw_widgets.FormLayout(*rows, **traits)[source]

Bases: qt_binder.raw_widgets.Layout

Children are (label, widget) pairs.

The label can be a unicode string or None. The last item can be a single Binder to take up the whole space.

qclass
child_binders = Property(List(Instance(Binder)))

The child Binder instances.

rows = List(Either(Tuple(Either(None, Unicode, Instance(Binder)), Instance(Binder)), Instance(Binder)))

The (label, widget) pairs.

configure()[source]

class qt_binder.raw_widgets.WithLayout(layout, **traits)[source]

Bases: qt_binder.binder.Composite

A dumb QWidget wrapper with a child Layout.

This is needed in some places where a true QWidget is needed instead of a QLayout.

qclass
configure()[source]

class qt_binder.raw_widgets.Splitter(*children, **kwds)[source]

Bases: qt_binder.binder.NChildren

A splitter widget for arbitrary numbers of children.

qclass
construct()[source]

Build the QLayout.

configure()[source]

class qt_binder.raw_widgets.ButtonGroup(*button_ids, **traits)[source]

Bases: qt_binder.binder.Binder

A group of buttons.

This is a special Binder used in the button_groups= keyword to Bound. ButtonGroup is not a widget, so it does not get put into the widget hierarchy. It is given the ID strings of the button Binders that belong to the group.

qclass
button_ids = List(Either(Str, Tuple(Str, Int)))

List of Binder ID strings or (binder_id_str, qt_id_int)

add_buttons_from_context(context)[source]

Pull out the required buttons from the context and add them.

Previous topic

qt_binder.bound_editor

Next topic

qt_binder.type_registry

This Page