How can I copy a remote image over HTTP to gtk.gdk.pixbuf by Python?
this is first post here and I am a noob programmer.
This may be a stupid question.I'd like to create a personal Twitter notifier on GNOE Desktop. And I've decided to use pynotify
and Tweepy
.
pynotify
show Twitter user's icon, and there seems to be 2 ways using pynotify
; setting URI to local image file, or using pixbuf
API. I suppose downloading the icon and setting URI to the local icon by urllib
is easier though don't want to make loc开发者_JS百科al cache file. Is it possible to pass directly a remote image to pixbuf
?did you mean something like this?
精彩评论