From c0490929acd26bc6b0e4ad4f9d475728ffbaeec9 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 7 Jan 2010 09:36:07 +0100 Subject: [PATCH] [sulfur] fix askQuestion and inputBox --- sulfur/src/sulfur/entropyapi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sulfur/src/sulfur/entropyapi.py b/sulfur/src/sulfur/entropyapi.py index 823140d4e..134cd48b4 100644 --- a/sulfur/src/sulfur/entropyapi.py +++ b/sulfur/src/sulfur/entropyapi.py @@ -383,6 +383,8 @@ class Equo(EquoInterface): gobject.idle_add(do_ask) while th_id not in self._mthread_rc['askQuestion']: + while gtk.events_pending(): # otherwise it won't work + gtk.main_iteration() time.sleep(0.4) return self._mthread_rc['askQuestion'].pop(th_id) @@ -404,6 +406,8 @@ class Equo(EquoInterface): gobject.idle_add(do_ask) while th_id not in self._mthread_rc['inputBox']: + while gtk.events_pending(): # otherwise it won't work + gtk.main_iteration() time.sleep(0.4) return self._mthread_rc['inputBox'].pop(th_id)