[Glade-users] AttributeError: 'NoneType' object has no attribute 'get_text'

anusha kadambala anusha.kadambala at gmail.com
Thu Sep 10 14:33:09 EDT 2009


hi raji,
 I think the error must be in glade but you havent attached that.Accordingly
to my guess, the error must in the "name" of text entry widget in glade
file.Please check that.

I learnt the glade from following link
http://www.learningpython.com/2006/05/30/building-an-application-with-pygtk-and-glade/
here you got a series of tutorials on this.


On Thu, Sep 10, 2009 at 8:03 PM, Raji Seetharaman <sraji.me at gmail.com>wrote:

> Hi all,
> Im a newbie to glade.i developed a small gui addressbook application using
> pygtk,python,mysql db. It was successful.
> I tried the same application with glade. But i ended up with errors. I
> couldn't able to find where my mistake is.
> I desgined the code as follows.
> 1.It has one main window and four child dialogs.
> 2.In the main window, i have to fill in the text entry widget & if i press
> 'add', the data will get inserted into the database.This works fine.
>    If i need to see whether  the record is inserted or not, i have to click
> 'view' button. As per my code the view dialog is blank.
> 3. If showdialog button is clicked, a child dialog appears, where i have to
> enter old entry to update.
> 4. To update, i again use the main window, where i get the following error
>                   Traceback (most recent call last):
>   File "addressbookglade.py", line 63, in update
>     self.ssn = self.wTree.get_widget("ssn").get_text()
>     AttributeError: 'NoneType' object has no attribute 'get_text'
> I dont know how to resolve this.
> The code is available here http://pastebin.com/m28a4747e
> What changes i have to make inside update method  and view method?
>
> Can anyone suggest a good tutorial for glade?
>
> Regards
> Raji.S
>
>
>
>
>
>
> _______________________________________________
> Glade-users maillist  -  Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
>
>


-- 


Njoy the share of Freedom :)
Anusha Kadambala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20090911/74c65504/attachment-0001.html 


More information about the Glade-users mailing list