9

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

4 回答 4

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."

Google is your friend

于 2008-09-05T11:21:35.610 回答
3

使用 PySide(QT 的包装器)的 QTabletEvent:http ://www.pyside.org/docs/pyside/PySide/QtGui/QTabletEvent.html#PySide.QtGui.QTabletEvent

于 2011-02-23T07:36:18.837 回答
2

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.

于 2012-05-07T02:47:32.463 回答
1

PyGObject 中的压力数据可用于在多个平台上访问 Gtk+ 3,尽管“Windows 用户可能仍希望继续使用 PyGTK,直到发布更方便的安装程序。” [引文] 压力敏感设备产生的运动事件对象将携带压力数据。

于 2015-02-22T08:15:26.860 回答