wxPython: Adding Checkboxes to ObjectListView

This week I spent some time learning how to add check boxes to the ObjectListView widget in wxPython. If you don’t know, ObjectListView is a 3rd party wrapper for the wx.ListCtrl widget that makes using the ListCtrl much easier. You can read all about it in this older article from the archives. I had a […]

wxPython: Adding Checkboxes to ObjectListView Read More »

Real Python for Web Development Book on Kickstarter

Last week I was contacted about a cool sounding book project on Kickstarter: Real Python for Web Development, featuring web2py by Michael Herman. I have to admit that I’m not familiar with Mr. Herman or the person who originally contacted me about the book, but since I enjoy reading Python books and this one sounded

Real Python for Web Development Book on Kickstarter Read More »

Python Gets Funded by DARPA for Big Data Project: Blaze

I first heard about Blaze from NumPy’s original developer’s blog back in December 2012. A few days ago, InformationWeek announced that DARPA was funding the project to the tune of $3 million dollars to get some big data libraries written for Python. There will be two new projects, Blaze and Bokeh. Blaze will be an

Python Gets Funded by DARPA for Big Data Project: Blaze Read More »

Central Python Events Calendar Announced

The Python Software Foundation recently put out an announcement about a central Python events calendar. I thought that was really cool, so I’m reproducing their announcement here. Spread the word! ________________________________________________________________________ ANNOUNCING Central Python Events Calendars maintained by the Python Software Foundation (PSF) and a group of volunteers ________________________________________________________________________ INTRODUCTION The PSF has put together

Central Python Events Calendar Announced Read More »

Python 101: Exception Handling

Python provides robust exception handing baked right into the language. Exception handing is something every programmer will need to learn. It allows the programmer to continue their program or gracefully terminate the application after an exception has occurred. Python uses a try/except/finally convention. We’ll spend some time learning about standard exceptions, how to create a

Python 101: Exception Handling Read More »

wxPython: How to Get Children Widgets from a Sizer

The other day, I stumbled across a question on StackOverflow asking how to get the children widgets of a BoxSizer. In wxPython, you would expect to call the sizer’s GetChildren() method. However, this returns a list of SizerItems objects rather than a list of the actual widgets themselves. You can see the difference if you

wxPython: How to Get Children Widgets from a Sizer Read More »

wxPython: How to make “flashing text”

People keep on asking fun wxPython questions on StackOverflow. Today they wanted to know how to make “flashing text” in wxPython. That’s actually a pretty easy thing to do. Let’s take a look at some simple code: import random import time import wx ######################################################################## class MyPanel(wx.Panel): “””””” #———————————————————————- def __init__(self, parent): “””Constructor””” wx.Panel.__init__(self, parent) self.font

wxPython: How to make “flashing text” Read More »