Skip to content

Commit

Permalink
V0.23.4 New Nodes Now Added at Top of Treeview
Browse files Browse the repository at this point in the history
  • Loading branch information
domhnallmorr committed Jun 19, 2022
1 parent 7a8ee86 commit 78b8149
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Binary file modified src/__pycache__/paste_windows.cpython-39.pyc
Binary file not shown.
Binary file modified src/__pycache__/sidebar_tree.cpython-39.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion src/sidebar_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def add_new_node(self, mode='new', event=None):
node = simpledialog.askstring(title="New Node", prompt="Node Name:".ljust(100), initialvalue=initialvalue)
if node:
if mode == 'new': #add a new node
iid = self.insert("",'end', text=node, image=self.mainapp.folder_icon2)
iid = self.insert("",0, text=node, image=self.mainapp.folder_icon2)
self.nodes[node] = iid
self.node_iids[iid] = node
self.links[iid] = {}
Expand Down
9 changes: 6 additions & 3 deletions src/tk_path_finder_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,22 @@
"I00A": {
"Testing": "C:\\Users\\domhn\\Documents\\Python\\Testing",
"3.9": "C:\\Python39"
}
},
"I00E": {}
},
"node_iids": {
"I001": "Default",
"I00A": "Python",
"Some node": "Some node",
"new node": "new node 1"
"new node": "new node 1",
"I00E": "sdsfdf"
},
"nodes": {
"Default": "I001",
"Python": "I00A",
"Some node": "Some node",
"new node 1": "new node"
"new node 1": "new node",
"sdsfdf": "I00E"
},
"text_editor": "C:\\Program Files (x86)\\Notepad++\\notepad++.exe",
"open_with_apps": {
Expand Down

0 comments on commit 78b8149

Please sign in to comment.