[Urwid] urwid + circuits = irc client

James Mills prologic at shortcircuit.net.au
Tue Dec 30 00:20:58 EST 2008


Nicolas,

(Sorry for the top posting).

Thanks for testing  :) Maybe Ian can shed some
light ... It's been ages since I've really sat down
with urwid!

I'd really like to get this simple little example
going though :) I've seen irc and irc clients
written a lot in Python whether they be bots
or clients - and twisted really just don't cut it! :P

circuits is so much simpler :)

cheers
James

--
-- "Problems are solved by method"

On Tue, Dec 30, 2008 at 3:16 PM, Nicolas Sebrecht
<nicolas.s-dev at laposte.net> wrote:
>
> On Tue, Dec 30, 2008 at 11:02:11AM +1000, James Mills wrote:
>
>> $ hg clone http://hg.softcircuit.com.au/projects/circuits/
>> $ cd circuits
>> $ python setup.py develop
>> $ python setup.py develop
>
> I did :
>
> % cd /home/nicolas/urwid
> % hg clone http://hg.softcircuit.com.au/projects/circuits/
> % cd circuits
> % mkdir bin
> % PYTHONPATH=/home/nicolas/urwid/circuits/bin:$PYTHONPATH
> % python setup.py develop --install-dir ./bin
> % python setup.py develop --install-dir ./bin
> % cd /home/nicolas/urwid
> % cp /tmp/circ.py .
>
> And I run :
>
> % python circ.py
>
> Then, I have the main window asking for a command at prompt "None> ".
>
> Typing something begining with a slash '/' does nothing, including
> '/help'.
> Everything else gives this error :
> % python circ.py
>
> ERROR: 'PollingListWalker' object has no attribute 'append'
> Traceback (most recent call last):
>  File "circ.py", line 260, in main
>    mainWindow.poll()
>  File "circ.py", line 133, in poll
>    self.processCommand(self.input.get_edit_text())
>  File "circ.py", line 204, in processCommand
>    self.lines.append(urwid.Text(
> AttributeError: 'PollingListWalker' object has no
> attribute 'append'
>
> %
>
> It may be related to my urwid's version as the 0.9.8.3 isn't in portage
> yet (Gentoo) :
> % eix --installed urwid
> * dev-python/urwid
>     Available versions:  ~0.9.7.1 (~)0.9.8.1 {examples}
>     Installed versions:  Version: 0.9.8.1
>                          Date:    16:53:31 30.09.2008
>                          USE:     examples
>     Best versions/slot:  (~)0.9.8.1
>     Homepage:            http://excess.org/urwid/
>     Description:         Urwid is a curses-based user interface library
> for Python.
>     License:             LGPL-2.1
> %
>
> I haven't read your code nor tried the good urwid version at that time.
>
> % python --version
> Python 2.5.2
> %
>
> --
> colas Sebrecht
>
>
>
> _______________________________________________
> Urwid mailing list
> Urwid at lists.excess.org
> http://lists.excess.org/mailman/listinfo/urwid
>
>




More information about the Urwid mailing list