Hi Patrick, Thank you! That was the right hint.
Ben Am Dienstag, 21. Mai 2019 08:19:02 UTC+2 schrieb Patrick: > > 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/d9da7b0b-b136-45b0-b733-e05e340448ba%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
