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 defaultBinder
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
¶
-
-
class
qt_binder.raw_widgets.
BoxLayout
(*children, **kwds)[source]¶ Bases:
qt_binder.raw_widgets.Layout
Base class for box layouts.
-
qclass
¶
-
-
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
¶
-
-
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 orNone
. The last item can be a singleBinder
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.
-
-
class
qt_binder.raw_widgets.
WithLayout
(layout, **traits)[source]¶ Bases:
qt_binder.binder.Composite
A dumb
QWidget
wrapper with a childLayout
.This is needed in some places where a true
QWidget
is needed instead of aQLayout
.-
qclass
¶
-
-
class
qt_binder.raw_widgets.
Splitter
(*children, **kwds)[source]¶ Bases:
qt_binder.binder.NChildren
A splitter widget for arbitrary numbers of children.
-
qclass
¶
-
-
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 thebutton_groups=
keyword toBound
.ButtonGroup
is not a widget, so it does not get put into the widget hierarchy. It is given the ID strings of the buttonBinders
that belong to the group.-
qclass
¶
List of
Binder
ID strings or(binder_id_str, qt_id_int)
Pull out the required buttons from the context and add them.
-