Beispiel #1
0
	def do_send(self, msg):
		self.__readycond.acquire()
		if self.__ready is False:
			logging.debug("waiting for webkit readyness")
			self.__readycond.wait()
		self.__readycond.release()
		logging.debug("sending webkit message: %s" % (msg,))
		def doit():
			self.web.execute_script(msg)
			logging.debug("message SENT! (%s)" % (msg,))
		#asynchronous_gtk_message(lambda: self.web.execute_script(msg))
		asynchronous_gtk_message(doit)
Beispiel #2
0
	def set_quit(cls, *a, **kw):
		gtk_helpers.asynchronous_gtk_message(gtk.main_quit)
		cls.quit = True