[Marble-devel] Question about Python bindings for Marble

Eric Parent eric.parent at polymtl.ca
Mon Jul 13 16:06:23 CEST 2009


Hi,

    I am running Kubuntu 9.04 and downloaded the latest source code from 
the subversion repository (procedure on Marble website).

    I noticed some methods of the MarbleMaps class are disabled in the 
Python bindings (SIP files).

For example, the following line:

***
//mt     MeasureTool*       measureTool ();
***

found in "marble/src/bindings/python/sip/MarbleMaps.sip".

Since I need this functionnality, I was wondering if it was due to a bad 
behaviour of the function?

Will this be available soon through Python?

Sorry, I am not an expert in creating Python bindings... My idea of 
solving this issue (an issue to me at least!) was to

1) create a wrapper class in C++ which could allow the use of 
"measureTool()";
2) get it accessible to Python by binding it;
3) create a Python class which inherits from this intermediate, C++ 
class (since it derives from QWidget, I might be able to put it on a GUI 
in Python/Qt);
4) use it !

Any suggestion? Any easy patch?


Thanks,

- Eric



More information about the Marble-devel mailing list