[Urwid] MainLoop.remove_watch_pipe doesn't work?

Ian Ward ian at excess.org
Thu Mar 8 09:38:55 EST 2012

Andrew Wu <andrewwu.tw <at> gmail.com> writes:
> Hello,I tried to call MainLoop.remove_watch_pipe, but it doesn't
work:####import urwidtxt = urwid.Text(u"Hello World")fill = urwid.Filler(txt,
'top')loop = urwid.MainLoop(fill)def callback(data):    passfd =
loop.watch_pipe(callback)loop.remove_watch_pipe(fd)loop.run()####I got error
message:Traceback (most recent call last):  File "t.py", line 11, in <module>
>     loop.remove_watch_pipe(fd)  File "/home/Andrew Wu/urwid/main_loop.py", line
205, in remove_watch_pipe    watch_handle, pipe_rd =
self._watch_pipes.remove(write_fd)AttributeError: 'dict' object has no

Hmm.  I must have spam filter issues because I didn't see this email.

Thanks for the bug report, that looks like it should have been a del


More information about the Urwid mailing list