fix bzr.ico -> icon for windows installer
authorgreg
Mon, 18 Feb 2008 18:20:23 +0100
changeset 103 05b58747ca5d
parent 102 18793be117b9
child 104 d70b05f43e73
fix bzr.ico -> icon for windows installer
add icon support for linux version in Beremiz.py
Beremiz.py
--- a/Beremiz.py	Mon Feb 18 18:09:17 2008 +0100
+++ b/Beremiz.py	Mon Feb 18 18:20:23 2008 +0100
@@ -1271,9 +1271,13 @@
     AddExceptHook(os.getcwd(),__version__)
     
     frame = Beremiz(None, projectOpen)
+    
+    # Add beremiz's icon in top left corner of the frame
     if wx.Platform == '__WXMSW__':
-        winicon = wx.Icon(os.path.join(CWD,"brz.ico"))
-        frame.SetIcon(icon)
-    
-	frame.Show()
+        winicon = wx.Icon(os.path.join(CWD,"brz.ico"),wx.BITMAP_TYPE_ICO)
+        frame.SetIcon(winicon)
+    else:
+		linicon = wx.Icon(os.path.join(CWD,"brz.png"),wx.BITMAP_TYPE_PNG)
+		frame.SetIcon(linicon)
+    frame.Show()
     app.MainLoop()