__dict__ for instances?

Ivan Voras ivoras at __fer.hr__
Sun May 13 18:49:13 EDT 2007


Bruno Desthuilliers wrote:

>> "WARNING: "on_button_clicked" not callable or a tuple"
> 
> Please post the relevant code and the full traceback.

The code:

Class W:
 def __init__(self):
     self.xml = gtk.glade.XML("glade/mainwin.glade")
     self.window = self.xml.get_widget("mainwin")
     self.xml.signal_autoconnect(self)

w = W()
gtk.main()

The error (not an exception, only the message appears and the handler
doesn't work):

** (finstall.py:7551): WARNING **: handler for 'on_button_next_clicked'
not callable or a tuple

(the file has some 20 lines, not 7551)


-- 
(\__/)
(O.o)
(> < )

This is Bunny.
Copy Bunny into your signature to help him on his way to world domination!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20070514/7434dd21/attachment.sig>


More information about the Python-list mailing list