Tag Archives: python

Romulus, My Window Manager

About a year ago, I wrote about making your own window manager in Python, and how to extend this to use Twisted as your window manager’s main loop. Around the time I wrote those articles, I also wrote a tiling … Continue reading

Posted in midlength | Tagged , , , , | 5 Comments

Something Fishy with Python ASTs

Ok, so far so good. Now comes the interesting bit.

When you parse an AST with a __future__ import, it looks as if it stores some hidden flags that suppress this error. These flags, if they exist, are … Continue reading

Posted in short | Tagged , , | 12 Comments

Twisted + Pygame the Easy Way

I’ve put together a Python package called fibre. It provides helpers to make it easy to write asynchronous applications. It uses Twisted under the hood. I’ve also made a package called fibre.ui. It adds user interface support using pygame. One … Continue reading

Posted in midlength | Tagged , , , , | Comments Off on Twisted + Pygame the Easy Way

Subclass ’em Functions

Quick Summary I’ve got a simple Python helper class, in the talljosh package, that lets you write things that behave as functions but can be extended by subclassing. But Why? Consider the following Python function, found in json/encoder.py in the … Continue reading

Posted in midlength | Tagged , , , | 1 Comment

Pygtk: reparented windows responding to size allocations

Today’s post is an obscure technical one that I imagine will be completely irrelevant to all of my normal readers at the time I write this. I write to save someone in the future from the hours of debugging and … Continue reading

Posted in midlength | Tagged , , , , | Comments Off on Pygtk: reparented windows responding to size allocations