I have a problem trying to install a new signal handler.
I try this program:
#!/usr/bin/env python
from signal import *
from gtk import *
def signal_handler(sig, frame):
print "Received signal %s" % (sig)
signal(10, signal_handler)
win = GtkWindow()
win.set_usize(100,100)
win.show()
win.connect("destroy", mainquit)
mainloop()
but if I write:
$ kill -s 10 <pid>
the program answer only after the mainquit.
If I don't import gtk and I write a simple console application it works. And
the same program translate in C works.
Someone can help me?
Thanks.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk