Recipe 2-1. How to Take a Screenshot of Your wxPython App
Problem
Have you ever thought that it would be cool to have your wxPython code take a screenshot of itself? Well, Andrea Gavana (one of wxPython’s core developers) figured out a cool way to do just that and between what he told us on the wxPython
mailing list and what I learned from other sources, you will soon learn how to not only take the screenshot but send it to your printer! Once it’s all done, you’ll have an application that looks like Figure 2-1.
Figure 2-1
Taking a screenshot
Solution
You can tackle this project
in several different ...