From 8a20ab4b0edd4d0851bac1524fa36ed637497210 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 12 Jul 1999 21:39:02 +0000 Subject: use lowlevel mutexes - Event seems buggy --- gui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gui.py') diff --git a/gui.py b/gui.py index c6302eb76..5ebc8fda1 100755 --- a/gui.py +++ b/gui.py @@ -318,7 +318,7 @@ class InstallControlWindow: def setScreen (self, screen): if screen == len (self.stateList) : self.window.destroy () - self.mutex.set () + self.mutex.release () return elif screen == len (self.stateList) - 1 : self.buttonBox.foreach (lambda x, b=self.buttonBox: b.remove (x)) @@ -413,15 +413,15 @@ class InstallControlWindow: threads_leave () def run (self): - self.mutex = Event () + self.mutex = allocate_lock () + self.mutex.acquire () # Popup the ICW and wait for it to wake us back up threads_enter () self.window.show_all () threads_leave () - self.mutex.wait () - + self.mutex.acquire () class InstallControlState: -- cgit