'How to print hard copy from python application

I have an application developed with kivy python. I have a screen that allows the user to print data generated on that screen and I have a print button. How do I make the print button print the entire data on that screen. Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source