Exemple #1
0
 def on_properties_selected(self, evt):
     dlg = uimanager.get().prepare_xrc_dialog(
         node_properties.NodeProperties,
         node=self.tree.GetItemPyData(self.tree.Selection))
     dlg.AffirmativeId = xrc.XRCID("ok")
     dlg.EscapeId = xrc.XRCID("cancel")
     dlg.ShowModal()
Exemple #2
0
 def on_ok_clicked(self, evt):
     for tag in self.removed_tags:
         self.node.tags.remove(tag)
     for tag in self.added_tags:
         self.node.tags.append(tag)
     if len(self.added_tags) or len(self.removed_tags):
         uimanager.get().top_level.file.modified = True
     self.Destroy() # From this place Close does not work
Exemple #3
0
 def on_ok_clicked(self, evt):
     for tag in self.removed_tags:
         self.node.tags.remove(tag)
     for tag in self.added_tags:
         self.node.tags.append(tag)
     if len(self.added_tags) or len(self.removed_tags):
         uimanager.get().top_level.file.modified = True
     self.Destroy()  # From this place Close does not work
Exemple #4
0
 def on_tree_tree_item_menu(self, evt):
     mnu = uimanager.get().resource.LoadMenu("node_menu")
     self.tree.PopupMenu(mnu, evt.Point)
Exemple #5
0
 def on_tree_tree_item_menu(self, evt):
     mnu = uimanager.get().resource.LoadMenu("node_menu")
     self.tree.PopupMenu(mnu, evt.Point)
Exemple #6
0
 def on_properties_selected(self, evt):
     dlg = uimanager.get().prepare_xrc_dialog(node_properties.NodeProperties, node=self.tree.GetItemData(self.tree.Selection))
     dlg.AffirmativeId = xrc.XRCID("ok")
     dlg.EscapeId = xrc.XRCID("cancel")
     dlg.ShowModal()