]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Main.py
applied SourceForge patch #419884 from Marc Newsam
[wxWidgets.git] / wxPython / demo / Main.py
index 8f8297e7734bb6382af46032731e513f78edaf6d..6ab783ec33b08fa8025ef982a36fdcb2241ab660 100644 (file)
@@ -78,7 +78,14 @@ class wxPythonDemo(wxFrame):
         self.cwd = os.getcwd()
         self.curOverview = ""
 
-        icon = wxIconFromXPMData(images.getMondrianData())
+        if 1:
+            icon = wxIconFromXPMData(images.getMondrianData())
+        else:
+            # another way to do it
+            bmp = images.getMondrianBitmap()
+            icon = wxEmptyIcon()
+            icon.CopyFromBitmap(bmp)
+
         self.SetIcon(icon)
 
         if wxPlatform == '__WXMSW__':