Rockbox

  • Status Closed
  • Percent Complete
    100%
  • Task Type Patches
  • Category Rbutil
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by Dominik Wenger - 2008-08-30
Last edited by Dominik Riebeling - 2012-01-11

FS#9341 - Rbutil - testplugin with python and PyQt

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.

Closed by  Dominik Riebeling
2012-01-11 20:38
Reason for closing:  Out of Date
Additional comments about closing:  

no activity since years.

Dominik Wenger commented on 2008-08-31 13:03

Little improvement for the patch.
Exports the settings object to the Plugin, and exports one function of the settings object to Python. (current mountpoint)

Dominik Wenger commented on 2008-08-31 13:12

Up,
now the patch is hopefully without dublicates..

Dominik Wenger commented on 2008-08-31 17:36

new Version, it now re-loads he plugin before calling run on it. This prevents crashed in th Python part ofthe plugin.

Dominik Wenger commented on 2008-09-04 20:16

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...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing