Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

MRAB

unread,
Sep 1, 2009, 12:28:09 PM9/1/09
to pytho...@python.org
Raji Seetharaman wrote:
> 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?
>
I think you need to name the text entry fields "entryNumber1" and
"entryNumber2".
0 new messages