Maybe you can get the coords of that frame and then make a screenshot from that coords. This should work
How do you take a screenshot of a particular widget? I keep on getting "how to take screenshot of whole screen" or "how to take screenshot of the window" when searching, but I want to know how to take screenshot of a widget, a Frame, to be exact. I'm afraid that this forum would require me to give them a code snippet, when in reality I don't know what to do. So I'm just asking if this is possible, and how to do it.
PS: I would really appreciate if it is possible to just give a function the widget variable, and then it would go searching for that widget and then take a precise screenshot of it. I know that there is pyautogui which searches for images, I just don't know what I need to do exactly, since this frame isn't an image and it always changes from now and then, so the automation might get confused.
How do you take a screenshot of a particular widget in Tkinter?