Aaron Optimizer Digulla <[EMAIL PROTECTED]> writes:

> The only solution I see is to add a timer:
> 
>     def wakeup:
>       pass
> 
>     timeout_add (100, wakeup)

I know of this solution and I will not use it, because it disallows my
program from ever being swapped out -- it continually consumes CPU
instead of simply waiting in poll() when nothing happens.  This is
(for me) inexcusable.

> > > (does it have anything to do with the threading code?).
> > I don't think so, no.
> 
> Yes, that's the same. Threading doesn't work with the current
> implementation of Gtk because all Python threads are dead as long as
> Gtk waits in its mainloop for events (no Python code is executed ->
> Python can't switch the threads).

This is brain-dead on the part of Python, but that's another matter.
:-(
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to