AttributeError: 'NoneType' object has no attribute 'get_text'

Raji Seetharaman sraji.me at gmail.com
Tue Sep 1 17:22:23 CEST 2009


Hi all, i worked out python and glade example program to add two numbers and
display its output from the following link
http://www.dreamincode.net/forums/showtopic63885.htm
When i run the script, i received the following error

python add.py
Traceback (most recent call last):
  File "add.py", line 34, in add
    thistime = adder( self.wTree.get_widget("entryNumber1").get_text(),
self.wTree.get_widget("entryNumber2").get_text())
AttributeError: 'NoneType' object has no attribute 'get_text'

What has to be done to overcome this error?

Regards

Raji. S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090901/d7de4d37/attachment.html>


More information about the Python-list mailing list