If possible I want to catch pressure sensitive input from a Wacom tablet in Python. Are there any Python libraries available that can do this?
4 回答
You could perhaps take a look at the software described here. It is a gnome applet, written in Python.
From the web site:
"The gnome wacom applet is a small gnome panel applet that shows how much pressure is being applied to your wacom tablet by the current device. Clicking on the panel icon brings up a dialog allowing you to select a different device and check what pressure and tilt information is being recieved from it. This dialog also contains a small drawing test area to give your pen a quick test."
使用 PySide(QT 的包装器)的 QTabletEvent:http ://www.pyside.org/docs/pyside/PySide/QtGui/QTabletEvent.html#PySide.QtGui.QTabletEvent
For Mac OS X:
https://bitbucket.org/AnomalousUnderdog/pythonmactabletlib
A small Python library to allow Python scripts to access pen tablet input data in Mac OS X.
The library exists as plain C code compiled as a dynamic library/shared object. It interfaces with the Mac OS X's API to get data on pen tablet input.
Then, Python scripts can use ctypes to get the data.
Send me a message if you have any problems with it.