Accessing PenTablet coordinates from PyGTK

Andres Salomon dilinger at queued.net
Fri Feb 29 12:41:24 EST 2008


On Fri, 29 Feb 2008 12:08:41 -0500
"Patrick Dubroy" <pdubroy at gmail.com> wrote:

[...]
> I've tried setting SendCoreEvents to false, and then creating a GTK
> widget and registering for extension events. This allows to receive
> motion events from the PenTablet, but the x and y values in the event
> object are "inf" and "nan". Anybody know why this would be? Any
> suggestions?
> 

Have you tried using a kernel from the master branch?  In that, the PT
coordinates are ABS by default.


> Apparently there used to be a method gdk.Window.input_get_pointer that
> would allow you to query the location of the pointer for XInput
> devices. However, this method appears to be gone in the current
> version of GTK. Has it moved somewhere?
> 
> Pat
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel



More information about the Devel mailing list