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 […]
This week I bought Rick Copeland's MongoDB with Python and Ming eBook from Amazon. It just came out in July 2012, so I figured I should check it out and see what all the fuss is with MongoDB and the whole NoSQL fad. Quick Review Why I picked it up: Mainly because I've been interested […]
I am currently working on a book review for a college course Python book that uses the Python turtle module and Tkinter to help teach the Python programming language. Hopefully I'll have that book done by the end of the month. In the mean time, it made me decide to give the turtle module a […]
Earlier this week, I wrote a simple post about Python's Queues and demonstrated how they can be used with a threading pool to download a set of PDFs from the United States Internal Revenue Service's website. Today I decided to try "porting" that code over to Python's multiprocessing module. As one of my readers pointed […]
Python provides a very powerful logging library in its standard library. A lot of programmers use print statements for debugging (myself included), but you can also use logging to do this. It's actually cleaner to use logging as you won't have to go through all your code to remove the print statements. In this tutorial […]