◐ Shell
clean mode source ↗

Message 225054 - Python tracker

As a temporary workaround, you could edit turtle.py to revert that change, in other words, just search for and delete the whole "if sys.platform == 'darwin'" test:

diff -r d85fcf23549e Lib/turtle.py
--- a/Lib/turtle.py     Tue Aug 05 14:02:11 2014 -0500
+++ b/Lib/turtle.py     Thu Aug 07 19:58:25 2014 -0700
@@ -993,12 +993,6 @@
         self._colormode = _CFG["colormode"]
         self._keys = []
         self.clear()
-        if sys.platform == 'darwin':
-            # Force Turtle window to the front on OS X. This is needed because
-            # the Turtle window will show behind the Terminal window when you
-            # start the demo from the command line.
-            cv._rootwindow.call('wm', 'attributes', '.', '-topmost', '1')
-            cv._rootwindow.call('wm', 'attributes', '.', '-topmost', '0')

     def clear(self):
         """Delete all drawings and all turtles from the TurtleScreen.

The file is at /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/turtle.py.