| Ticket UUID: | 3580159 | |||
| Title: | indicatoron ignored on MacOS X | |||
| Type: | Bug | Version: | obsolete: 8.5.12 | |
| Submitter: | reowen | Created on: | 2012-10-25 16:45:14 | |
| Subsystem: | 03. [*button] and [label] | Assigned To: | wordtech | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Pending | Last Modified: | 2026-10-08 12:13:21 | |
| Resolution: | Out of Date | Closed By: | wordtech | |
| Closed on: | 2012-11-07 15:02:38 | |||
| Description: |
The indicatoron option is ignored for checkbuttons on MacOS X. For example: checkbutton .b -text "Foo" -indicatoron 0 pack .b This behaves correctly on linux (showing no checkbox) but on MacOS X the checkbox is displayed regardless of the value of indicatoron. | |||
| User Comments: |
serhiy.storchaka added on 2026-10-08 12:13:21:
Since [6d9ba34985] (Tk 8.6.4), a checkbutton or radiobutton with -indicatoron 0 and no image is drawn by Tk, not as a native check box, and is raised or sunken depending on its state. With an image it is drawn as a bevel button, also without the indicator. So this looks fixed. Kevin, could you confirm on macOS and close it as Out of Date? wordtech added on 2012-11-08 06:29:46: I've experimented with using a different button style to display when indicatoron is false, but I can't get it to work to my satisfaction. There are too many different variables with the button state for it to map cleanly. The current implementation displays a flat shaded button when an image is present, and the checkbutton style otherwise. Trying to add an additional dimension, using the flat button when an image is not present and indicatoron is set to false, results in the flat button displaying in all situations, and we lose the tristate value of the checkbutton style. As a result, I have decided to retain the current implementation, as it has fewer issues than the new one I have played with. reowen added on 2012-11-07 22:52:41: Would it be practical to map to a different native widget if indicatoron is false? (If so, what would happen if the value of indicatoron is changed once the widget is created?). wordtech added on 2012-11-07 22:02:38: As discussed in the Tkinter mailing list: "After looking at the code that implements the checkbutton, it appears that, internally, it is mapped to a specific Cocoa button style (NSSwitchButton) that does not allow us to turn off the checkmark. I suppose we'll have to add this to the list of Tk configuration flags that are ignored in certain contexts when Mac-native widgets are used (background, relief, etc.). " | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki