Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6)

Side by Side Diff: Lib/idlelib/PyShell.py

Issue 17532: IDLE: Always include "Options" menu on MacOSX
Patch Set: Created 6 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/idlelib/EditorWindow.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #! /usr/bin/env python3 1 #! /usr/bin/env python3
2 2
3 import getopt 3 import getopt
4 import os 4 import os
5 import os.path 5 import os.path
6 import re 6 import re
7 import socket 7 import socket
8 import subprocess 8 import subprocess
9 import sys 9 import sys
10 import threading 10 import threading
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 menu_specs = [ 815 menu_specs = [
816 ("file", "_File"), 816 ("file", "_File"),
817 ("edit", "_Edit"), 817 ("edit", "_Edit"),
818 ("debug", "_Debug"), 818 ("debug", "_Debug"),
819 ("options", "_Options"), 819 ("options", "_Options"),
820 ("windows", "_Windows"), 820 ("windows", "_Windows"),
821 ("help", "_Help"), 821 ("help", "_Help"),
822 ] 822 ]
823 823
824 if macosxSupport.runningAsOSXApp(): 824 if macosxSupport.runningAsOSXApp():
825 del menu_specs[-3]
826 menu_specs[-2] = ("windows", "_Window") 825 menu_specs[-2] = ("windows", "_Window")
827 826
828 827
829 # New classes 828 # New classes
830 from idlelib.IdleHistory import History 829 from idlelib.IdleHistory import History
831 830
832 def __init__(self, flist=None): 831 def __init__(self, flist=None):
833 if use_subprocess: 832 if use_subprocess:
834 ms = self.menu_specs 833 ms = self.menu_specs
835 if ms[2][0] != "shell": 834 if ms[2][0] != "shell":
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 if tkversionwarning: 1559 if tkversionwarning:
1561 shell.interp.runcommand(''.join(("print('", tkversionwarning, "')"))) 1560 shell.interp.runcommand(''.join(("print('", tkversionwarning, "')")))
1562 1561
1563 while flist.inversedict: # keep IDLE running while files are open. 1562 while flist.inversedict: # keep IDLE running while files are open.
1564 root.mainloop() 1563 root.mainloop()
1565 root.destroy() 1564 root.destroy()
1566 1565
1567 if __name__ == "__main__": 1566 if __name__ == "__main__":
1568 sys.modules['PyShell'] = sys.modules['__main__'] 1567 sys.modules['PyShell'] = sys.modules['__main__']
1569 main() 1568 main()
OLDNEW
« no previous file with comments | « Lib/idlelib/EditorWindow.py ('k') | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+