http://bugzilla.gnome.org/show_bug.cgi?id=92955
John
John Hunter wrote:
Yesterday I wrote about an approach I am taking to implement classes which define glade handlers which have a self variable in the thread
http://www.daa.com.au/pipermail/pygtk/2003-February/004576.html
so I could do something like:
class Handler(PrefixWrapper): def __init__(self, x): PrefixWrapper.__init__(self) self.x = x def on_buttonOK_clicked(self, event): do_something_with(self.x):
where PrefixWrapper does all the dirty work of connecting and disconnecting the signals and handlers.
This is mostly working. But occasionally my instance appears to be cast up, or something like that, because it loses all the attributes that I gave it at __init__ (eg self.x). I cannot figure out what exactly is causing this to happen.
Has anyone seen something like this before.
Thanks, John Hunter
pygtk 1.99.14
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
