[Urwid] urwid and twisted reactor
markus espenhain
me at cubeball.net
Wed Jul 5 10:55:05 EDT 2006
Ilpo Nyyssönen wrote:
> Ian Ward <ian at excess.org> writes:
>
>> The only conflict between Urwid and twisted right now is that the
>> get_input() function relies on being able to read input itself and
>> delay for more input when it receives a partial escape sequence from
>> the user.
>
> I am using urwid with twisted and I haven't run into problems with
> that yet, but yes, that sounds like an issue.
>
> I basically run it like this:
>
> tui = urwid_display.Screen()
> screen = Screen(tui)
> reactor.addReader(screen)
> tui.run_wrapper(reactor.run)
>
> Here Screen is a fake fd registered as a reader to read the standard
> input.
>
> Later initialization can be done by using
> reactor.callWhenRunning(...).
hello
thanks for the reply - can you provide some code of your Screen class -
i found the twisted curses example but i'm still confused about the fake
fd for urwid
thanks a lot
markus
More information about the Urwid
mailing list