[Urwid] Twisted version of generic_main_loop
ian at excess.org
Wed Aug 27 11:24:47 EDT 2008
Walter Mundt wrote:
> I just hacked this up last night so no guarantees that it's
> perfect...but here's a twisted_main_loop that's very similar in nature
> and functionality to the generic_main_loop in the current urwid checkout
> -- except that everything run from inside of it happens in the context
> of a Twisted reactor.
> It places a blocking input loop in a separate thread, but arranges for
> the actual input processing to happen inside the main reactor thread so
> that this shouldn't cause any real issues.
It's a good start. I was hoping this could be done with
get_input_descriptors and get_input_nonblocking instead of using
More information about the Urwid