Python

1 Dec 2008

Py2app Pyqt

You can build cross-platform GUI applications in Python using a library called PyQt, a set of Python bindings for Nokia's Qt application framework. Using PyQt, you can create Python applications that look and feel like native applications regardless of whether they happen to be running on Linux, OS X, or Windows.

(more...)

How to make standalone OS X application bundles from PyQt apps using py2app

1 Dec 2008

It appears that Python Launcher doesn't work under OS X Leopard.

Python Launcher is used to launch Python apps by double-clicking on them in the Finder, and is thus useful when testing GUI Python apps.

I wasted a bit of time trying to track down where exactly I had done something wrong in configuring my system so I hope this simple post keeps someone else from the same fate! :)

(more...)

Python Launcher doesn’t work with OS X Leopard

2 Oct 2008

I lost quite a bit of time trying to get the PyAMF shell up and running on the <head> web site this week.

I started out by downloading the source for the shell app via a link on a post on the PyAMF blog. Unfortunately, the link was to the wrong version of the shell app (I've since informed the PyAMF team and Nick's fixed the link.)

(more...)

Running the PyAMF shell with Django 1.0 and app-engine-patch

1 Oct 2008

Porting pre 1.0 Django to 1.0 is apparently not a walk in the park.

For one thing django.core.validators, which I was using, was removed. The fix: copy it back from the earlier version.

Not sure if it was a bad practice or not but I was also doing dictionary lookups on the request object and that's been removed now.

(more...)

Dictionary lookup removed for request object in Django 1.0 and other fun facts.

20 Aug 2008

Cotton Candy Corral ReefThe cool thing about user submitted content is that you can't always predict what you're going to get. Our speakers at the Singularity Web Conference, for example, submit and update their own bios and session descriptions on the site. Yesterday, I noticed that Dr. Woohoo had put up an image of one of his awesome generative artworks in his session description.

Of course, since I hadn't considered images in session descriptions, this had the side-effect of breaking the layout of the sessions page.

(more...)

Dr. Woohoo, Generating Artwork, and some Python code to massage user submitted content (specifically, images).