MCPcopy Index your code
hub / github.com/LCBOWER33/StegoScan / add_context_menu

Function add_context_menu

StegoScan.py:1332–1354  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

1330
1331
1332def add_context_menu(entry):
1333 menu = tk.Menu(entry, tearoff=0)
1334
1335 def cut():
1336 entry.event_generate("<<Cut>>")
1337
1338 def copy():
1339 entry.event_generate("<<Copy>>")
1340
1341 def paste():
1342 entry.event_generate("<<Paste>>")
1343
1344 menu.add_command(label="Cut", command=cut)
1345 menu.add_command(label="Copy", command=copy)
1346 menu.add_command(label="Paste", command=paste)
1347
1348 def show_menu(event):
1349 try:
1350 menu.tk_popup(event.x_root + 5, event.y_root + 5)
1351 finally:
1352 menu.grab_release()
1353
1354 entry.bind("<Button-3>", show_menu)
1355
1356
1357def create_gui():

Callers 1

create_guiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected