Skip to content

Commit 3cf8a3d

Browse files
Update notepad.py
1 parent c5b94af commit 3cf8a3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Notepad/notepad.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ def send_feedback():
332332

333333
menubar.add_cascade(label="Help",menu=Help)
334334

335+
# ======================== Right Click Menu =========================================
336+
335337
m = Menu(root, tearoff = 0)
336338
m.add_command(label ="Select All",accelerator="Ctrl+A",command=select_all)
337339
m.add_command(label ="Cut",accelerator="Ctrl+X",command=cut)
@@ -350,6 +352,8 @@ def do_popup(event):
350352

351353
root.bind("<Button-3>", do_popup)
352354

355+
# ==============================================================================
356+
353357
root.config(menu=menubar)
354358
root.mainloop()
355359

0 commit comments

Comments
 (0)