connect - sigValueChanged not working parameter in parameter tree

40 views
Skip to first unread message

JMA 1

unread,
May 7, 2020, 9:36:24 PM5/7/20
to pyqtgraph
Greetings,
I'm finding the bool checkbox items in the ParameterTree / Parameter not working on the connect sigValueChanging (.sigValueChanging.Connect() ).  Please see the example attached.  In this crude example, I override the default values in the group.  To trigger the value changed, press the right hand side "un-do" control.  This triggers on the float and string, but not the bool checkbox.  The output is listed below, including the connect added to each child.  Typing into the float and string fields trigger the signal.   Manually checking/unchecking the bool value does not signal.

Any suggestions?  Thank you.

Output:
grp par_value
grp/chld: par_value / path
added path connect
grp/chld: par_value / date_time_append
added time connect
grp/chld: par_value / time
added time connect
path adjust string reached
time adjust float reached

Cheers,
J- 

test_pt_connect.py

JMA 1

unread,
May 7, 2020, 9:47:47 PM5/7/20
to pyqtgraph
Sorry - small typographical error in the code
replace -> date_append was date_time_append; two places in the PT class

This causes a match with 'time' twice, on two different children.  

The Parameter / ParameterTree behavior is still incorrect and the 'connect' does not trigger on the checkbox / bool.


Cheers,
J - 

JMA 1

unread,
May 11, 2020, 3:26:07 PM5/11/20
to pyqtgraph
Greetings,

I would consider this a potential bug.  If you look carefully at the documentation the 'sigValueChanged' works on bool checkboxes, but not the 'sigValueChanging'.  The description of the method would seem to indicate it should emit a value -> Emitted immediately for all value changes, including during editing.

Regards,
J - 
Reply all
Reply to author
Forward
0 new messages