]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wxPython/lib/PyCrust/crust.py
Load the frame icons from a .py file so I don't have to figure out how
[wxWidgets.git] / wxPython / wxPython / lib / PyCrust / crust.py
index 45de8b585ad561f8bda474691f91f0385c032a98..435b1ed64a4d05f469c5c6b3291464a5a0c16c2f 100644 (file)
@@ -56,9 +56,8 @@ class CrustFrame(wxFrame, ShellMenu):
         intro += '\nSponsored by Orbtech - Your source for Python programming expertise.'
         self.CreateStatusBar()
         self.SetStatusText(intro.replace('\n', ', '))
-        filename = os.path.join(os.path.dirname(__file__), 'PyCrust.ico')
-        icon = wxIcon(filename, wxBITMAP_TYPE_ICO)
-        self.SetIcon(icon)
+        import images
+        self.SetIcon(images.getPyCrustIcon())
         self.crust = Crust(parent=self, intro=intro, \
                            rootObject=rootObject, \
                            rootLabel=rootLabel, \