Changeset c0de493 in sasview for src


Ignore:
Timestamp:
Sep 19, 2018 5:33:55 AM (6 years ago)
Author:
celinedurniak <celine.durniak@…>
Branches:
ESS_GUI_iss879
Parents:
fc5d2d7f
Message:

Changed Setting of NativeMenuBar? for MacOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/MainWindow.py

    r3d18691 rc0de493  
    66from PyQt5.QtWidgets import QApplication 
    77from PyQt5.QtGui import QPixmap 
     8import sys 
    89 
    910# Local UI 
     
    1617        super(MainSasViewWindow, self).__init__(parent) 
    1718        self.setupUi(self) 
     19 
     20        # Temporary solution for problem with menubar on Mac 
     21        if sys.platform == "darwin":  # Mac 
     22            self.menubar.setNativeMenuBar(False) 
    1823 
    1924        # define workspace for dialogs. 
Note: See TracChangeset for help on using the changeset viewer.