It's called on line 161 for the auto record push button:
self.connect(self.mainWidget.autoRecordPushButton, QtCore.SIGNAL('toggled(bool)'), self.auto_record)