Skip to content

Commit

Permalink
Update tchMaterial-parser.pyw
Browse files Browse the repository at this point in the history
  • Loading branch information
wuziqian211 committed Nov 5, 2023
1 parent a9b6155 commit c94156c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tchMaterial-parser.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ url_text.pack(padx=int(15 * scale), pady=int(15 * scale)) # 设置水平外边

# 创建右键菜单
context_menu = tk.Menu(root, tearoff=0)
context_menu.add_command(label="剪切Ctrl + X", command=lambda: url_text.event_generate("<<Cut>>"))
context_menu.add_command(label="复制Ctrl + C", command=lambda: url_text.event_generate("<<Copy>>"))
context_menu.add_command(label="粘贴Ctrl + V", command=lambda: url_text.event_generate("<<Paste>>"))
context_menu.add_command(label="剪切 (Ctrl + X)", command=lambda: url_text.event_generate("<<Cut>>"))
context_menu.add_command(label="复制 (Ctrl + C)", command=lambda: url_text.event_generate("<<Copy>>"))
context_menu.add_command(label="粘贴 (Ctrl + V)", command=lambda: url_text.event_generate("<<Paste>>"))
# 绑定右键菜单到文本框(3 代表鼠标的右键按钮)
url_text.bind("<Button-3>", lambda event: context_menu.post(event.x_root, event.y_root))

Expand Down

0 comments on commit c94156c

Please sign in to comment.