Archive for the ‘Linux’ Category
I have noticed a lot of tutorials dealing with Multi-Touch in C++, C#, or AS3. There seems be a lack of Python tutorials, but there is a growing number of people wanting to use Python for Multi-Touch apps. I intend to change that with a set of tutorials to teach people how to write Multi-Touch Apps in Python, starting with setting up the environment, all the way to writing a PhotoApp clone with Python-Lux(which is not released yet, and i’m not going to tell you when it will be released in any of these guides. If thats all you came for, sorry I disappointed you).
These tutorials assume basic knowledge of Python, and at times may use some obscure feature of the Standard Library. If you have any questions regarding something you don’t understand, or anything else about Python Development and such, feel free to email me at xelapond @ gmail . com, or PM me on nuigroup(username xelapond). I also usually hang around IRC, #nuigroup, username xelapond. I am happy to assist you with any problems you are having, and I would love feedback on how well this tutorial goes.
You may have seen random sporadic posts like “A post for my rss reader to eat”, or “I know it will work this time, stupid rss parser keeps looping”. Well, I have been writing an RSS reader, which runs on the small LCD I got at the Rotary Auction(see this post for details on that). Anyway, recently a friend dumped an old Compaq laptop on me, with a broken screen(including hinges), and a messed up CD Drive. It has Ubuntu on it, so I figured it was good enough and could make an RSS reader. I hooked it up to the small cabinet LCD over S-Video, wrote some software, and now have a cool little RSS reader, that sits there day and night, churning out RSS feeds. Ill post some pics and a video(and the code) when I get back.
I have been coding a new multi-touch mouse driver for GNU/Linux, in Python of course. I got the basic tapping down, but I wanted to go further. I though it would be cool to be able to put all five fingers down and have it trigger the Compiz scale plugin, or similar. I looked around for a non hackish way of doing it, and was appalled by the [lack] of documentation, and even support, for interfacing Python to Compiz Fusion.
So, what would any DIY Python/GNU/Linux freak do? Write his own binding of course! I wrote pyCompiz just for this purpose. Its really simple, you can call any compiz plugin in one line or less:D To trigger the scale plugin: compiz.call(‘scale’, ‘initiate_key’). I have it hosted on a Google Code page, for anyone interested. I don’t plan on updating it very often, only for bug fixes. There really aren’t any features that could be added, its such a simple thing. Anyway, here is the link. Its under the GPLv2 License, so anyone can use it. Happy Hacking!