Category Archives: Programming
PyCPU – A Python library for CPU information

Accessing the CPU and retrieving information about itself is a fairly low-level task that requires a little assembly-fu. Something that Python isn’t geared to do out of the box. But it’s possible to get that information with C and hand it over to Python.

Custom Controls in wxPython: Part 1

Writing custom controls or widgets for wxPython isn’t all that hard, once you learn the ropes. This is the first part of an ongoing series of articles about making custom UI controls using Python and the wxPython toolkit.

Necessity is a Strange Mother

In just about everything I’ve done, there has at some point been a need to do arbitrary date calculations. DateSpanner helps remedy that.

Introducing PyGhostscript

For those of you that have been wanting an extension in Python that binds directly to Ghostscript, look no further. A new page is available now for PyGhostscript on my blog!

Blocking Out the Spammers

Country-wide IP blocks on this server have managed to save on bandwidth, headaches, intrusion attempts, and spambots from all over the world. I wish I didn’t have to do it, but the world isn’t fair and we have to protect ourselves from threats like this now.

Concrete Calculators 1.2 Released

Had a few minutes today and updated the Concrete Calculators software. Some usability enhancements and automatic calculation of common bag sizes needed for a job. It’s a fun little pet project for me, one that I hope someone else out there gets some usefulness from.

ProgressCellRenderer – Gauges for Grid Cells

Here’s another quickie I came up with for Grid controls – a ProgressCellRenderer. Will take a value in a cell and convert it to a progress gauge background in the cell. Also does a little formatting to add a % sign at the end of the value if it doesn’t have it. Useful for read-only cells that are updated from another data source or calculation, but can be manually edited also.

DatePickerEditor – A useful control for wxPython

I still like to share solutions to problems that I’ve solved that maybe someone else out there may have encountered. And hopefully save them some time and banging of head against the wall. One of them was my need to develop a custom GridCellEditor control for wxPython for use with grids. Now you can select dates from within a grid cell without having to refer back to another calendar.

Because I was bored, I give you BAC Pal

Because I was bored and had an hour to kill, I give you BAC Pal! A very simple, small program that uses the Widmark Formula to give an estimated blood alcohol level. Using the list of states, it can then tell you if you are below the legal limit or not.

Pygame Package Builder 0.3 Beta Available

Fixed a few problems not recognizing win32com and pythoncom not being installed. Also fixed a fatal build error when using a Python version other than 2.5. It should now work with any version of Python.

Next Page