IDLE has the contextual menu right-click bug on mac (Tk problem)
There is already a patch issued for this problem: issue 10404
I’ve downloaded the patch (issue10404-idle_no_context_menus.txt) – where and how do I install it?
Thanks in advance.
IDLE has the contextual menu right-click bug on mac (Tk problem) There is already
Share
Find the
EditorWindow.pyfile in your filesystem (find / -name EditorWindow.pyif you’re completely in the dark about where it might live);cdinto it’s containing directory, then run:If it succeeds, take off the
--dry-runand re-run the command. If it didn’t succeed, try adding-P2,-P3or-P1. (The-P<n>says to ignore the<n>directories named in the patch, and I can never remember exactly how it works, so I just fiddle with--dry-runand the options until it works. 🙂If the patch doesn’t cleanly apply because your version doesn’t match the ‘pre’ version in the patch file exactly, you can just edit the file and “apply the diff by hand” — make the same kinds of changes it does, but accounting for whatever might have changed. Sometimes it is just an indentation level that changed, so it could be easy, sometimes the entire logic is different, and it is pointless to try to make the patch fit.