xmindltd / xmind-sdk-python Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hello!
Thank you for your project.
Currently, I can't find interface to Floating Topics in the XMind.
Best regards,
Artem
When saving workbook by using workbook.save, only the content.xml saved in xmind file. Other references are lost.
When I downloaded and followed the install procedrue, it was ok.
When I put the first 3 lines of example.py imports, it was ok.
When I put the "w = xmind.load("test.xmind")",
I got:
...
File "C:\Python34\lib\site-packages\xmind-0.1a0-py3.4.egg\xmind\core__init__.py", line 204, in init
AttributeError: 'str' object has no attribute 'decode'" error.
I went to .\xmind-sdk-python-master\xmind\core__init__.py
and change line 204: self.TAG_NAME.decode("utf-8")
to self.TAG_NAME
and re-install xmind-sdk but still get the same error message.
What should I do?
I know XMind itself allows you to save/ export a mindmap as an image file (e.g. BMP or JPEG).
I would be great if the SDK also supported this
Hello
I would like to port this API in VB.Net. In fact there is a C# API (https://xmindapi.codeplex.com/) for XMind but it is under GPL license and for my projects a MIT license is a better fit.
I created a friendly fork (xmind-sdk-vb.net), I guess I should I have asked your agreement before so let me apologize foor this and inform about my intent.
Your agreement would be very appreciated but if for any reason there is no agreement (or an alternative way for my intent) then I will delete this fork.
Best Regards
Michel Kern
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
Can someone give an example of how I might add access to topic timestamp and modified-by?
Is it possible to set topic color using xmind-sdk-python? If yes, please provide example
C:\ub16_prj>python yk-demo-xmind-sdk.py
Traceback (most recent call last):
File "yk-demo-xmind-sdk.py", line 19, in
t1=TopicElement() # create a new element
File "C:\Users\andyy\AppData\Local\Programs\Python\Python37\lib\site-packages\xmind\core\topic.py", line 39, in init
self.addIdAttribute(const.ATTR_ID)
File "C:\Users\andyy\AppData\Local\Programs\Python\Python37\lib\site-packages\xmind\core_init_.py", line 274, in addIdAttribute
self._node.setAttribute(attr_name, id)
File "C:\Users\andyy\AppData\Local\Programs\Python\Python37\lib\xml\dom\minidom.py", line 741, in setAttribute
attr.ownerDocument = self.ownerDocument
AttributeError: ownerDocument
C:\ub16_prj>
Can anyone give a full example about how to create,access and modify a typical xmind file? just like the examples in https://pypi.python.org/pypi/mekk.xmind/0.5.0. or http://bitbucket.org/Mekk/mekk.xmind/
I only find addMarker in topic.py, but how to modify a topic's marker?
For example, i want to replace all the topices' flag to priority.
i want to
But i don't find how to delete a marker from topic
In the other hand, when i use recursion to add topic.addMarker, i get the decode error. I don't know why?
File "C:/Users/ayan/IdeaProjects/XmindReader/XmindReader-GenerateReadme2.py", line 57, in findTestCase
topic.addMarker(MarkerId(newMarkerID))
File "C:\Python34\lib\site-packages\xmind-0.1a0-py3.4.egg\xmind\core\topic.py", line 133, in addMarker
File "C:\Python34\lib\site-packages\xmind-0.1a0-py3.4.egg\xmind\core\markerref.py", line 131, in init
File "C:\Python34\lib\site-packages\xmind-0.1a0-py3.4.egg\xmind\core\mixin.py", line 25, in init
File "C:\Python34\lib\site-packages\xmind-0.1a0-py3.4.egg\xmind\core__init__.py", line 204, in init
AttributeError: 'str' object has no attribute 'decode'
Any plans to add summary topics? Has anyone else in the community needed Summary topics?
Along similar lines anyone actively developing on their own fork? [I'm being lazy and not searching through all 46 current forks.]
Anyone got an example how to do this? I just found it in java
Also when i programmatically edit mindmaps with images they are not displayed anymore after saving the file
C:\ub16_prj>python yk-demo-xmind-sdk.py
Traceback (most recent call last):
File "yk-demo-xmind-sdk.py", line 48, in
w.addSheet(s2) # the second sheet is now added to the workbook
AttributeError: 'WorkbookDocument' object has no attribute 'addSheet'
C:\ub16_prj>
I hope this might help someone out there ...
file topic.py. line 263: if index < 0 or len(topic_list) >= index: # THIS IS WRONG
should be
if index < 0 or index >= len(topic_list): #THIS IS CORRECT
or
if index < 0 or len(topic_list) <= index: #THIS IS CORRECT
[this is a mild bug :]
-- in normal situation, it will fail to "insertBefore()" and instead it will do "append()", when adding a new topic.
-- in unusual situations, if one tries to "insertBefore()" a new topic with a (mistakenly) large index, it will crash instead of fail over to "append()"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.