def connect_any_signal_changed(self, function):
<EOL>for i in range(self._widget.topLevelItemCount()):<EOL><INDENT>try:<EOL><INDENT>self._widget.topLevelItem(i).param.sigTreeStateChanged.connect(<EOL>function, type=_g.QtCore.Qt.UniqueConnection)<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return self<EOL>
Connects the "anything changed" signal for all of the tree to the
specified function.

Parameters
----------
function
    Function to connect to this signal.