Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4422

K5 Python and PyGTK for Kindle Paperwhite

$
0
0
Hi,

I couldn't find already packaged PyGTK for Kindle, so I decided to do it on my own. And I've just got PyGTK running on my Paperwhite.

I've used latest Debian sid armel packages. There is GTK+ provided (and few others) despite of Kindle having its own version - I was too lazy to recompile everything to fix missing symbols issues.

All symlinks and hard links in package are dereferenced, which means that it can be safely unpacked on /mnt/us, but it also means that there are copies instead of links and they take more space.

Download: http://dosowisko.net/kindle/python.tar.gz

Usage:

Unpack python.tar.gz package in /mnt/us/extensions (or if you're in USB disk mode - in /extensions). If you really want to, you can place it somewhere else, but you'll need to tweak paths in pythonenv file.

You can setup environment with ". pythonenv" command. After that you can just call "python", or run python files just like any other executable. There's one test file bundled - just type "./test.py" to run it.

(please note that windows have to have proper X11 class names in order to be correctly displayed by Awesome - refer to http://www.mobileread.com/forums/sho...hp?t=162022#10 for more info)

It probably won't work on any other Kindle than Paperwhite, but you can still try ;)

Cheers

Viewing all articles
Browse latest Browse all 4422

Trending Articles