Hi.

Thanks for your answer ... yes threads are evil :D
Funny thing that you recommend the change of our framework because we just
changed to urwid because the curses-module is not capable of utf-8. However
we would have to rewrite our protocoll completly. And in fact it's working
know with some small dirty hacks and the curses_display (may theres just a
problem with raw_display and this has_key-thing? dunno).

greetings
Christian


2008/12/28 James Mills <[email protected]>

> On Sat, Dec 27, 2008 at 7:58 PM, Christian Scharkus
> <[email protected]> wrote:
> > Hi everybody.
>
> Hi :)
>
> > I'm currently writing a small chatclient based upon twisted in a mvc
> pattern
> > and decided (because of the python-curses module not supporting clean
> utf-8
> > output) to write the userinterface with urwid. I've found a little
> example
> > for a irc-client in urwid using the same method to join with twisted I
> used
> > with curses (register with the reactor using the addReader-method) and
> began
> > to implement input at first. In my humble opinion the code should work
> but
> > it isn't. I discovered the twisted main loop in urwid too but have no
> idea
> > how to make use of it.
> >
> > Here the code and the exception
> > http://codepad.org/0Hlvmp1b
>
> I really strongly recommend that you not use
> Twisted for your application, but rather use
> circuits (1) instead. Why ? It's simpler, easier
> to develop with and far more flexible.
>
> Please check it out, I'm sure if you should be
> sufficiently experienced enough to port your
> urwid application to use circuits vs. twisted.
>
> I might just write up a simple irc client when
> I get home from work today to demonstrate
> how simple it is.
>
> cheers
> James
>
> PS: Threads are evil :)
>
>
> _______________________________________________
> Urwid mailing list
> [email protected]
> http://lists.excess.org/mailman/listinfo/urwid
>
>
_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to