Commit e26297aea7be81dc42cf83a85eea8acb913656d0

Authored by Thiago Franco de Moraes
1 parent 02c0f793

about and exit menu in mac

invesalius/constants.py
... ... @@ -451,8 +451,10 @@ VTK_WARNING = 0
451 451  
452 452 [ID_DICOM_IMPORT, ID_PROJECT_OPEN, ID_PROJECT_SAVE_AS, ID_PROJECT_SAVE,
453 453 ID_PROJECT_CLOSE, ID_PROJECT_INFO, ID_SAVE_SCREENSHOT, ID_DICOM_LOAD_NET,
454   -ID_PRINT_SCREENSHOT, ID_EXIT, ID_IMPORT_OTHERS_FILES, ID_ANALYZE_IMPORT, ID_PREFERENCES,
455   -ID_DICOM_NETWORK] = [wx.NewId() for number in range(14)]
  454 +ID_PRINT_SCREENSHOT, ID_IMPORT_OTHERS_FILES, ID_ANALYZE_IMPORT, ID_PREFERENCES,
  455 +ID_DICOM_NETWORK] = [wx.NewId() for number in range(13)]
  456 +ID_EXIT = wx.ID_EXIT
  457 +ID_ABOUT = wx.ID_ABOUT
456 458  
457 459  
458 460 [ID_EDIT_UNDO, ID_EDIT_REDO, ID_EDIT_LIST] =\
... ... @@ -464,7 +466,6 @@ ID_DICOM_NETWORK] = [wx.NewId() for number in range(14)]
464 466 [ID_VIEW_FULL, ID_VIEW_TEXT, ID_VIEW_3D_BACKGROUND] =\
465 467 [wx.NewId() for number in range(3)]
466 468  
467   -ID_ABOUT = wx.NewId()
468 469 ID_START = wx.NewId()
469 470  
470 471 ID_FLIP_X = wx.NewId()
... ...
invesalius/gui/frame.py
... ... @@ -684,9 +684,9 @@ class MenuBar(wx.MenuBar):
684 684 help_menu.Append(const.ID_ABOUT, _("About..."))
685 685 #help_menu.Append(107, "Check For Updates Now...")
686 686  
687   - if platform.system() == 'Darwin':
688   - wx.App.SetMacAboutMenuItemId(const.ID_ABOUT)
689   - wx.App.SetMacExitMenuItemId(const.ID_EXIT)
  687 + #if platform.system() == 'Darwin':
  688 + #wx.App.SetMacAboutMenuItemId(const.ID_ABOUT)
  689 + #wx.App.SetMacExitMenuItemId(const.ID_EXIT)
690 690  
691 691 # Add all menus to menubar
692 692 self.Append(file_menu, _("File"))
... ...