© Mike Driscoll 2018
Mike DriscollwxPython Recipeshttps://doi.org/10.1007/978-1-4842-3237-8_2

2. Working with Images

Mike Driscoll
(1)
Ankeny, New York, USA
 

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 ...

Get wxPython Recipes: A Problem - Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.