def OnSaveScreenShort(self, event=None): '''always flipY''' from Priithon.all import U, FN fn = FN(1, verbose=0) if not fn: return flipY = 1 if flipY: U.saveImg(self.readGLviewport(copy=1)[:, ::-1], fn) else: U.saveImg(self.readGLviewport(copy=1), fn)
def OnSaveScreenShort(self, event=None): '''always flipY''' from Priithon.all import U, FN fn = FN(1, verbose=0) if not fn: return flipY=1 if flipY: U.saveImg(self.readGLviewport(copy=1)[:, ::-1], fn) else: U.saveImg(self.readGLviewport(copy=1), fn)
def OnSaveScreenShort(self, event=None): """always flipY""" from Priithon.all import U, FN, Y fn = FN(1)#, verbose=0) if not fn: return flipY=1 if flipY: U.saveImg(self.readGLviewport(copy=1)[:, ::-1], fn) else: U.saveImg(self.readGLviewport(copy=1), fn) Y.shellMessage("### screenshot saved to '%s'\n"%fn)
def OnSaveScreenShort(self, event=None): """always flipY""" from Priithon.all import U, FN, Y fn = FN(1) #, verbose=0) if not fn: return flipY = 1 if flipY: U.saveImg(self.readGLviewport(copy=1)[:, ::-1], fn) else: U.saveImg(self.readGLviewport(copy=1), fn) Y.shellMessage("### screenshot saved to '%s'\n" % fn)