Message79944
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. |
|
Date |
User |
Action |
Args |
2009-01-16 09:38:25 | eb303 | set | recipients:
+ eb303 |
2009-01-16 09:38:25 | eb303 | set | messageid: <1232098705.28.0.00930049939452.issue4961@psf.upfronthosting.co.za> |
2009-01-16 09:38:24 | eb303 | link | issue4961 messages |
2009-01-16 09:38:23 | eb303 | create | |
|