Hi,
excuse me, I am using google groups for the first time. Somehow the 
screenshots get lost, if I copy/paste them directly in the post. 
Hopefully, it works now.
First screenshot: One model added at init and the others added dynamically 
via the context menu
Second screenshot: Two models added at init and the others added 
dynamically via the context menu 
Third screenshot: Workaround with resetting the parameters to the parameter 
tree within the context menu slot
[image: Screenshot 2020-11-01 212744.png][image: Screenshot 2020-11-01 
212821.png][image: Screenshot 2020-11-01 212757.png]
Daniel schrieb am Sonntag, 1. November 2020 um 21:24:37 UTC+1:

>
> Hi,
> I am using the parameter tree to dynamically add entire parameter groups 
> with the context menu. This works just fine, but the level 0 parameter 
> group should all be dark grey with enhanced size. This seems not to work so 
> far. The initial one is dark grey with enhanced size, but the added ones in 
> the same level are light grey and smaller as you can see in the screenshot 
> below. 
>
> If I add more models during init, it works just fine, but adding them 
> afterwards results in the same issue.
> A workaround for now is to reset the parameters to the parameter tree in 
> the slot of the context menu as follows:
> self.paramTree.setParameters(self.p, showTop=False)
> I think this is not intended to be the conventional approach, because if I 
> do this the entire tree expands each time I add a new model, which is quite 
> enoying. 
>
> Is this really a bug or do I need a different workaround for this?
>

-- 
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/360af9e7-f576-4e62-9a59-d9d0f95efa46n%40googlegroups.com.

Reply via email to