]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Main.py
Redirected mouse wheel events from the child grid windows to the
[wxWidgets.git] / wxPython / demo / Main.py
index 076240ec1d87124e31c5f45e5ffa7ca688510934..6ab783ec33b08fa8025ef982a36fdcb2241ab660 100644 (file)
@@ -23,6 +23,7 @@ import images
 
 _treeList = [
     ('New since last release', ['ColourSelect', 'ImageBrowser', 'infoframe',
+                                'ColourDB',
                                 ]),
 
     ('Managed Windows', ['wxFrame', 'wxDialog', 'wxMiniFrame']),
@@ -77,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__':