This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: tkSimpleDialog broken on MacOS X (Aqua Tk)
Type: behavior Stage: test needed
Components: Tkinter Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: loewis Nosy List: gpolo, loewis, ned.deily, r.david.murray, reowen
Priority: normal Keywords:

Created on 2005-01-27 23:52 by reowen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tkSimpleDialogBug.py reowen, 2005-01-27 23:52 Simple demo of bug
Messages (4)
msg24078 - (view) Author: Russell Owen (reowen) Date: 2005-01-27 23:52
On MacOS X 10.3.7 using the built-in python 2.3 and Aqua Tk 8.4.9, 
tkSimpleDialog.askfloat() with initialvalue specified misbehaves:
- The entry box is displayed over the prompt.
- Clicking on the entry box has no effect.
- Clicking below the entry box (i.e. where it OUGHT to be displayed)
  acts as though you clicked in the entry box.

If you omit the initial value then the bug does not appear.

Also: on one particular unix system, similar code caused the entire 
Tkinter application to become unresponsive once the dialog box was 
dismissed. However, the parent window for that dialog was not root 
and I did not specify the parent argument to askfloat, so that may 
explain the hang.

See the attached sample code for details.
msg86417 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2009-04-24 17:23
I had temporary access to a mac to verify this, and it is really sad to
see things like that.

Anyway, I found out that by calling self.entry.update_idletasks in
_QueryDialog.body right after calling self.entry.insert(0,
self.initialvalue) solved the problem. I couldn't try creating a smaller
tkSimpleDialog to test as tcl code to verify if the bug was in tk aqua
or not (because the access was really temporary).
msg114414 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2010-08-19 22:59
The test case supplied fails as described on OS 10.4 using a current 2.6 build (2.6.6rc1) when using the Apple-supplied Aqua Tk 8.4 in 10.4 but the same build and test case works correctly when used with a current ActiveState Tk 8.4.19 in /Library/Frameworks.  The test case also works correctly when run on older Pythons (for example, the python.org OS X 10.5.4) using the Apple-supplied Aqua Tk 8.4 on OS X 10.6.

Suggest this issue be closed as an Aqua Tk problem.
msg115154 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-08-28 14:36
I think we need a "vendor problem" resolution :)

Closed as 'works for me' instead since that's effectively what Ned said.
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41501
2010-08-28 14:36:51r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg115154

resolution: works for me
2010-08-19 22:59:06ned.deilysetnosy: + ned.deily
messages: + msg114414
2010-08-19 18:58:50BreamoreBoysetversions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6
2009-04-24 17:23:13gpolosetnosy: + gpolo
messages: + msg86417
2009-02-15 22:34:01ajaksu2setstage: test needed
type: behavior
versions: + Python 2.6, - Python 2.4
2005-01-27 23:52:05reowencreate