That occurred to me about 5 minutes ago so I did a check to see what happens when I run it without my pad connected.
I get an error stating line 12 stating that Wintab couldn't find context followed by recurring errors about line 1 and context not being open.
This is probably down to Vrav not bothering to catch the errors in the program.
When the tablet is connected, I get the errors listed above about a list index being out of range.
Having thought about it, this is probably down to what Vrav mentioned earlier about hard-coding it for 1024 pressure levels (I think my tablet is 512).
I'm going to have a look at Wintab and context with Python over the next couple of days.
I doubt I'll ever need to use code for reading the tablet in anything I write, either in Construct or just Python, but it would be nice to get it working, with details written here, for those who might find a use for it in the future.
Vrav, before I go digging for myself, how about a 512 pressure version of what you've got, just to see if that's the problem (and how about some error-trapping )
Krush.