Benutzer-Werkzeuge

Webseiten-Werkzeuge


python:emenu

emenu - openmoko program launcher

This launcher was intended to use it with the hardware keys of the Openmoko phones. You can define own xml files for any of your target actions. Perhaps you will launch a other menu when you push the power or aux button. For example ⇒ pyemenu.py aux.xml.

emenu is written in python and in gtk.

aux.xml

<?xml version="1.0" ?>
<list>
    <program
        title = "Take Screenshot"
        execute = "gpe-scap"
        />
    <program
        title = "Rotate"
        execute = "rotate"
        />
    <program
        title = "Platzhalter"
        execute = "print 'test'"
        />
    <program
        title = "Platzhalter2"
        execute = "print 'test'"
        />
</list>

You can define as many commands as you like. You can change the max value in the program code with the variable maxlist. It will be set by default to 5. That will fit good on the display.

Problems

It's usable, but it have not the best start time. So i published it in the hope that anybody needs such a tool ;)

Files

Images

python/emenu.txt · Zuletzt geändert: 2014/03/16 18:08 von 127.0.0.1