Hi, I have a small problem:
I use (dummy, fc, dummy) = os.popen3("xterm") [substitute whatever program here] Then I have a button which has an indicator if xterm is open (started) or not. To update this indicator, when doing the popen3, I set it to "started". Then I use input_add to add fc and give a callback. (gtk.gdk.INPUT_READ | gtk.gdk.INPUT_EXCEPTION) In the callback I thought I could check against gtk.gdk.INPUT_EXCEPTION and if it happens reset the indicator. As usual, program runs gtk.main() loop, I click on the button, and expect it to enter the callback for the input fairly soon (since there are loads of messages for almost every program since I updated to gtk 2.3, ok maybe xterm is an exception ;)) It does not enter the callback until the app exits. Then it enters with "INPUT_READ" as condition O_o erm... No INPUT_EXCEPTION happens, and no callbacks happen *instantly* (I don't need instant callbacks in this case but still... weird) Also, some (really few) programs make the python script hang when they are exited again. hmm?! There are soo many popen variants, no idea if I picked one with weird semantics on gone pipes. Of course if anyone has another not-too-hacky idea to keep track of number of processes launched (and not exited again) by the python script, I appreciate any pointers :) (what I'm creating is a small launch panel btw :)) Thanks ... cheers, Danny -- www.keyserver.net Key ID A334AEA6
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/