Scripter2 (Project): Difference between revisions
m (→Hints) |
(→Hints) |
||
Line 20: | Line 20: | ||
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 | 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 | Ale : | ||
* i've been playing around with pybind11 https://github.com/aoloe/cpp-pybind11-playground . | |||
* The advantage in pybind11 is that it uses modern c++ features instead of "inventing" a markup language you have to use to decorate your c++ code. | |||
boud (for Krita) : | boud (for Krita) : |
Latest revision as of 08:57, 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 in kde - 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 :
- i've been playing around with pybind11 https://github.com/aoloe/cpp-pybind11-playground .
- The advantage in pybind11 is that it uses modern c++ features instead of "inventing" a markup language you have to use to decorate your c++ code.
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