Today on StackOverflow I saw someone wondering how to bind two functions / methods to the same event in wxPython. It's really quite easy. Here's one example:
Occasionally I'll see someone on the wxPython users group ask about how to make the wx.Notebook change pages (or tabs) programmatically. So I decided it was about time I figured it out. Here is some code that works for me: import random import wx ######################################################################## class TabPanel(wx.Panel): #---------------------------------------------------------------------- def __init__(self, parent, page): """""" wx.Panel.__init__(self, parent=parent) […]
This week, I came across a fun Python project named psutil on Google Code. It says it works on Linux, Windows, OSX and FreeBSD. What it does is grab all the running processes and gives you information on them and also gives you the ability to terminate them. So I thought it would be fun […]
The other day on StackOverflow I saw someone who was struggling with the Wizard widget from wxPython. The wizard doesn't allow much customization when it comes to its buttons, so I decided to see how hard it would be to just write my own Wizard. This code is pretty limited, but here's my first beta […]
My long time readers may remember me mentioning that I was trying to put my article code into a Mercurial repository on bitbucket. I haven't been doing a very good job of that lately, but I did decide to release a whole bunch of wxPython example scripts on there. I use them a lot when […]
The other day I saw a question on StackOverflow about how to dynamically destroy and create panels after a certain amount of time has passed. I told the fellow that he could use the examples from one of my blog articles where I destroyed and created buttons, but the dude just didn't get it. So […]