# HG changeset patch # User lbessard # Date 1204707868 -3600 # Node ID b9aba2d44b3e5acac0d3f4aa2569c8d482cfc3c1 # Parent b8512cf4dee9564a5280129340e60971ce946207 SetIcon for Beremiz fixed diff -r b8512cf4dee9 -r b9aba2d44b3e 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):