Two tools you can use here:
# indexing by parameter name to get values
child_value = parameter[child_name]
sub_child_value = parameter[child_name, sub_child_name]
# using parameter.child() and .value():
child = parameter.child(child_name)
child_value = child.value()
On Sat, Dec 23, 2017 at 8:37 AM, Sebastian Pfaff <[email protected]>
wrote:
> Hi!
>
> First of all, thank you for this incredibly awesome piece of software.
> I've been messing around with it for a few days now, and it does basically
> everything I need. I do have one question however.
> I intend to use a ParameterTree as the main way to store the "properties"
> of my data. In my case, the data comes from a file with a sequence of
> frames, and so it seems quite natural to use the PT to store and specify
> things such as how many frames to average etc. This naturally requires
> other function to access certain values in the PT. However, in your
> example, you only show an easy way to access values as they are changed,
> but accessing existing values which might be far down in the tree seems
> messy. The only way I can think of would be to somehow iterate through all
> children, check their names for the right name and if it matches, output
> the value. It seems like there must be an easier way?
>
> Oh and merry Christmas if you are into celebrating that ;)
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyqtgraph" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/pyqtgraph/e670f0fc-7f8c-43c2-b946-dbc87f5e2204%40googlegroups.com
> <https://groups.google.com/d/msgid/pyqtgraph/e670f0fc-7f8c-43c2-b946-dbc87f5e2204%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/CACZXET_95ZbXkTK%2BBHU1-sH8nF4Go5ZfgAToz3JaChFr%2Bvx7tA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.