[Glade-users] AttributeError: 'NoneType' object has no attribute 'get_text'
- From: sraji.me at gmail.com (Raji Seetharaman)
- Subject: [Glade-users] AttributeError: 'NoneType' object has no attribute 'get_text'
- Date: Thu, 10 Sep 2009 20:03:50 +0530
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20090910/03d04b68/attachment.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]