Hi all,<br>i did a small gui addressbook application using pygtk, python, mysql db. It was successful.<br>I tried the same application with glade. But i ended up with errors.<br>I desgined the code as follows.<br>1.It has one main window and four child dialogs.<br>


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.<br>3. If showdialog button is clicked, a child dialog appears, where i have to enter old entry to update.<br>
4. To update, i again use the main window, where i get the following error<br>                  Traceback (most recent call last):<br>  File "addressbookglade.py", line 63, in update<br>    self.ssn = self.wTree.get_widget("ssn").<div>

get_text()<br>
    AttributeError: 'NoneType' object has no attribute 'get_text'<br><br>Also i already set the name in properties window.  It works fine for add option. But not for update option. <br>Im using the same window for both add and update.<br>
<br>

The code is available here<a href="http://pastebin.com/m28a4747e" target="_blank"> http://pastebin.com/m28a4747e</a><br>The glade xml file is here<a href="http://pastebin.com/m1af61a29" target="_blank"> http://pastebin.com/m1af61a29</a><br>

The screenshot of my glade windows are here <a href="http://www.flickr.com/photos/raji_me/?saved=1" target="_blank">http://www.flickr.com/photos/raji_me/?saved=1</a><br>
 It works fine for add option. But not for update option. Im using the same window for both add and update.<br><br>Raji. S<br><br></div><br clear="all"><br> <br>