Rockbox

Tasklist

FS#9341 - Rbutil - testplugin with python and PyQt

Attached to Project: Rockbox
Opened by Dominik Wenger (Domonoky) - Saturday, 30 August 2008, 19:28 GMT
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 11 January 2012, 20:38 GMT
Task Type Patches
Category Rbutil
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi.

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, 20:38 GMT
Reason for closing:  Out of Date
Additional comments about closing:  no activity since years.
Comment by Dominik Wenger (Domonoky) - Sunday, 31 August 2008, 13:03 GMT
Little improvement for the patch.
Exports the settings object to the Plugin, and exports one function of the settings object to Python. (current mountpoint)


Comment by Dominik Wenger (Domonoky) - Sunday, 31 August 2008, 13:12 GMT
Up,
now the patch is hopefully without dublicates..
Comment by Dominik Wenger (Domonoky) - Sunday, 31 August 2008, 17:36 GMT
new Version, it now re-loads he plugin before calling run on it. This prevents crashed in th Python part ofthe plugin.

Comment by Dominik Wenger (Domonoky) - Thursday, 04 September 2008, 20:16 GMT
New version.
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

Loading...