summaryrefslogtreecommitdiff
path: root/geneticone
diff options
context:
space:
mode:
Diffstat (limited to 'geneticone')
-rw-r--r--geneticone/gui/main.py6
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):
25/+293 2006-10-08Made the testing stuff working too ... I hope ^^ ... removed obsolete-dirnecoro7-145/+113 2006-10-05Added first support for the masking stuff ... and hoping that it is going to ...necoro5-79/+135 2006-10-05Changed changelog / added config-filenecoro2-0/+10 2006-10-05Added preference windownecoro4-49/+155 2006-10-02Corrected comments, structure, bad algorithms etcnecoro4-176/+209 2006-10-02Corrected indention in commentnecoro1-8/+6 2006-10-010.3.3necoro1-0/+6 2006-10-01Implemented an internal db; removed unmerge-bugnecoro2-26/+43 2006-09-30Implemented some new backend functions which speed up the package-list-creati...necoro2-12/+37 2006-09-300.3.2 release; changed font in terminal; added new "masking"-dialognecoro3-11/+36 2006-09-29fixed bugsnecoro4-13/+23 2006-09-29Corrected setup.pynecoro1-1/+1