Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 67595:18ab8e0e6702
#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.
| author | Ned Deily <nad@acm.org> |
|---|---|
| date | Sat, 15 Jan 2011 04:37:12 +0000 |
| parents | 0f2b0f377642 |
| children | 3c9232a684ae |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Fri Jan 14 14:11:45 2011 +0000 +++ b/Lib/idlelib/PyShell.py Sat Jan 15 04:37:12 2011 +0000 @@ -1417,6 +1417,13 @@ 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()
