def set_pause(self): if self._timer is not None: GObject.source_remove(self._timer) self._timer = None