Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ビットマップやアイコンに変換できますか?ファイルに保存するのは避けて、たとえば wx.Bitmap で読みたいと思います。
これはうまくいくようです:
import wx import gtk pb = gtk.gdk.pixbuf_new_from_file("someFile.jpg") img = wx.EmptyImage(pb.get_width(), pb.get_height()) img.SetData(pb.get_pixels()) ## you can now convert the wx.Image to wx.Bitmap etc...