From: SourceForge.net <no...@so...> - 2012-11-07 23:29:46
|
Bugs item #3580159, was opened at 2012-10-25 09:45 Message generated for change (Comment added) made by wordtech You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3580159&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 03. [*button] and [label] Group: current: 8.5.12 Status: Open Resolution: Invalid Priority: 5 Private: No Submitted By: Russell Owen (reowen) Assigned to: Kevin Walzer (wordtech) Summary: indicatoron ignored on MacOS X Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Kevin Walzer (wordtech) Date: 2012-11-07 15:29 Message: 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. ---------------------------------------------------------------------- Comment By: Russell Owen (reowen) Date: 2012-11-07 07:52 Message: 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?). ---------------------------------------------------------------------- Comment By: Kevin Walzer (wordtech) Date: 2012-11-07 07:02 Message: 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.). " ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3580159&group_id=12997 |