def end_practise(self): if self.m_timeout_handle: GObject.source_remove(self.m_timeout_handle) self.m_timeout_handle = None self.q_status = self.QSTATUS_NO soundcard.synth.stop()