
Hello! For the weather applet, the map currently is downloaded to a file in /tmp and then loaded in the dialog. However, the dialog is created right after each file is downloaded, so it isn't really necessary. What would be better would be to send the data right to the dialog.
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
urllib.urlretrieve(imgSrc, "/tmp/awnWeatherMap")
map = gtk.Image()
map.set_from_file("/tmp/awnWeatherMap")
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
rawImgData = urllib.urlopen(imgSrc).read()
map = gtk.Image()
#some magical call to set the map from rawImgData
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
but I don't know how to create a gtk.Image from the CONTENTS of a file instead of a file path. I am looking at the gtk.Image docs and see lots of set_from_xxx, but nothing that seems to allow this. Any ideas?
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
--
-Chaz