X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/49875c533ba56fd78c26fc9862ec3e84c66dfb74..62a879dfa0127253c7d095ed725a89465517bede:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index d1745623fb..f78f494f19 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -16,6 +16,8 @@ from wxPython.wx import * from wxPython.lib.splashscreen import SplashScreen from wxPython.html import wxHtmlWindow +import images + #--------------------------------------------------------------------------- @@ -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")