Пример #1
0
	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
Пример #2
0
	def destroy(self):
		events.disconnect(events.FILTER_INFO, self.listener)
#		gobject.source_remove(self.timer)
		self.timer = 0
		gtk.Dialog.destroy(self)
Пример #3
0
 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
Пример #4
0
 def destroy(self):
     events.disconnect(events.FILTER_INFO, self.listener)
     # 		gobject.source_remove(self.timer)
     self.timer = 0
     gtk.Dialog.destroy(self)
Пример #5
0
 def destroy(self):
     self.dlg.Destroy()
     events.disconnect(events.FILTER_INFO, self._listener)
Пример #6
0
	def destroy(self):
		self.dlg.Destroy()
		events.disconnect(events.FILTER_INFO, self._listener)