xmindltd / xmind-sdk-python

MIT License
428 stars 179 forks source link

How to read a marker in sdk #19

Open kdlsw opened 8 years ago

kdlsw commented 8 years ago

I know to set a marker, as the examle shows, is topic.addMarker("yes"). But how to read one? I tried topic.getMarker() not working. And... besides that, is there any documents, mannual or handbook for this SDK? It is so hard to find some info, basically all I got is the example.py.

Please, any suggestion will be appreciated! Thanks

emanlove commented 8 years ago

Reading the code it looks like it should be getMarkers() with a plural 's' [xmind-sdk-python/xmind/core/topic.py]. You might try getMarkerId() [xmind-sdk-python/xmind/core/markerref.py] once you have the marker list and going through it one marker at a time.

kdlsw commented 8 years ago

@emanlove This document is a savior, I have been looking for this for quite a while. Thank you very much!

deladriere commented 6 years ago

@kdlsw can you post an example I just can get it to work with the reference given by @emanlove thx !