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.
All right. Dialogs are fine to mess with for a while, but let's move on. (By the way, note that wxPython includes many more dialogs). Let's create a window:
When creating a wxFrame, three arguments are passed, as you can see. The first argument is the parent, which you have already seen. Our window does not have a parent. The second argument is the ID of the object. We don't need to worry about it in this tutorial –- passing wxID_ANY will work fine. The third argument is, obviously, the title of the window.
Many applications have status bars at the bottom with certain text. We can add a simple one to our application: