Re: buttom script



On 03/01/2012 11:58 AM, Murray Cumming wrote:
On Mon, 2012-02-20 at 17:13 +0100, Alaney Dória wrote:
Hi

Can anyone tell me where the python execution code it's executed for the
bottom events, and how it works?
Here is the code:
http://git.gnome.org/browse/glom/tree/glom/python_embed/glom_python.cc#n388
It is called from here:
http://git.gnome.org/browse/glom/tree/glom/mode_data/box_data.cc#n353

It uses these Python classes, defined in C++ via boost:
http://git.gnome.org/browse/glom/tree/glom/libglom/python_embed

I am not a fan of the boost::python API but it is (slightly) better than
using the Python C API.

Here is a simple test case that uses that:
http://git.gnome.org/browse/glom/tree/tests/python/test_python_execute_script.cc

Thanks



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]