Get parameter's item in a nicer way
This commit is contained in:
parent
4618c705e2
commit
b164e54e15
@ -157,7 +157,7 @@ def test_data_race():
|
|||||||
|
|
||||||
p.sigValueChanged.connect(override)
|
p.sigValueChanged.connect(override)
|
||||||
t.setParameters(p)
|
t.setParameters(p)
|
||||||
pi, = t.listAllItems()
|
pi = next(iter(p.items))
|
||||||
assert pi.param is p
|
assert pi.param is p
|
||||||
pi.widget.setValue(2)
|
pi.widget.setValue(2)
|
||||||
assert p.value() == pi.widget.value() == 1
|
assert p.value() == pi.widget.value() == 1
|
||||||
|
Loading…
Reference in New Issue
Block a user