开发者

How can I copy a remote image over HTTP to gtk.gdk.pixbuf by Python?

开发者 https://www.devze.com 2022-12-14 11:26 出处:网络
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.

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.

Now I just want to make 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消