I'm relieved to hear that you may have a way to override. Yes, let's continue the discussion in the bug report context.
Bruce Sherwood On Thu, Oct 14, 2010 at 11:14 PM, Ned Deily <n...@acm.org> wrote: > In article > <aanlktin10qq3vzij=oxxbaynfgh4et_vg4ar_ddc7...@mail.gmail.com>, > Bruce Sherwood <bashe...@ncsu.edu> wrote: > >> I'm trying to find out why when you quit on the Mac unsaved changes >> don't trigger an invitation to save the file. Instead, IDLE quits and >> you lose your edits. >> >> There is code to bind cmd-q to the edit window and, on the Mac, to the >> Tk root, through macosxSupport.setupApp which calls macosxSupport >> overrideRootMenu. I've tried printing something in the callback >> routine (FileList.close_all_callback), and I don't see the print. I've >> tried commenting out one or both of these bindings, and I can still >> quit with cmd-q. I've looked a bit at the tkinter code. I'm beginning >> to have the sinking feeling that there's something in the library >> _tkinter.so itself that is swallowing cmd-q and not sending it to >> tkinter, so it doesn't get to IDLE. I have the vague notion that there >> have been some problems with tkinter on the Mac, but I don't know any >> details....? > > Working on it. The problem is due to the fact that the standard Aqua Tk > on OS X is itself an official OS X app and creates the menu bar with > default menu options including a standard application Quit. I think I > see how to intercept that. > > I suggest we move the discussion to the bug tracker > (http://bugs.python.org/issue10107). > > -- > Ned Deily, > ...@acm.org > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev@python.org > http://mail.python.org/mailman/listinfo/idle-dev > _______________________________________________ IDLE-dev mailing list IDLE-dev@python.org http://mail.python.org/mailman/listinfo/idle-dev