Mercurial > cpython-lru_cache-weakref
comparison Lib/idlelib/PyShell.py @ 51087:f138fbe2945e 3.0
Forward port r68985: Idle startup message.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Tue, 27 Jan 2009 00:29:35 +0000 |
| parents | 3ff7bb830519 |
| children | a014dc47b552 |
comparison
equal
deleted
inserted
replaced
| 51083:c23e40d1abbc | 51087:f138fbe2945e |
|---|---|
| 961 return self.shell_title | 961 return self.shell_title |
| 962 | 962 |
| 963 COPYRIGHT = \ | 963 COPYRIGHT = \ |
| 964 'Type "copyright", "credits" or "license()" for more information.' | 964 'Type "copyright", "credits" or "license()" for more information.' |
| 965 | 965 |
| 966 firewallmessage = """ | |
| 967 **************************************************************** | |
| 968 Personal firewall software may warn about the connection IDLE | |
| 969 makes to its subprocess using this computer's internal loopback | |
| 970 interface. This connection is not visible on any external | |
| 971 interface and no data is sent to or received from the Internet. | |
| 972 **************************************************************** | |
| 973 """ | |
| 974 | |
| 975 def begin(self): | 966 def begin(self): |
| 976 self.text.mark_set("iomark", "insert") | 967 self.text.mark_set("iomark", "insert") |
| 977 self.resetoutput() | 968 self.resetoutput() |
| 978 if use_subprocess: | 969 if use_subprocess: |
| 979 nosub = '' | 970 nosub = '' |
| 981 if not client: | 972 if not client: |
| 982 self.close() | 973 self.close() |
| 983 return False | 974 return False |
| 984 else: | 975 else: |
| 985 nosub = "==== No Subprocess ====" | 976 nosub = "==== No Subprocess ====" |
| 986 self.write("Python %s on %s\n%s\n%s\nIDLE %s %s\n" % | 977 self.write("Python %s on %s\n%s\n%s" % |
| 987 (sys.version, sys.platform, self.COPYRIGHT, | 978 (sys.version, sys.platform, self.COPYRIGHT, nosub)) |
| 988 self.firewallmessage, idlever.IDLE_VERSION, nosub)) | |
| 989 self.showprompt() | 979 self.showprompt() |
| 990 import tkinter | 980 import tkinter |
| 991 tkinter._default_root = None # 03Jan04 KBK What's this? | 981 tkinter._default_root = None # 03Jan04 KBK What's this? |
| 992 return True | 982 return True |
| 993 | 983 |
