The other day, I was chatting with some wxPython newbies on the wxPython IRC channel and one of them wanted to know how to display images in wx. There are lots of different ways to do this, but I had a pre-made solution that I'd cobbled together a couple of years ago for work. Since […]
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 […]
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 […]
The grid widget in wxPython is one of the most complex GUI elements that you'll work with in this toolkit. In this article you will learn the basics of grid creation and usage. One of the major uses for a grid is to display tabular data. Another use is to create some kind of spreadsheet. […]
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 […]
Before PyCon, I was approached by a representative from Packt Publishing to review one of their books. They wanted me to read Daniel Arbuckle's Python Testing: Beginner's Guide. I'm not really into testing frameworks or test driven development and thought this would be a good excuse to learn the methodology and see if it was […]