connect_float_text

class glue.external.echo.qt.connect_float_text(instance, prop, widget, fmt='{:g}')

Bases: glue.external.echo.qt.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 and text methods as well optionally the editingFinished 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 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)