def grabFrameBuffer(self):
    image = self.glWidget.grabFramebuffer()
    self.setPixmap(QPixmap.fromImage(image))
def grabFrameBuffer(self):
    image = self.glWidget.grabFramebuffer()
    self.setPixmap(QPixmap.fromImage(image))