Final version of rich_tree
This commit is contained in:
parent
0d8df69d45
commit
c7e16be1f6
|
|
@ -300,7 +300,7 @@ class PreParser:
|
||||||
self.tree_view = Tree(prefix+stripped_name+suffix)
|
self.tree_view = Tree(prefix+stripped_name+suffix)
|
||||||
for p, l in self.parse_import_list():
|
for p, l in self.parse_import_list():
|
||||||
try:
|
try:
|
||||||
self.tree_view.add(self.global_dict_of_imports[p].rich_tree(suffix=" (Line:{})".format(l), force=True, strip_prefix=self.base_path))
|
self.tree_view.add(self.global_dict_of_imports[p].rich_tree(suffix=" (Line:{})".format(l), force=True, strip_prefix=strip_prefix))
|
||||||
except KeyError: # The key isn't in the global dict yet
|
except KeyError: # The key isn't in the global dict yet
|
||||||
self.tree_view.add(Tree(prefix+p+suffix+" !!"))
|
self.tree_view.add(Tree(prefix+p+suffix+" !!"))
|
||||||
unparsed = True
|
unparsed = True
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue