--- 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()