How to Take a Screenshot of Your wxPython App and Print it

Have you ever thought that it would be cool to have your wxPython code take a screenshot of itself? Well, Andrea Gavana 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

How to Take a Screenshot of Your wxPython App and Print it Read More »

Python’s _winreg: Editing the Windows Registry

Python’s standard library is known for including lots of handy modules and packages that can be used without installing anything else. That’s one of the primary reasons that its standard library is called “batteries included” so often. So it should come as no surprise that Python includes a Windows only module for editing the Windows

Python’s _winreg: Editing the Windows Registry Read More »

wxPython: Putting a Background Image on a Panel

Yesterday, I received a request to create a GUI with Tkinter or wxPython that had an image for the background with buttons on top. After looking at Tkinter, I discovered that it’s PhotoImage widget only supported two formats: gif and pgm (unless I installed the Python Imaging Library). Because of this, I decided to give

wxPython: Putting a Background Image on a Panel Read More »

A Simple Step-by-Step Reportlab Tutorial

The subtitle for this article could easily be “How To Create PDFs with Python”, but WordPress doesn’t support that. Anyway, the premier PDF library in Python is Reportlab. It is not distributed with the standard library, so you’ll need to download it if you want to run the examples in this tutorial. There will also

A Simple Step-by-Step Reportlab Tutorial Read More »