Tk Source Code

View Ticket
Login
Ticket UUID: 98dce8478191da2b2162b0ccd9d6eb2f2c6a98fa
Title: "yesno" messageBoxes on macOS return wrong values
Type: Bug Version: 8.6.8
Submitter: kevin_walzer Created on: 2018-08-15 15:05:43
Subsystem: 33. Generic Dialog Support Assigned To: fvogel
Priority: 9 Immediate Severity: Critical
Status: Closed Last Modified: 2018-08-15 16:51:24
Resolution: Fixed Closed By: kevin_walzer
    Closed on: 2018-08-15 16:51:24
Description:
Dialogs with "yes no"  or "yesnocancel" on macOS return incorrect values, and this bug seems to be the result of changes incorporated in commit http://core.tcl.tk/tk/info/95784c73996402b1. 

To test this, just run the "message boxes" sample in the widget demo, and run the "yesno" and "yesnocancel" dialogs. When you select "yes," the dialog returns another dialog that says "you selected no." And when you select "no," you get a message that says "you selected yes."

Looking at the diffs, it appears that the positions of "yes" and "no" were transposed for some reason in a few places. I'm not sure why this was done, but the fix should be simple enough--just revert the change. It appears this commit was part of some other changes to clean up the test suite, so it may be necessary to look at the test suite code again to ensure that whatever problems there are addressed without this real-world breakage.
User Comments: kevin_walzer added on 2018-08-15 16:51:24:
Behavior is correct now. Thank you.

fvogel added on 2018-08-15 16:29:30:

Should be fixed now, many thanks for the report. It looks like I really screwed up...

I.have only reverted the swapping between yes and no positions. The test suite must now fail again (I have reopened [66db98f30d] to deal with this further).

Could you please confirm it's ok for you now?