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

MRAB python at
Tue Sep 1 18:28:09 CEST 2009

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
> When i run the script, i received the following error
> python
> Traceback (most recent call last):
>   File "", 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

More information about the Python-list mailing list