Closed CFaldon closed 6 years ago
May be support, but if your goal is to take a screenshot of your Kivy app, self.export_to_png will work only for "self" aka your Screenshot widget, not the entire app. (It put the widget in a fbo, render and export).
There is a method in window for that: https://kivy.org/doc/stable/api-kivy.core.window.html#kivy.core.window.WindowBase.screenshot
So:
from kivy.core.window import Window
Window.screenshot()
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
If you're having trouble installing Kivy, make sure to check out the installation docs for Windows, Linux and macOS.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Versions
Description
I am trying to take a screenshot of the lines drawn in my Kivy paint app. None of the methods I have tried actually take a picture of the Kivy app itself. I have attempted the following methods:
export_to_png() produces a random tiled image. ImageGrab() takes a screenshot of the screen underneath the kivy app. screenshot() produces an error, as I can't figure out its syntax.
Code and Logs
Kivy file: