#!/usr/bin/env python # Tablet Specification # MAX scan lines of tablet maxX = 32739 maxY = 32745 # Physical length/width of tablet lenX = 5.5 lenY = 4.0 # screen resolution resoX = 1680+1440 resoY = 1050 # the calculation resoRatio = float(resoX)/float(resoY) newY = lenX/resoRatio coor = (maxX,maxY/lenY*newY) print """ wizardpen true 0 0 stylus %(maxX)s %(maxY)s %(maxX)s %(maxY)s """ % dict(maxX=int(coor[0]),maxY=int(coor[1]))