I am using IDLE for Python on Mac (Catalina 10.15.7) and I would like to be able to take a screenshot (Command + Shift + 4 + Space + Enter) of the preview window for function inputs, shown here:
This usually works, but if the preview window is very large, the command returns an error, "Your screenshot can't be saved. Unable to capture window image.":
Here is an example of a large window (1298x16094) that I could take a screenshot of:
(Error displaying, I'll try to fix shortly)

I am wondering if this is some sort of intentional limitation, or perhaps a flaw in the screenshot program, but I have not been able to find anyone online with the same problem, and I have also been unable to find a way to directly access the code for screenshots. When displaying these large windows, IDLE does jump up in memory usage by as much as a few hundred MB, but I don't see why this would necessarily prevent saving a screenshot.
I have not tried using any third party software, though I would prefer to avoid this if possible.
Any suggestions would be appreciated.

