This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9341 - Rbutil - testplugin with python and PyQt
Attached to Project:
Rockbox
Opened by Dominik Wenger (Domonoky) - Saturday, 30 August 2008, 21:28 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 11 January 2012, 21:38 GMT+2
Opened by Dominik Wenger (Domonoky) - Saturday, 30 August 2008, 21:28 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 11 January 2012, 21:38 GMT+2
|
DetailsHi.
i made a crude attempt to make a testplugin for rbutil, which embeddes python with PyQt. The idea is, to use such a technic to allow the devs of Rockbox Center to extend rbutil with their new ideas in python plugins. This patch is very hacky, and only an attempt to prove that it is posssible. To compile it, you need Python and PyQt. Adjust the paths in rbutil/rbutilqt/plugins/testplugin.pro to point to your Python installation. Also make sure you have the exact same Qt version for rbutil as the version used by your copy if PyQt. Then just build rbutil normally, and do a "qmake && make" in the plugins dir. |
This task depends upon
Closed by Dominik Riebeling (bluebrother)
Wednesday, 11 January 2012, 21:38 GMT+2
Reason for closing: Out of Date
Additional comments about closing: no activity since years.
Wednesday, 11 January 2012, 21:38 GMT+2
Reason for closing: Out of Date
Additional comments about closing: no activity since years.
Exports the settings object to the Plugin, and exports one function of the settings object to Python. (current mountpoint)
now the patch is hopefully without dublicates..
It now executes a testplugin.py file in the same dir as the plugin .so/.dll is.
This is very good for testing and fiddeling with the Python part. :-)
There is a example python file in the plugins dir.
I also extracted the rbsettings to python binding into a extra file. So it can easily reused by other python plugins.
And i added a few more rbsettings functions to python.
EDIT:
add missing header