[Marble-devel] Question about Python bindings for Marble

Andrew Manson g.real.ate at gmail.com
Mon Jul 13 20:29:03 CEST 2009


Hi Eric, 

I too know very little about python bindings but I would suggest that you 
create a bug on the bugs.kde.org website. In your case I believe that it 
should be a wishlist bug. 

I'm sure that someone will reply to you soon about this, either here or on the 
bug tracking site. 

- Andrew 

On Monday 13 July 2009 15:06:23 Eric Parent wrote:
> 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
>
> _______________________________________________
> Marble-devel mailing list
> Marble-devel at kde.org
> https://mail.kde.org/mailman/listinfo/marble-devel

-- 
Andrew Manson
Working for Marble Desktop Globe http://edu.kde.org/marble/
Implementing an OSM Annotation layer http://tinyurl.com/OSMMarble
Blog http://realate.blogspot.com


More information about the Marble-devel mailing list