Hi,
So you want the sigTreeStateChanged signal to only be fired once when
calling the checkAllBools/unCheckAllBools methods? In that case, you could
do something like
def checkAllBools(self):
p.blockSignals(True)
for plt in self.pSelectBoolItems.groupItems1:
plt.setValue(True)
for plt in self.pSelectBoolItems.groupItems2:
plt.setValue(True)
for plt in self.pSelectBoolItems.groupItems3:
plt.setValue(True)
p.blockSignals(False)
changes()
Basically, suppress the triggering of the signals during the method, then
call changes() manually.
Patrick
On Monday, 20 May 2019 23:34:32 UTC+9:30, b. bb wrote:
>
> Hi,
> I'm writing a program to calculate and display a large number of curves.
> These are structured in several groups of the same type. Now I like to
> select each curve separately or pressing one button for showing all
> respectively another button to hide all curves. How can it be done that the
> function 'changes()' is called only once?
>
> Thanks,
> Ben
>
--
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/d81b4af7-11a3-4219-b9ad-1389cb981e9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.