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