Using Python for a Wacom tablet on Mac & Linux - python

I am shortly going to buy a Wacom Bamboo Pen&Touch, and I'd like to be able to access it from Python, preferably using PyQt. I've found a Python module for accessing it under windows (cgkit/wintab) and I've seen Python code for accessing it using GTK (GnomeTabletApps).
Is there an equivalent for Mac? The Cocoa documentation provided by Wacom is way beyond me.

PySide's QTabletEvent works on Mac. I have also used it on Ubuntu.
http://www.pyside.org/docs/pyside/PySide/QtGui/QTabletEvent.html#PySide.QtGui.QTabletEvent

Related

How to do Relative GUI Development in Python?

I am used to making android applications and I would like to also make desktop applications. I would prefer to use Python. Is there a module that allows relative layout to better fit all monitors? I have tried pyside, but I could only get absolute. I saw the Kivy module as well, but I didn't want to devote a lot of time to it if it isn't what I need. I am developing on a windows platform for windows, but plan to possibly port it to linux and mac as well. I also would prefer to use Python 3.
I would personally recommend Tkinter. It works on Windows, Linux, and Mac, and is simple enough such that you can pick it up in a weekend. There is plenty of support and documentation as well.
Consider wxPython as well--it would satisfy your needs.

Using PyParallel in Windows XP

I have successfully implemented the PyParallel module in both Linux and Mac OSX as part of a large application to interface with a sensor I am developing.... I am now attempting to use this application on an instance of Windows XP. I have found several references (including right from the PySerial/PyParallel group) that:
The windows version needs a compiled extension and the giveio.sys driver for Windows NT/2k/XP. It uses ctypes to access functions in a prebuilt DLL.
However, I don't know what "a compiled extension" requirement is. And, I can't seem to get givio.sys to work. I obtained giveio.sys here and followed the recommendations, but LoadDrv.exe fails to "start" the service (it does "install", however).
I cannot find specific examples online of getting PyParallel working on Windows XP. Since PyParallel is "thoroughly" integrated into the application and is working on both Linux and Mac OSX, I'd prefer not to use a different module -- especially since PyParallel is great to not require root/administrator privileges to utilize.
I was having trouble with giveio.sys and LoadDrv.exe as well.
There is a handy installer that does it all automatically:
http://sourceforge.net/projects/pyserial/files/pyparallel/giveio/

How to control Enttec Open DMX USB via Python?

I'm wondering is that possible to control lights connected to Enttec Open DMX USB via Python shell. If it is, how to?
The Open Lighting Project (formerly known as opendmx) provides a Python API, as part of their Open Lighting Architecture (OLA), for use the OpenDMX USB on OSX and Linux. If you're on Windows then I've not found anything apart from the code from Enttec's website which uses the FTD2XX.DLL libraries.
However it should be noted that one cannot use normal serial based libraries (pyserial etc). Basically OLA either needs to use a special kernel module on Linux, or use the generic FTDI non-serial kernel driver in combination with libftdi on Mac or Linux - for details see their device specific page. There is now pre-built support for Raspberry Pi's on the OLA website.
The communication and protocols used are completely different from Enttec Pro range (which one can just control using simple serial commands with something like pyserial, though OLA also talks to them too).
I know this is quite an old post, however DmxPy has worked very well for me the last few months. It only works for Python 2 but I know there's some Python 3 ports out there.
It's stupid simple to use. I personally use it in my companies quality control software. While it only work for DMX (not RDM) I think it's much easier to use than OLA's Python Wrapper. It works flawlessly with our ENTTEC as well!
UPDATE: Here's my Python 3 port: https://github.com/trevordavies095/DmxPy
I had the exact same problem, so I wrote a simple python programm for all those that are running windows; have a look: https://github.com/Coronon/PyOpenDmxUsb
It uses a C# Server (Because their C# interface was the only one that worked for me) and a Python Client and is super easy to use.
It is compatible with the non pro version too. (The Pro Version is way easier to use and I would use the AcceptedAnswer instead [But the normal one isnt supported])
Edit: This may be 'advertisement' but my project is Open-Source and super easy to use, so I believe this can be useful to others :)

Python IDE for Windows 8 RT?

Is there a python ide for Windows RT? Or is there a way to download 3rd party IDEs that can work on RT? There is one in the market place called "Python 3 for Metro" but it is nothing like the IDE I use on my desktop called "PyScripter".
Anyone have any advice? Maybe decent online IDEs?
You could look into Code Writer.
Time is gone a whlie.
But now it's possible, to run Python 2.7 on Surface RT.
All what you have to do is to set you Surface rt in developermode, as followed:
https://github.com/VNNGYN/Windows-RT-8.1-Development-Tool
you than get Surface rt run in test mode.
In testmode you can sign all the already ported application, there are avaible on net.
To sign the appclication with a cert, you can use:
https://github.com/VNNGYN/Windows-RT-8.1-Development-Tool/wiki/How-do-I-sign-an-application%3F
than all the application, like python 2.7 can run under Standard mode.
https://github.com/VNNGYN/Windows-RT-8.1-Development-Tool/wiki/How-do-I-sign-an-application%3F
and there you will find Notepad++, which is the best to generate python scripts
enjoy

Accessing a webcam with Python 3.X

For a school project I am using a Raspberry Pi to detect certain colours in a webcam image. However, I can't seem to find any way to access the webcam using Python 3.X. Are there any libraries out there that work with python 3.X that work for both windows and linux (I'm creating the program on windows 7 but going to be using it on the R-Pi)?
If not, I suppose I could end up settling for Python 2.7 simply because the R-Pi has both versions installed on it (Although I don't know 2.7 so it may not go too well).
There are several ways to do this:
You can use OpenCV which has support for getting data from a webcam and there are Python wrappers for it;
gstreamer has python bindings too;
Also, on GNU/Linux, you can use v4l2.

Categories