def __init__(self):
        #Test for OpenGL Version
        gl2 = False
        w = QtOpenGL.QGLWidget()
        w.setVisible(False)
        w.makeCurrent()
        gl_version =  glGetString(GL_VERSION)
        if gl_version is None:
            gl_version = '0'

        allowChoosingOpenGL = False
        if int(gl_version[0]) >= 2:
            allowChoosingOpenGL = True
        elif int(gl_version[0]) == 0:
            allowChoosingOpenGL = False
        else:
            raise RuntimeError("Absolutely no OpenGL available")

        super(RenderChoiceDialog, self).__init__()
        layout = QtGui.QVBoxLayout(self)
        choicesGroup = QtGui.QButtonGroup(self)
        self.openglChoice   = QtGui.QRadioButton("Open GL")
        self.softwareChoice = QtGui.QRadioButton("Software + OpenGL")
        okButton = QtGui.QDialogButtonBox(QtGui.QDialogButtonBox.Ok, QtCore.Qt.Vertical)
        label = QtGui.QLabel("""<b>OpenGL + OpenGL Overview</b> allows
                    for fastest rendering if OpenGL is correctly installed.
                    <br> If visualization is slow or incomplete,
                    try the <b>Software + OpenGL</b> mode.""")

        layout.addWidget(label)
        layout.addWidget(self.openglChoice)
        layout.addWidget(self.softwareChoice)
        layout.addWidget(okButton)
        self.setLayout(layout)

        if platform.system() == 'Darwin':
            allowChoosingOpenGL = False

        if allowChoosingOpenGL:
            self.openglChoice.setChecked(True)
        else:
            self.openglChoice.setEnabled(False)
            self.softwareChoice.setChecked(True)

        QtCore.QObject.connect(okButton, QtCore.SIGNAL("accepted()"), self, QtCore.SLOT("accept()"))
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/ilastikMain.py/RenderChoiceDialog.__init__/operator `>` -> `==`