]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Main.py
Updated infoframe from Chris Fama
[wxWidgets.git] / wxPython / demo / Main.py
index d1745623fb15d1dd6d8a3a0c31fe8768dbd54bf6..076240ec1d87124e31c5f45e5ffa7ca688510934 100644 (file)
@@ -16,11 +16,13 @@ from   wxPython.wx import *
 from   wxPython.lib.splashscreen import SplashScreen
 from   wxPython.html import wxHtmlWindow
 
+import images
+
 #---------------------------------------------------------------------------
 
 
 _treeList = [
-    ('New since last release', ['ColourSelect', 'ImageBrowser',
+    ('New since last release', ['ColourSelect', 'ImageBrowser', 'infoframe',
                                 ]),
 
     ('Managed Windows', ['wxFrame', 'wxDialog', 'wxMiniFrame']),
@@ -75,10 +77,10 @@ class wxPythonDemo(wxFrame):
         self.cwd = os.getcwd()
         self.curOverview = ""
 
-        if wxPlatform == '__WXMSW__':
-            icon = wxIcon('bitmaps/mondrian.ico', wxBITMAP_TYPE_ICO)
-            self.SetIcon(icon)
+        icon = wxIconFromXPMData(images.getMondrianData())
+        self.SetIcon(icon)
 
+        if wxPlatform == '__WXMSW__':
             # setup a taskbar icon, and catch some events from it
             self.tbicon = wxTaskBarIcon()
             self.tbicon.SetIcon(icon, "wxPython Demo")