Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to populate tree from dictionary #73

Closed
wants to merge 1 commit into from

Conversation

dterg
Copy link

@dterg dterg commented Apr 27, 2017

After creating the tree object, calling import_tree_dict and passing a hierarchical dictionary will populate the tree with the nodes.

tree = Tree()
jsonData = {'id': 'root', 'name': 'root', 'children': [{'id': 'child1', 'name':'child1', 'children':[]},{'id': 'child2','name':'child2', 'children':[]}]}
tree.import_tree_dict(jsonData)
tree.show()

After creating a tree object, populate the tree from a python dictionary
@ocervell
Copy link

What's preventing this from being merged ?

@ocervell ocervell mentioned this pull request Nov 7, 2017
@ocervell
Copy link

ocervell commented Nov 7, 2017

@caesar0301 Could you please look at this and merge it ? A few people are waiting for this feature to be merged.

@caesar0301
Copy link
Owner

@ocervell Yes, I am designing a unified interface to manipulate different formats. See #85. Thanks @dterg ahead. Your code will be merged, maybe, in a different way.

@caesar0301 caesar0301 closed this Dec 1, 2017
@jiwidi
Copy link

jiwidi commented May 2, 2019

Why isn't this merged? #85 has been open since dec 2017 and the feature is not yet implemented. We have a working solution here, why not merging if you can't continue with #85?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants