Author ned.deily
Recipients Lita.Cho, Ramchandra Apte, ezio.melotti, jesstess, kbk, ned.deily, orsenthil, rhettinger, ronaldoussoren, terry.reedy
Date 2014-07-29.01:16:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406596584.94.0.953577255855.issue17172@psf.upfronthosting.co.za>
In-reply-to
Content
>If the activate code is moved to macosxSupport.activate(), does the
>following work in EditorWindow.open_turtle_demo?
>cmd = [sys.executable, '-c',
  'from idlelib.macosxSupport import activate as A; A()\n'
  'from turtledemo.__main__ import main; main()']
>Does the activate code have to be called after, say, the tkinter import in
>turtledemo, or is anytime in the process ok?

The activate code has to be called in the subprocess after Tk() has been called because only then is the subprocess guaranteed to have been promoted to an OS X GUI process.  So that suggestion will not work.  The idea of adding something to tkinter was discussed in msg192523 of issue11571, though not this specific solution.  If you want to pursue more generalized issues of GUI application behaviors on OS X, that should be the subject of another issue.  I suggest that this issue remain focused on the original topic.  I also would be concerned about adding the Run menu to the Shell window (or system menu bar when the Shell window is active) merely to accommodate this feature.  Having turtledemo in the Help menu seems fine to me.
History
Date User Action Args
2014-07-29 01:16:25ned.deilysetrecipients: + ned.deily, rhettinger, terry.reedy, kbk, ronaldoussoren, orsenthil, ezio.melotti, jesstess, Ramchandra Apte, Lita.Cho
2014-07-29 01:16:24ned.deilysetmessageid: <1406596584.94.0.953577255855.issue17172@psf.upfronthosting.co.za>
2014-07-29 01:16:24ned.deilylinkissue17172 messages
2014-07-29 01:16:24ned.deilycreate