Recently, Andrea Gavana, developer of the agw library in the wxPython code base, released his newest widget: XLSGrid. It's purpose is to faithfully reproduce the appearance of a Microsoft Excel spreadsheet (one worksheet per every instance of XLSGrid). This widget is based on wx.grid.PyGridTableBase and wx.grid.PyGridCellRenderer and requires xlrd. Andrea also recommends using Mark Hammond's […]
If you're a long time reader of this blog, then you will know that I really like the wxPython GUI toolkit. Something that seems to stump new wxPython users is how to find out what styles and events each widget has though. It does take some practice to learn how the documentation works, but there's […]
There was a recent post on StackOverflow that I thought was interesting. It asked how to get the event name from the event object, such as EVT_BUTTON, rather than the event's id number. So I did some investigation into the subject and there is nothing builtin to wxPython that does this task. Robin Dunn, creator […]
Have you ever wondered about how to change your font in wxPython? Well, now is your lucky day because that is exactly what this tutorial is going to cover. We will look at the following three items: Built-in fonts of wxPython The font dialog The font enumerator demo from the wxPython demo Fonts are an […]
February 10, 2011 by
Mike The other day on the wxPython IRC channel on freenode, one of the members there asked if there was a way to make the wx.FileDialog display more than one file type at a time. In the back of mind, I thought I had seen a Microsoft product that could do it, but I'd never seen […]
In this article, we will be looking at wxPython's Wizard widget. No, it has nothing to do with Dumbledore or Gandalf. Instead, it is that dialog that you'll see when you run an installer or set up a template. Sometimes you'll even see them used for setting up mail merge. We will cover two examples […]