connect_float_text¶
-
class
glue.external.echo.qt.connect_float_text(instance, prop, widget, fmt='{:g}')¶ Bases:
glue.external.echo.qt.BaseConnectionConnect a numerical callback property with a Qt widget containing text.
- 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
setTextandtextmethods as well optionally theeditingFinishedsignal.- fmtstr or func
This should be either a format string (in the
{}notation), or a function that takes a number and returns a string.
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)¶