Exemplo n.º 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
Exemplo n.º 2
0
	def destroy(self):
		events.disconnect(events.FILTER_INFO, self.listener)
#		gobject.source_remove(self.timer)
		self.timer = 0
		gtk.Dialog.destroy(self)
Exemplo n.º 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
Exemplo n.º 4
0
 def destroy(self):
     events.disconnect(events.FILTER_INFO, self.listener)
     # 		gobject.source_remove(self.timer)
     self.timer = 0
     gtk.Dialog.destroy(self)
Exemplo n.º 5
0
 def destroy(self):
     self.dlg.Destroy()
     events.disconnect(events.FILTER_INFO, self._listener)
Exemplo n.º 6
0
	def destroy(self):
		self.dlg.Destroy()
		events.disconnect(events.FILTER_INFO, self._listener)