James Henstridge <[EMAIL PROTECTED]> writes:

> I suppose you could use an idle function.  It would get called for
> each iteration of the main loop, and should allow the signal handler
> to be called.

I tried that now, but idle functions suck for that purpose.  They are
called all the time when my program is doing nothing, consuming the
CPU.  I guess that in a sense "idle" functions are exactly the
opposite of what I'm trying to achieve -- I'd like a no-op Python code 
to be run when something *happens*, in case a signal happened.

Perhaps I should try to play with idle priorities?

> Basically mainloop() runs this:
>   while quit_flag != TRUE:
>       mainiteration()
>   call_quit_handlers()

Are quit_flag and call_quit_handlers() exported to Python?  Should
they be?
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to