diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2004-01-21 18:54:30 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2004-01-21 18:54:30 (GMT) |
commit | af3eb878027954fa578f43ba490599d13215eb3a (patch) | |
tree | 799909d784c98e4ff9151eee29e9609cf045bc33 /Lib/idlelib/ScriptBinding.py | |
parent | 1fe97502002823098f66c9f103c8e27c8bcc69f9 (diff) | |
download | cpython-af3eb878027954fa578f43ba490599d13215eb3a.zip cpython-af3eb878027954fa578f43ba490599d13215eb3a.tar.gz cpython-af3eb878027954fa578f43ba490599d13215eb3a.tar.bz2 |
Added a Tk error dialog to run.py inform the user if the subprocess can't
connect to the user GUI process. Added a timeout to the GUI's listening
socket. Added Tk error dialogs to PyShell.py to announce a failure to bind
the port or connect to the subprocess. Clean up error handling during
connection initiation phase. This is an update of Python Patch 778323.
M NEWS.txt
M PyShell.py
M ScriptBinding.py
M run.py
Backport candidate.
Diffstat (limited to 'Lib/idlelib/ScriptBinding.py')
-rw-r--r-- | Lib/idlelib/ScriptBinding.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index fa9ecbc..c0fa88f 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -137,6 +137,8 @@ class ScriptBinding: return flist = self.editwin.flist shell = flist.open_shell() + if not shell: + return # couldn't open the shell interp = shell.interp if PyShell.use_subprocess: shell.restart_shell() |