-
Notifications
You must be signed in to change notification settings - Fork 46
TaurusValueSpinBox arrows do not work #707
Comments
Confirmed. from taurus.qt.qtgui.application import TaurusApplication
from taurus.qt.qtgui.input import TaurusValueSpinBox
import sys
app = TaurusApplication()
w = TaurusValueSpinBox()
model = 'sys/tg_test/1/double_scalar'
w.setModel(model)
a = w.text()
w.stepUp()
b = w.text()
assert (a != b)
print "all ok" |
... and using it with
|
I think I located the problem.
I think that the solution should be based on:
|
Yesterday, I arrived to the same conclusion. But I did not find a good solution: This can be one, replacing
|
Hi @cmft . The solution that you propose could "work" but as it is it looks a bit fragile to me.
|
The step up/down feature of TaurusValueLineEdit (e.g. using the up/down keys or the arrows of a TaurusValueSpinBox) was broken when merging #669 which implemented fragments support in TaurusValueLineEdit for allowing the display of the wvalue without units Now we see that supporting fragments generically in TaurusValueLineEdit is problematic (e.g. it makes little sense to use "rvalue" as a fragment since "wvalue" will be modified when eventually applying). Therefore for now limit the fragment support in line edits to the "wvalue.magnitude" case. Also fix a hook error introduced in some previous merge.
Closed via 72ecf52 |
There is a regression in TaurusValueSpinBox. Press the arrows does not change the value. It works in 4.1.1
The text was updated successfully, but these errors were encountered: