Just as a small note to anyone trying to get this to work, the fpit driver has a bug in every version of ubuntu up to and including hardy; upgrade to intrepid and you get fully a functional touchscreen again, using this xorg.conf:

Section "InputDevice"
    Identifier     "touchscreen"
    Driver         "fpit"
    Option         "Device"    "/dev/ttyS1"
    Option        "BaudRate"    "9600"
    Option        "MaximumXPosition"    "4096"
    Option        "MaximumYPosition"    "4096"
    Option        "MinimumXPosition"    "0"
    Option        "MinimumYPosition"    "0"
    Option        "Passive"
    Option        "SendCoreEvents"
    Option        "TrackRandR" "true"
EndSection

Just don’t try using KDE4 unless slow-motion work sounds appealing :D XFCE is reasonable though, so Xubuntu is an option (and what I’m running on it right now).

Now, on with the PyQT4 coding…