(self, file=None, update=True)
Save a screenshot of the widget in the specified file.
Save a screenshot of the widget in the specified file.
Save a screenshot of the widget in the specified file .
def save_image(self, file=None, update=True):
        """Save a screenshot of the widget in the specified file."""
        if file is None:
            file = "image.png"
        if update:
            self.updateGL()
        image = self.grabFrameBuffer()
        image.save(file, "PNG")
def save_image ( self , file = None , update = True ) : if file is None : file = "image.png" if update : self . updateGL ( ) image = self . grabFrameBuffer ( ) image . save ( file , "PNG" )