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
TypeRegistrymapping PySide/PyQt types to their defaultBinderclass.
-
class
qt_binder.raw_widgets.ComboBox(*args, **traits)[source]¶ Bases:
qt_binder.binder.CompositeCustomized 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.NChildrenBase class for all
QLayouts.-
qclass¶
-
-
class
qt_binder.raw_widgets.BoxLayout(*children, **kwds)[source]¶ Bases:
qt_binder.raw_widgets.LayoutBase class for box layouts.
-
qclass¶
-
-
class
qt_binder.raw_widgets.VBoxLayout(*children, **kwds)[source]¶ Bases:
qt_binder.raw_widgets.BoxLayoutA vertical layout.
-
qclass¶
-
-
class
qt_binder.raw_widgets.HBoxLayout(*children, **kwds)[source]¶ Bases:
qt_binder.raw_widgets.BoxLayoutA horizontal layout.
-
qclass¶
-
-
class
qt_binder.raw_widgets.StackedLayout(*children, **kwds)[source]¶ Bases:
qt_binder.raw_widgets.LayoutA stacked layout.
-
qclass¶
-
-
class
qt_binder.raw_widgets.FormLayout(*rows, **traits)[source]¶ Bases:
qt_binder.raw_widgets.LayoutChildren are (label, widget) pairs.
The label can be a
unicodestring orNone. The last item can be a singleBinderto take up the whole space.-
qclass¶
-
child_binders= Property(List(Instance(Binder)))¶ The child
Binderinstances.
-
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.CompositeA dumb
QWidgetwrapper with a childLayout.This is needed in some places where a true
QWidgetis needed instead of aQLayout.-
qclass¶
-
-
class
qt_binder.raw_widgets.Splitter(*children, **kwds)[source]¶ Bases:
qt_binder.binder.NChildrenA splitter widget for arbitrary numbers of children.
-
qclass¶
-
-
class
qt_binder.raw_widgets.ButtonGroup(*button_ids, **traits)[source]¶ Bases:
qt_binder.binder.BinderA group of buttons.
This is a special
Binderused in thebutton_groups=keyword toBound.ButtonGroupis not a widget, so it does not get put into the widget hierarchy. It is given the ID strings of the buttonBindersthat belong to the group.-
qclass¶
List of
BinderID strings or(binder_id_str, qt_id_int)
Pull out the required buttons from the context and add them.
-