Category Archives: Python

Forcing a HTTP Proxy on Local Google App Engine Development Server

I’ve been trying somewhat in vain to debug a REST interface that’s failing when running under GAE. After some searching, I found a way to force the local development server to use an http proxy (such as Charles or Membrane). … Continue reading

Posted in Python | 1 Comment

Restful Interfaces to 3rd-Party Websites in Python

Here are the slides and examples from my Code Mash 2.0.1.0 talk: Restful Interfaces to 3rd-Party Websites with Python (PDF) examples.tar.gz

Posted in programming, Python | Leave a comment

wxPython Font by Pixel Height

I’ve been looking to find a way to resize a font when the window’s size changes. Here is code that will create a font that is close as possible to a given height in pixels without specifying anything about the … Continue reading

Posted in Python, wxPython | Leave a comment

Using Mechanize with the Google App Engine

code to make mechanize work under GAE Continue reading

Posted in Python | 2 Comments

Update to TimeSpin Control for wxGlade

TimeSpin has a bug in that it reports the same width for GetBestSize when AM/PM is shown and when it is not (24 hour format). This causes an empty space to appear after the control when it is set to … Continue reading

Posted in Python, wxPython | Leave a comment

Update to TimeCtrl/TimeSpin wxGlade extension

I added a workaround for a problem with timectrl. You’ll want to upgrade to the 1.4 version of the time_spin_and_control distribution if you use limited, min, max, or value parameters in Glade when specifying the control. Edit – 3/8 – … Continue reading

Posted in Python, wxPython | 2 Comments

Adding a TimeCtrl Widget to wxGlade

The program I’m working on (ErgMate) requires entry of hours/mins/seconds durations. I just defined input as total number of seconds for the initial prototypes, but the time has come to make it more usable. I was able to create the … Continue reading

Posted in Python, wxPython | Leave a comment

CLEPY – SimpleParse, IPython, and Twill

The February Cleveland Area Python Users Group Meeting was held last night. The guys at BitBacker opened their doors and supplied pizza. It was the best meeting in awhile – 3 talks! Christian Wyglendowski kicked things off with an overview … Continue reading

Posted in Python | Leave a comment

Exception when Generating Code from wxGlade – and how to fix it

This morning I started getting the following exception when generating code from wxGlade: <pre> Traceback (most recent call last):   File "c:\temp\wxGlade\application.py", line 394, in generate_code     class_names=class_names)   File "c:\temp\wxGlade\xml_parse.py", line 503, in __init__    .    .    .   File "c:\temp\wxGlade\xml_parse.py", … Continue reading

Posted in wxPython | Leave a comment

Watch out for wxGlade’s Overwrite Sources!

wxGlade has an option for ‘overwrite sources’ in the application dialog: I normally have it off, but when doing some exploratory testing I enabled it. This morning I was working on my main application and regenerated the code. Guess what? … Continue reading

Posted in wxPython | Leave a comment