SetIcon for Beremiz fixed
authorlbessard
Wed, 05 Mar 2008 10:04:28 +0100
changeset 124 b9aba2d44b3e
parent 123 b8512cf4dee9
child 125 13d45f7e0248
SetIcon for Beremiz fixed
Beremiz.py
--- a/Beremiz.py	Tue Mar 04 08:50:52 2008 +0100
+++ b/Beremiz.py	Wed Mar 05 10:04:28 2008 +0100
@@ -383,11 +383,7 @@
         self.Log = LogPseudoFile(self.LogConsole)
         
         # Add beremiz's icon in top left corner of the frame
-        if wx.Platform == '__WXMSW__':
-            icon = wx.Icon(os.path.join(CWD,"images","brz.ico"),wx.BITMAP_TYPE_ICO)
-        else:
-            icon = wx.Icon(os.path.join(CWD,"images","brz.png"),wx.BITMAP_TYPE_PNG)
-        self.SetIcon(icon)
+        self.SetIcon(wx.Icon(os.path.join(CWD, "images", "brz.ico"), wx.BITMAP_TYPE_ICO))
         
         self.PluginRoot = PluginsRoot(self)
         self.DisableEvents = False
@@ -1205,7 +1201,7 @@
         event.Skip()
     
     def OnBeremizMenu(self, event):
-        docclass.docpdf.open_pdf(os.path.join(CWD, "doc","manual_beremiz.pdf"))
+        docclass.docpdf.open_pdf(os.path.join(CWD, "doc", "manual_beremiz.pdf"))
         event.Skip()
     
     def OnAboutMenu(self, event):