diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 8f8297e773..6ab783ec33 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -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__':