enabled node context delete/copy and edit menu delete in python gui
This commit is contained in:
parent
e0ce29b25a
commit
fc40c8d7bb
4 changed files with 39 additions and 24 deletions
|
@ -101,6 +101,9 @@ class Menubar(tk.Menu):
|
|||
menu.add_command(
|
||||
label="Paste", accelerator="Ctrl+V", command=self.menuaction.paste
|
||||
)
|
||||
menu.add_command(
|
||||
label="Delete", accelerator="Ctrl+D", command=self.menuaction.delete
|
||||
)
|
||||
menu.add_separator()
|
||||
menu.add_command(label="Select all", accelerator="Ctrl+A", state=tk.DISABLED)
|
||||
menu.add_command(
|
||||
|
@ -113,6 +116,7 @@ class Menubar(tk.Menu):
|
|||
|
||||
self.app.master.bind_all("<Control-c>", self.menuaction.copy)
|
||||
self.app.master.bind_all("<Control-v>", self.menuaction.paste)
|
||||
self.app.master.bind_all("<Control-d>", self.menuaction.delete)
|
||||
self.edit_menu = menu
|
||||
|
||||
def draw_canvas_menu(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue