This article is the first in a series covering wxPython, a library that makes it easy for Python programmers to build graphical user interfaces. It introduces some simple dialogs, explains how to create a simple frame, how to create a menu, and how to add two basic controls to a panel.
There are times when tinkering around in a console might suit you and your application nicely, but moving on may suit you nicely as well. This is where graphical user interfaces –- GUIs –- enter the story. Applications like this are often made in languages such as C++, Java and Visual Basic, but Python has the power to handle graphical user interfaces as well. A library called Tkinter is shipped with Python, but a better alternative exists: wxPython. If you're coming from a C++ background, this name probably sounds familiar. That's because it's a wrapper around wxWidgets.
While Tkinter offers only a handful of options, wxPython offers many. You can put almost any widget you can imagine in your Python application, and since it's Python, it's extremely easy to do so. We'll take a look at wxPython in this article, exploring the basics of the library and its benefits.
The first step in learning how to use wxPython is, obviously, obtaining the library. You may obtain it at the official site: