diff options
author | necoro <> | 2006-09-17 17:37:03 +0000 |
---|---|---|
committer | necoro <> | 2006-09-17 17:37:03 +0000 |
commit | 96bb19e776bf1c4663752ba9d8194000cd2e777e (patch) | |
tree | 3b83626951c86e3597bcde9820d826b80d0954ea /geneticone/gui/main.py | |
parent | e50443b874cdea9bcfdecd38e327dc4b2694ed02 (diff) | |
download | portato-96bb19e776bf1c4663752ba9d8194000cd2e777e.tar.gz portato-96bb19e776bf1c4663752ba9d8194000cd2e777e.tar.bz2 portato-96bb19e776bf1c4663752ba9d8194000cd2e777e.zip |
Removed our own threading-module ...
Diffstat (limited to 'geneticone/gui/main.py')
-rw-r--r-- | geneticone/gui/main.py | 6 |
1 files 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): |