[issue10171] Ugly buttons in some Tkinter objects in Windows

Rafe Kettler report at bugs.python.org
Sun Oct 24 22:53:32 CEST 2010


Rafe Kettler <rafe.kettler at gmail.com> added the comment:

I haven't had a chance to look too deeply into the source, but it appears (at least in Python 2.7) that the problem has something to do with the commands that the classes in tkMessageBox and tkColorChooser pass to tk.call().

The Message class in tkMessageBox, the Chooser class in tkColorChooser, and the various dialog classes in tkFileDialog all subclass Dialog, which is defined in tkCommonDialog.

Since the dialogs in tkFileDialog have the right buttons, there's probably nothing wrong with the Dialog superclass. However, Chooser and Message both define their own command variables (tk_chooseColor and tk_messageBox, respectively) that are then passed to a Frame's tk.call method.

So, when I get an extra minute I'll go in and see what might be going on with tk_chooseColor and tk_messageBox.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10171>
_______________________________________


More information about the Python-bugs-list mailing list