connect_value¶
-
class
glue.external.echo.qt.
connect_value
(instance, prop, widget, value_range=None, log=False)¶ Bases:
glue.external.echo.qt.BaseConnection
Connect a numerical callback property with a Qt widget representing a value.
- Parameters
- instanceobject
The class instance that the callback property is attached to
- propstr
The name of the callback property
- widgetQtWidget
The Qt widget to connect. This should implement the
setText
andtext
methods as well optionally theeditingFinished
signal.- value_rangeiterable, optional
A pair of two values representing the true range of values (since Qt widgets such as sliders can only have values in certain ranges).
- logbool, optional
Whether the Qt widget value should be mapped to the log of the callback property.
Methods Summary
connect
(self)disconnect
(self)update_prop
(self)update_widget
(self, value)Methods Documentation
-
connect
(self)¶
-
disconnect
(self)¶
-
update_prop
(self)¶
-
update_widget
(self, value)¶