-
- newItem = tree.InsertNode(parentLeaf, parent, xxx.node, nextItem)
- else: # comment node
- newItem = tree.InsertNode(parentLeaf, parent, xxx.node, nextItem)
+ # Else, set label if exists to class name
+ elif 'label' in xxx.treeObject().allParams:
+ label = className
+ if label[:2] == 'wx': label = label[2:]
+ xxx.treeObject().set('label', label.upper())
+ # For comment nodes, simply add node
+ newItem = tree.InsertNode(parentLeaf, parent, xxx.node, nextItem)