Tag Archives: python

Python Window Manager, Now With Twisted

And Now for the Big Event Loop Last week I wrote about how to create a window manager in Python and posted code for a simple example window manager. The example I posted was about 260 lines long including comments. … Continue reading

Posted in midlength | Tagged , , , , , | Comments Off on Python Window Manager, Now With Twisted

How to Write a Window Manager in Python

Window Manager of Your Dreams I wrote a few months ago about a bunch of different window managers which I’d investigated. In this post, I’ll present the source code for a new, very basic, window manager written entirely in Python. … Continue reading

Posted in midlength | Tagged , , , , , | 2 Comments

Inline Deferreds in Twisted (Without Yield)

Introduction By buffer of new stuff to blog about is getting low, so today I bring you something I played with a bit last year. After being introduced to Twisted‘s inlineDeferred decorator, I decided to have some fun with that … Continue reading

Posted in midlength | Tagged , , , , | Comments Off on Inline Deferreds in Twisted (Without Yield)

Pseudo Terminals in Python

Summary In this post I’ll show you a Python script which becomes a pseudo terminal so that it can act as a man in the middle between your terminal emulator and a running process.  In my example, the Python script … Continue reading

Posted in long | Tagged , , | 2 Comments

Python: Context-Sensitive Formatting

Introduction Python’s new string formatting syntax, introduced in Python 2.6, provides many advantages over the old %-based formatting.  I’ve set out to extend this string formatting, in order to help developers avoid making silly mistakes like forgetting to quote special … Continue reading

Posted in long | Tagged , , , , , , | Comments Off on Python: Context-Sensitive Formatting