Hi all,
I am using pyqtgraph and I really like it. I have a small problem: I have a parameter tree that needs to be modified depending on user's selection of a combo box
I have this:
par={ {'name': 'db type', 'type':'list','values': ['server','serverless']},{'name': 'CHAN', 'type':'list','values': ['--']}
p = Parameter.create(name='params', type='group', children=par)
if the users select 'server' or 'serverless':
I would like something like this:
if p.child('db type').value()=='server':
p.child('CHAN').values=['1','2',''3]
else:
p.child('CHAN').values=['A','B',''C]
so now the user would see the combo box 'CHAN' with options 1,2,3 or A,B,C. but I cannot find a way to modify the list elements.
I am sure I am missing something but I am stuck with this problem.
Any feedback is appreciated
Omar