def connect_any_signal_changed(self, function):
        """
        Connects the "anything changed" signal for all of the tree to the
        specified function.
        
        Parameters
        ----------
        function
            Function to connect to this signal.
        """
        
        # 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
Connects the "anything changed" signal for all of the tree to the
        specified function.
        
        Parameters
        ----------
        function
            Function to connect to this signal.