summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2011-01-15 04:37:12 (GMT)
committerNed Deily <nad@acm.org>2011-01-15 04:37:12 (GMT)
commit4ce92b23fe968a6866f89e31f4bfd4585c0cead2 (patch)
treeebed0af100168b7caa6bafb9c93566b1478575ab /Lib/idlelib/PyShell.py
parentc5982967fc25985699888e04a9a7e35ff7b7372a (diff)
downloadcpython-4ce92b23fe968a6866f89e31f4bfd4585c0cead2.zip
cpython-4ce92b23fe968a6866f89e31f4bfd4585c0cead2.tar.gz
cpython-4ce92b23fe968a6866f89e31f4bfd4585c0cead2.tar.bz2
#10907: Warn OS X 10.6 IDLE users to use ActiveState Tcl/Tk 8.5,
rather than the currently problematic Apple-supplied one, when running with the 64-/32-bit installer variant.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 429ba2e..06c8bba 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1417,6 +1417,13 @@ def main():
shell.interp.prepend_syspath(script)
shell.interp.execfile(script)
+ # Check for problematic OS X Tk versions and print a warning message
+ # in the IDLE shell window; this is less intrusive than always opening
+ # a separate window.
+ tkversionwarning = macosxSupport.tkVersionWarning(root)
+ if tkversionwarning:
+ shell.interp.runcommand(''.join(("print('", tkversionwarning, "')")))
+
root.mainloop()
root.destroy()