Beremiz.py
changeset 124 b9aba2d44b3e
parent 123 b8512cf4dee9
child 126 034979cb02b0
equal deleted inserted replaced
123:b8512cf4dee9 124:b9aba2d44b3e
   381         self._init_ctrls(parent)
   381         self._init_ctrls(parent)
   382         
   382         
   383         self.Log = LogPseudoFile(self.LogConsole)
   383         self.Log = LogPseudoFile(self.LogConsole)
   384         
   384         
   385         # Add beremiz's icon in top left corner of the frame
   385         # Add beremiz's icon in top left corner of the frame
   386         if wx.Platform == '__WXMSW__':
   386         self.SetIcon(wx.Icon(os.path.join(CWD, "images", "brz.ico"), wx.BITMAP_TYPE_ICO))
   387             icon = wx.Icon(os.path.join(CWD,"images","brz.ico"),wx.BITMAP_TYPE_ICO)
       
   388         else:
       
   389             icon = wx.Icon(os.path.join(CWD,"images","brz.png"),wx.BITMAP_TYPE_PNG)
       
   390         self.SetIcon(icon)
       
   391         
   387         
   392         self.PluginRoot = PluginsRoot(self)
   388         self.PluginRoot = PluginsRoot(self)
   393         self.DisableEvents = False
   389         self.DisableEvents = False
   394         
   390         
   395         self.PluginInfos = {}
   391         self.PluginInfos = {}
  1203     
  1199     
  1204     def OnSaveLogMenu(self, event):
  1200     def OnSaveLogMenu(self, event):
  1205         event.Skip()
  1201         event.Skip()
  1206     
  1202     
  1207     def OnBeremizMenu(self, event):
  1203     def OnBeremizMenu(self, event):
  1208         docclass.docpdf.open_pdf(os.path.join(CWD, "doc","manual_beremiz.pdf"))
  1204         docclass.docpdf.open_pdf(os.path.join(CWD, "doc", "manual_beremiz.pdf"))
  1209         event.Skip()
  1205         event.Skip()
  1210     
  1206     
  1211     def OnAboutMenu(self, event):
  1207     def OnAboutMenu(self, event):
  1212         about_html = objdictedit(self)
  1208         about_html = objdictedit(self)
  1213         about_html.OpenHtmlFrame("About Beremiz", os.path.join(CWD, "doc","about.html"), wx.Size(550, 500))
  1209         about_html.OpenHtmlFrame("About Beremiz", os.path.join(CWD, "doc","about.html"), wx.Size(550, 500))