[pygtk] print dialog and threading
abel deuring
adeuring at gmx.net
Wed Jun 28 08:26:22 WST 2006
Hi all,
I am fighting with a strange conflict between threading and the
print dialog from gnomeprint.ui. The following script is stuck
somewhere in the second constructor call:
import gtk, gnomeprint, gnomeprint.ui
gtk.threads_init()
job = gnomeprint.Job(gnomeprint.config_default())
dlg = gnomeprint.ui.Dialog(job, "Printer Setup", 0)
dlg.run()
dlg = gnomeprint.ui.Dialog(job, "Printer Setup", 0)
dlg.run()
Running the script from strace, I can see that the script is stuck
waiting for a lock or mutex or so. The last lines from strace are:
access("/bin/gnome-cups-add", X_OK) = -1 ENOENT (No such file or
directory)
access("/usr/games/gnome-cups-add", X_OK) = -1 ENOENT (No such file
or directory)
access("/opt/gnome/bin/gnome-cups-add", X_OK) = -1 ENOENT (No such
file or directory)
access("/opt/kde3/bin/gnome-cups-add", X_OK) = -1 ENOENT (No such
file or directory)
futex(0x815b0d8, FUTEX_WAIT, 2, NULL) = -1 EINTR (Interrupted
system call)
--- SIGTERM (Terminated) @ 0 (0) ---
+++ killed by SIGTERM +++
I am seeing this on a Suse 9.3 installation, which unfortunately
does not have a very recent GTK version: 2.6.4; the PyGTK version is
2.5.3; I'm using gnome-python-extras-2.9.4 .
Any ideas or suggestions?
Abel
More information about the pygtk
mailing list