copy node and links

This commit is contained in:
Huy Pham 2019-12-19 16:15:29 -08:00
parent 395f8134dc
commit c1755afb2f
4 changed files with 69 additions and 6 deletions

View file

@ -30,6 +30,7 @@ class MenuAction:
def __init__(self, app, master):
self.master = master
self.app = app
self.canvas = app.canvas
def cleanup_old_session(self, quitapp=False):
logging.info("cleaning up old session")
@ -155,3 +156,11 @@ class MenuAction:
self.app.core.enable_throughputs()
else:
self.app.core.cancel_throughputs()
def copy(self, event=None):
logging.debug("copy")
self.app.canvas.copy()
def paste(self, event=None):
logging.debug("paste")
self.app.canvas.paste()