Beremiz.py
changeset 116 ff860001a377
parent 110 a05e8b30c024
child 117 32099ee16154
equal deleted inserted replaced
115:9ffdac9cf609 116:ff860001a377
   335 
   335 
   336     def __init__(self, parent, projectOpen):
   336     def __init__(self, parent, projectOpen):
   337         self._init_ctrls(parent)
   337         self._init_ctrls(parent)
   338         
   338         
   339         self.Log = LogPseudoFile(self.LogConsole)
   339         self.Log = LogPseudoFile(self.LogConsole)
       
   340         
       
   341         # Add beremiz's icon in top left corner of the frame
       
   342         if wx.Platform == '__WXMSW__':
       
   343             icon = wx.Icon(os.path.join(CWD,"brz.ico"),wx.BITMAP_TYPE_ICO)
       
   344         else:
       
   345             icon = wx.Icon(os.path.join(CWD,"brz.png"),wx.BITMAP_TYPE_PNG)
       
   346         self.SetIcon(icon)
   340         
   347         
   341         self.PluginRoot = PluginsRoot(self)
   348         self.PluginRoot = PluginsRoot(self)
   342         self.DisableEvents = False
   349         self.DisableEvents = False
   343         
   350         
   344         self.PluginInfos = {}
   351         self.PluginInfos = {}
  1286     # Install a exception handle for bug reports
  1293     # Install a exception handle for bug reports
  1287     AddExceptHook(os.getcwd(),__version__)
  1294     AddExceptHook(os.getcwd(),__version__)
  1288     
  1295     
  1289     frame = Beremiz(None, projectOpen)
  1296     frame = Beremiz(None, projectOpen)
  1290     
  1297     
  1291     # Add beremiz's icon in top left corner of the frame
       
  1292     if wx.Platform == '__WXMSW__':
       
  1293         winicon = wx.Icon(os.path.join(CWD,"brz.ico"),wx.BITMAP_TYPE_ICO)
       
  1294         frame.SetIcon(winicon)
       
  1295     else:
       
  1296 		linicon = wx.Icon(os.path.join(CWD,"brz.png"),wx.BITMAP_TYPE_PNG)
       
  1297 		frame.SetIcon(linicon)
       
  1298     frame.Show()
  1298     frame.Show()
  1299     app.MainLoop()
  1299     app.MainLoop()