2017-09-21 9:09 GMT+02:00 Christophe Sadoine <[email protected]>: > Hello, > > As the title says, I have a c application and I would like to let the > user extend it with plugins. > I can do it in c of course, but I wonder if I can also do it with python? > > So what I need first, is a way to pass an Evas/Efl Object Pointer to > the python api, > And then it would be nice to be able to manipulate in c the objects we > created in the bindings. > > Has this been done or is it easily doable? >
yes, it's doable using python-efl. And it is used in edgar (an E module that load python gadgets). You can see the source at: https://git.enlightenment.org/enlightenment/modules/edgar.git/tree/src/e_mod_edgar.c In that source file you should find everything is needed to load python modules from C (your plugins) and to export some C functions to PY (your plugins API) > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
