Beremiz.py
changeset 103 05b58747ca5d
parent 102 18793be117b9
child 105 434aed8dc58d
equal deleted inserted replaced
102:18793be117b9 103:05b58747ca5d
  1269     
  1269     
  1270     # Install a exception handle for bug reports
  1270     # Install a exception handle for bug reports
  1271     AddExceptHook(os.getcwd(),__version__)
  1271     AddExceptHook(os.getcwd(),__version__)
  1272     
  1272     
  1273     frame = Beremiz(None, projectOpen)
  1273     frame = Beremiz(None, projectOpen)
       
  1274     
       
  1275     # Add beremiz's icon in top left corner of the frame
  1274     if wx.Platform == '__WXMSW__':
  1276     if wx.Platform == '__WXMSW__':
  1275         winicon = wx.Icon(os.path.join(CWD,"brz.ico"))
  1277         winicon = wx.Icon(os.path.join(CWD,"brz.ico"),wx.BITMAP_TYPE_ICO)
  1276         frame.SetIcon(icon)
  1278         frame.SetIcon(winicon)
  1277     
  1279     else:
  1278 	frame.Show()
  1280 		linicon = wx.Icon(os.path.join(CWD,"brz.png"),wx.BITMAP_TYPE_PNG)
       
  1281 		frame.SetIcon(linicon)
       
  1282     frame.Show()
  1279     app.MainLoop()
  1283     app.MainLoop()