def set_listener(self, start=True): if start: events.connect(events.MESSAGES, self.listener) self.connected = True else: events.disconnect(events.MESSAGES, self.listener) self.connected = False
def destroy(self): events.disconnect(events.FILTER_INFO, self.listener) # gobject.source_remove(self.timer) self.timer = 0 gtk.Dialog.destroy(self)
def run(self, callback, args): events.connect(events.FILTER_INFO, self.listener) result = wal.CustomProgressDialog.run(self, callback, args) events.disconnect(events.FILTER_INFO, self.listener) return result
def destroy(self): self.dlg.Destroy() events.disconnect(events.FILTER_INFO, self._listener)