From 96bb19e776bf1c4663752ba9d8194000cd2e777e Mon Sep 17 00:00:00 2001 From: necoro <> Date: Sun, 17 Sep 2006 17:37:03 +0000 Subject: Removed our own threading-module ... --- geneticone/gui/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/geneticone/gui/main.py b/geneticone/gui/main.py index dc980b6..9329ac0 100644 --- a/geneticone/gui/main.py +++ b/geneticone/gui/main.py @@ -81,7 +81,7 @@ class EmergeQueue: (master, slave) = pty.openpty() self.console.set_pty(master) process = Popen(["/usr/bin/python","/usr/bin/emerge"]+options+packages, stdout = slave, stderr = STDOUT, shell = False) - Thread(target=self.update_packages, args=(process, packages).start() + Thread(target=self.update_packages, args=(process, packages)).start() self.remove_all(it) def emerge (self, force = False): @@ -619,7 +619,9 @@ class MainWindow: def main (self): """Main.""" - gobject.threads_init() + gobject.threads_init() + # now subthreads can run normally, but are not allowed to touch the GUI. If threads should change sth there - use gobject.idle_add(). + # for more informations on threading and gtk: http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq20.006.htp gtk.main() def blocked_dialog (blocked, blocks): -- cgit v1.2.3-54-g00ecf