[pygtk] Problem in referencing Glade widegets
gnowledge.ganesh at gmail.com
Mon Jun 29 14:45:22 WST 2009
I am writing a program in which i want to get the image file which is
created on the server to my desktop. For whicj i am looking for the same
url which i used to connect to my server database.
I had written a small function to get the url address. Code is as follow:
Glade file Reference is:
self.xml = gtk.glade.XML('gnome-gnowser.glade')
self.app= self.app = self.xml.get_widget('app1')
My Function is:
This method is used to load the image from the server to client
print "xml ref : %s" %
print "APPLICATIO : %s" % str(self.xml.get_widget('app1')
print "ADDRESSBOX : %s" %
os.system('wget -c '+url_address+'/Data/nbhimages/'+'43.xdot
When i add something to database i call the load_image( ) method for loading
generated image on my desktop
O/P : """"after calling Load_image() """
xml ref : <glade.XML object at 0xae2db44 (PyGladeXML at 0xb17a498)> //
First line of load_image method for printing xml referece is perfet.....
APPLICATIO : None
ADDRESSBOX : None
Traceback (most recent call last):
File "gnowser.py", line 1491, in add_to_gnowsys
File "gnowser.py", line 2512, in load_image
AttributeError: 'NoneType' object has no attribute 'child'
Can anyone please help me to solve this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pygtk