[Urwid] urwid + circuits = irc client
Nicolas Sebrecht
nicolas.s-dev at laposte.net
Tue Dec 30 00:16:04 EST 2008
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
More information about the Urwid
mailing list