(self, instance, parent)
| 26 | super(InstancesTree, self).__init__(**kwargs) |
| 27 | |
| 28 | def append_instance(self, instance, parent): |
| 29 | item = gui.TreeItem(instance.variable_name) |
| 30 | if parent == None: |
| 31 | parent = self |
| 32 | item.instance = instance |
| 33 | item.onclick.do(self.on_tree_item_selected, js_stop_propagation=True) |
| 34 | parent.append(item) |
| 35 | return item |
| 36 | |
| 37 | def select_instance(self, node, instance): |
| 38 | if not hasattr(node, 'attributes'): |
no test coverage detected