[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox
eb303
report at bugs.python.org
Fri Jan 16 10:38:25 CET 2009
New submission from eb303 <eric.brunel at pragmadev.com>:
Scenario to reproduce the problem:
- Run the attached script.
- Click the 'Ask confirm' button and answer 'Yes'; it should print
True, which is the expected answer.
- Click the 'Ask file' button, select any file and confirm.
- Click the 'Ask confirm' button and answer 'Yes'.
The script prints False, which is obviously wrong.
Problem reproduced on Linux Red Hat Fedora Core 4, Suse Enterprise
Linux 9, Solaris 8 for Sparc and Solaris 10 on Intel. The script works
as expected on Windows 2000, so it seems to be Unix-specific.
Possible cause: the result of the _show function in tkMessageBox is not
always a string, apparently depending on what happened before. Changing
the last line to:
return str(res)
seemed to correct the problem for me.
----------
components: Tkinter
files: dialog-bug.py
messages: 79944
nosy: eb303
severity: normal
status: open
title: Inconsistent/wrong result of askyesno function in tkMessageBox
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file12761/dialog-bug.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4961>
_______________________________________
More information about the Python-bugs-list
mailing list