maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   PyFret a Python/Qt4 (Maemo) App/Example (https://talk.maemo.org/showthread.php?t=37089)

go1dfish 2009-12-13 23:35

PyFret a Python/Qt4 (Maemo) App/Example
 
PyFret is a little app I wrote last year in Python/PyQt4 to help myself learn music theory, and guitar scales.

http://tunetrack.net/media/pyfret/pyfret-maemo-1.tar.gz

You will need to install pyside-qt4-ui for this to work on your n900

Run pyfret.py for the desktop version (which will run, but is rather unusable on the n900), run pyfret-maemo.py for the Maemo version.

It generates ASCII fretboard diagrams of scale/chord positions. Originally I built the app for Linux/Mac/Windows, you can find my old builds for these platforms here:

http://tunetrack.net/media/pyfret/pyfret-mac.zip (universal)
http://tunetrack.net/media/pyfret/pyfret-win.zip
(Note these builds are old, pyqt4 based, and do not include the maemo code)

After receiving my n900 last week, I spent a day porting it to PySide/Maemo5 and I'm pretty happy with the results so far. I haven't seen very many Python/Qt4 examples for maemo, so as promised I am posting it here as my gift to the Maemo community, under python license.




The desktop and maemo UI's share many of the same custom widgets, and I think this is a fairly realistic example of the type of code reuse you can expect to see between a desktop and mobile qt application.

The maemo specific UI code is in ui/maemoqt4/
Generic Qt4 UI code is in ui/qt4/

Let me know what you think, patches/improvements welcome. Would really like to see a fancy fretboard renderer to replace the current ASCII display

edgedemon 2009-12-13 23:44

Re: PyFret a Python/Qt4 (Maemo) App/Example
 
Will study this and see what I can learn...

Thanks for this


All times are GMT. The time now is 07:13.

vBulletin® Version 3.8.8