def __init__(self, parent=None, f=QtCore.Qt.WindowFlags()):
        QtOpenGL.QGLWidget.__init__(self, parent)

        self.setAttribute(QtCore.Qt.WA_OpaquePaintEvent)
        self.setAttribute(QtCore.Qt.WA_PaintOnScreen)
        self.setMouseTracking(True)
        self.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.setSizePolicy(QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                             QtGui.QSizePolicy.Expanding))


        
        self.sci_context = sr_py.CallbackOpenGLContext()
        self.sci_context.set_pymake_current_func(self.make_current)
        self.sci_context.set_pyswap_func(self.swap)
        self.sci_context.set_pywidth_func(self.get_width)
        self.sci_context.set_pyheight_func(self.get_height)
        self.sci_context.set_pyrelease_func(self.release)
        unique_id = uuid.uuid4()
        self._id = "sr_viewer_%s" % str(unique_id)
        #print self._id
        self.full_speed = False
        self.timer = QtCore.QTimer()
        self.connect(self.timer,
                     QtCore.SIGNAL("timeout()"), self.updateGL)
QCM2ViewWidget(parent: QWidget, f: WindowFlags) -> QCM2ViewWidget
dataset/ETHPy150Open VisTrails/VisTrails/contrib/SCIRun/cm2viewcell.py/QCM2ViewWidget.__init__