connect_float_text¶
- class echo.qt.connect_float_text(instance, prop, widget, fmt='{:g}')[source]¶
Bases:
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
connect
disconnect
update_prop
update_widget
Methods Summary
connect()update_widget(value)Methods Documentation