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 attribute 'remove'
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 self._watch_pipes[write_fd]. Ian _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
