]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxImageFromStream.py
Removed wxGetOsVersion stub. It's now handled by utilscmn.cpp.
[wxWidgets.git] / wxPython / demo / wxImageFromStream.py
index 19e6f28f212de06a3b016114029e240fee059d97..6953a2ca4cfc11f9356046d2608a1834df681c18 100644 (file)
@@ -10,7 +10,7 @@ class TestPanel(wxPanel):
     def __init__(self, parent, log):
         wxPanel.__init__(self, parent, -1)
 
-        data = open(opj('bitmaps/image.gif'), "rb").read()
+        data = open(opj('bitmaps/image.png'), "rb").read()
         stream = StringIO(data)
 
         bmp = wxBitmapFromImage( wxImageFromStream( stream ))
@@ -18,8 +18,7 @@ class TestPanel(wxPanel):
         wxStaticText(self, -1,
                      "This image was loaded from a Python file-like object:",
                      (15, 15))
-        wxStaticBitmap(self, -1, bmp, (15, 45))
-
+        wxStaticBitmap(self, -1, bmp, (15, 45))#, (bmp.GetWidth(), bmp.GetHeight()))