How to do a screenshot of a tkinter application?

I made a module that takes screenshot of tkinter window.

You can install with: pip install tkcap

GitHub repository

Usage:

import tkcap

cap = tkcap.CAP(master)     # master is an instance of tkinter.Tk
cap.capture(FileName)       # Capture and Save the screenshot of the tkiner window

Leave a Comment