Exemple #1
0
 def refresh_tree(self):
     context = self.get_context_name()
     self.model.clear()
     HaocUtils.setup_tree_model(
         self.model, "%s/data/%s/nodes/%s" %
         (HaocUtils.get_root_path(), HaocUtils.Config.get_ak(), context))
     self.model.setHorizontalHeaderLabels(["%s/" % context])
Exemple #2
0
 def refresh_tree(self):
     self.tree_view.source_model.clear()
     HaocUtils.setup_tree_model(
         self.tree_view.source_model, "%s/data/%s/nodes/" %
         (HaocUtils.get_root_path(), HaocUtils.Config.get_ak()))
     self.tree_view.source_model.setHorizontalHeaderLabels([""])