[Urwid] urwid and twisted reactor

Ian Ward ian at excess.org
Wed Jun 28 09:50:11 EDT 2006


Michael Cuddy wrote:
> I'm not using twisted, but I am using multiple threads in my app.
> 
> I run the CUI Input and output each in separate thread and use a queue
> for the Input to talk to the Output thread.  That way, other threads
> can request a repaint, etc.
> 
...
> The nice thing is that I can have other threads updating status
> of various widgets and then just ask the CUI output thread to re-render
> by sending a 'REPAINT' message.
> 
> I really like how urwid provides mechanism and doesn't enforce policy, 
> though I long for a improved docs :-)
> 

Writing a user's manual is on my list of things to do.

If you have time to send a "real" threaded Urwid example program I would 
be happy to post it on the web site.

Ian




More information about the Urwid mailing list