Scripter2 (Project): Difference between revisions
m (issues and hints) |
No edit summary |
||
Line 11: | Line 11: | ||
Ale : scripter 2 is a very elegant solution... but | Ale : scripter 2 is a very elegant solution... but | ||
* it's hard to understand how it works | |||
* it's based on a brilliant but esoteric fork of kross, an unsupported (since 10+ years) library... | |||
not in use anymore - apart ked -. and minikross has never been used by any other project. | not in use anymore - apart ked -. and minikross has never been used by any other project. | ||
and no effort could get to make it work with python3 and Qt5 | |||
=Hints= | =Hints= |
Revision as of 08:35, 15 September 2017
early draft
il y a un scripter 2 que j'ai intégré dans scribus 1.5 et avec lequel il serait facile de créer des dialogues. le problème est que lorsque j'ai intégré le code il marchait à peu près et -- maintenant -- il ne compile plus. il faudrait vraiment que quelqu'un qui s'y mette, mais mes connaissances de python ne sont pas suffisantes (et l'auteur original n'est pas pressé de y travailler). je peux par contre aider pour la partie c++ (même si mes connaissances de c++ et de python ne sont pas exceptionnelles) et la plupart du code du scripter lui-même est du python.
Issues with scripter 2
JL : afaik issues are with updating to Python3 and Qt5.
Ale : scripter 2 is a very elegant solution... but
- it's hard to understand how it works
- it's based on a brilliant but esoteric fork of kross, an unsupported (since 10+ years) library...
not in use anymore - apart ked -. and minikross has never been used by any other project.
and no effort could get to make it work with python3 and Qt5
Hints
boud has tried to get the scripter 2 to work for krita, but failed and implemented an own solution for krita. https://phabricator.kde.org/T1625 . As far as i understood they've built the solution on swig http://www.swig.org
Ale has been playing around with pybind11 https://github.com/aoloe/cpp-pybind11-playground
boud (for Krita) :
- We use sip: create manual bindings to a small wrapper library around krita's internals with a sensible api.
- The plugin is based on what kate http://zaufi.github.io/programming/2014/02/13/kate-cxx-stuff used to have: pâté. https://www.linux-apps.com/p/1126940/
- I did try a couple of other approaches as well