I recently came across a StackOverflow question where the fellow was asking how to get wxPython's RichTextCtrl's XML data so he could save it to a database. I don't know much about this control, but after a quick Google search, I found an article from 2008 that gave me the information I needed. I took […]
In this tutorial, we'll look at three simple ways to create a wxPython frame. If you're a visual learner, I also created a screencast version of this article that you can view below:
February 19, 2015 by
Mike I see this come up from time to time where people will ask how to center a widget in a window. The solution is actually quite easy. In most cases, you just need to nest a Horizontal BoxSizer inside of a Verticel BoxSizer with some spacers. In this article, I'll show you two three different […]
November 11, 2014 by
Mike The wxPython library comes with a pair of handy methods called Freeze() and Thaw(). The call to Freeze() prevents the window from updating while it is frozen. This can be useful when you are adding or removing widgets and you want to reduce your UI from appearing to flicker. After you finish updating the UI, […]
The wxPython GUI toolkit includes its own date / time capabilities. Most of the time, you can just use Python's datetime and time modules and you'll be fine. But occasionally you'll find yourself needing to convert from wxPython's wx.DateTime objects to Python's datetime objects. You may encounter this when you use the wx.DatePickerCtrl widget. Fortunately, […]
I've been using wxPython for quite a while now and I see certain questions come up on a fairly frequent basis. One of the popular ones is how to ask the user for their credentials before loading up the rest of the application. There are several approaches to this, but I am going to focus […]