0

I am working on some sort of animation maker with tkinter but I have run into a problem, i would want to save the current application window or canvas widget to a .png file for later use, is this possible? Thanks in advance.

chboo1
  • 63
  • 9

1 Answers1

1
import pyautogui
myScreenshot = pyautogui.screenshot()
myScreenshot.save(r'Path to save screenshot\filename.png')

And there it is ! ^^

And if you don't want everything else on your screen, you can try to crop it with pil

How to crop an image using PIL?

Quantum Sushi
  • 504
  • 7
  • 23