[Urwid] Bug: Signal module create backreferences

Ian Ward ian at excess.org
Sat Mar 6 14:50:22 EST 2010


Dominic LoBue wrote:
> Ian,
> 
> I have a working implementation. By no means is it elegant, but it works.
> 
> Basically instead of holding onto the specific method that is to be
> called when a signal is recieved, we instead hold onto a tuple of
> (ref(parentwithmethod), 'methodname'). When the signal is activated,
> we use getattr to get an instance of the method we want and then run
> that method.
> 
> Working examples can be found here:
> http://gist.github.com/322577
> http://gist.github.com/322576

That's great, sounds like you're close to a good solution,

Why don't you fork urwid on github so I can see the changes a little 
more easily?

Ian





More information about the Urwid mailing list