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.

Author eb303
Recipients eb303
Date 2009-01-16.09:38:22
SpamBayes Score 0.001351048
Marked as misclassified No
Message-id <1232098705.28.0.00930049939452.issue4961@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-01-16 09:38:25eb303setrecipients: + eb303
2009-01-16 09:38:25eb303setmessageid: <1232098705.28.0.00930049939452.issue4961@psf.upfronthosting.co.za>
2009-01-16 09:38:24eb303linkissue4961 messages
2009-01-16 09:38:23eb303create