Ejemplo n.º 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()
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 4
0
 def on_tree_tree_item_menu(self, evt):
     mnu = uimanager.get().resource.LoadMenu("node_menu")
     self.tree.PopupMenu(mnu, evt.Point)
Ejemplo n.º 5
0
 def on_tree_tree_item_menu(self, evt):
     mnu = uimanager.get().resource.LoadMenu("node_menu")
     self.tree.PopupMenu(mnu, evt.Point)
Ejemplo n.º 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()