connect_float_text¶
- class echo.qt.connect_float_text(instance, prop, widget, fmt='{:g}')[source]¶
Bases:
BaseConnection
Connect 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
setText
andtext
methods as well optionally theeditingFinished
signal.- 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
connect
disconnect
update_prop
update_widget
Methods Summary
connect
()update_widget
(value)Methods Documentation