~emihalac/mnemosyne-proj/mnemosyne-proj

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/pyqt_ui/mnemosyne

  • Committer: Peter Bienstman
  • Date: 2017-03-01 18:28:52 UTC
  • Revision ID: peter.bienstman@ugent.be-20170301182852-uzlgodwicl505ft1
Option to have single window Q and A.

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
    QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_DisableHighDpiScaling)    
155
155
if options.qt_opengl:
156
156
    if options.qt_opengl not in ["desktop", "angle", "software"]:
157
 
        print("Invalid argument for qt-opengl. Should be 'desktop', 'angle' or 'software'")
 
157
        print(\
 
158
"Invalid argument for qt-opengl. Should be 'desktop', 'angle' or 'software'")
158
159
        sys.exit(-1)
159
160
    if options.qt_opengl == "desktop":
160
161
        QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_UseDesktopOpenGL)
161
162
    elif options.qt_opengl == "angle":
162
 
        QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_UseOpenGLES)           
 
163
        QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_UseOpenGLES)
163
164
    elif options.qt_opengl == "software":
164
165
        QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_UseSoftwareOpenGL)   
165
166