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) […]
Virtual environments can be really handy for testing software. That's true in programming circles too. Ian Bicking created the virtualenv project, which is a tool for creating isolated Python environments. You can use these environments to test out new versions of your software, new versions of packages you depend on or just as a sandbox […]
Pip Installs Python or pip is a tool for installing and managing Python packages, many of which are on the Python Package Index (PyPI). It is a replacement of easy_install. In this article, we'll spend a little time trying out pip to see how it works and how it might help us in our Python […]
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 […]
Today we're going to take a look at the controversial easy_install method of installing Python modules and packages. We will also learn how to create our own *.egg files. You will need to go get the SetupTools package to follow along. This package doesn't support Python 3.x so if you need that, see pip or […]
Not sure how I missed this, but PyCon 2013 is already open for proposals, which means if you like to talk about Python, now's your chance to show your chops! You can propose a talk, a tutorial or a poster. Head on over to their prospectus for more information. PyCon is a lot of fun […]