def on_up_timeout(self, *v): if self.m_value < 127: self.up() self.m_timeout = GObject.timeout_add(DELAY2, self.on_up_timeout)