[Python-bugs-list] [ python-Bugs-684975 ] IDE asks for attention when quitting

SourceForge.net noreply@sourceforge.net
Mon, 03 Mar 2003 04:38:12 -0800


Bugs item #684975, was opened at 2003-02-12 00:03
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=684975&group_id=5470

Category: Macintosh
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jack Jansen (jackjansen)
Summary: IDE asks for attention when quitting

Initial Comment:
When you quit the IDE (in MacPython-OSX) via the popup menu in the dock it somehow asks for attention (the icon jumps up and down enthusiastically). When you the bring it to front it exits normally, without showing any message or anything.

I've looked at this a couple of times but never managed to find what is going on. Do you have any idea?

----------------------------------------------------------------------

>Comment By: Jack Jansen (jackjansen)
Date: 2003-03-03 13:38

Message:
Logged In: YES 
user_id=45365

Fixed in PythonIDEMain.py rev. 1.31.

----------------------------------------------------------------------

Comment By: Just van Rossum (jvr)
Date: 2003-02-28 17:31

Message:
Logged In: YES 
user_id=92689

That sounds entirely reasonable...

----------------------------------------------------------------------

Comment By: Jack Jansen (jackjansen)
Date: 2003-02-28 17:05

Message:
Logged In: YES 
user_id=45365

Found the problem: the unconditional call to AEInteractWithUser() in the quit appleevent handler. I think this should be done differently. I've noticed that on OSX it's always safe to call AEInteractWithUser, even when not inside an AE handler. So, the simplest solution would be to call it in all the EasyDialogs calls and be done with it. Do you think this is reasonable? If so assign back to me and I'll do it.

The alternative is to do this for IDE only. That means that the various classes should call app.interact() before posting a dialog. app.interact() would then call AEInteractWithUser.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=684975&group_id=5470