And now for something completely different: a Windows desktop application! Open this gist for the code.
This example uses a python wrapper around Wacom’s Wintab/Feel driver to read a Wacom stylus input, and draws a representation of it onto a Tkinter canvas. Each circle represents a point, and its radius is proportional to the pressure of the stylus.
To run the application, you will need: a (Wacom?) tablet or a tablet PC, Microsoft Windows (I tried it with 8.1), Python 3.3, cgkit 2, the code from this repo. To actually run it, open a command prompt where you put the python files, then execute:
python test.py
A stylus input is really useful for graphic applications, because it features subpixel resolution (more precise than screen pixels) and pressure data.
Based on the code and suggestions found in this blog post. Adding a custom function to the Tkinter main loop is documented here, drawing a circle onto the canvas here.