code: def connect_any_signal_changed(self, function):
          
          
          # loop over all top level parameters
          for i in range(self._widget.topLevelItemCount()):
  
              # make sure there is only one connection!
              try:
                  self._widget.topLevelItem(i).param.sigTreeStateChanged.connect(
                                    function, type=_g.QtCore.Qt.UniqueConnection)
              except:
                  pass
              
          return self
docs: Connects the "anything changed" signal for all of the tree to the
          specified function.
          
          Parameters
          ----------
          function
              Function to connect to this signal.