1. Using PyCha with Django

    Fri 25 February 2011
    By stu

    A quick post on using Python Charts to generate nice SVG charts for your django website (I've had the code hanging around for ages - so should just post it). The code is based on the examples there, here I integrate it into Django.

    To install you'll need to do

    pip …
    Tagged as : python
  2. Set Windows Environment variables from the registry (TCC/LE)

    Thu 30 September 2010
    By stu

    [EDIT: 2010/10/05]

    Oops, I've been using TCC/LE by JPSoft as my shell... the following doesn't work in the normal command prompt

    [/EDIT]

    I just had a look at SET and it lets you set user/system variables:

    Display, create, modify, or delete environment variables.
    
    SET [/A /D …
  3. A simple cairo draw queue using closures

    Wed 12 May 2010
    By stu

    Often it's useful to be able to store up drawing commands so you can use them later somewhere else (or even just pass them to another thread).

    This is a simple drawing model, implemented in cairo, hopefully somebody will find it useful.

    Queue

    class DrawQueue:
        '''
        A list of draw commands …
    Tagged as : creative coding python

Page 5 / 10