New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Chooser._fixresult in the tkColorChooser module uses "if not result" to
check if user canceled the dialog, but nowadays Tk may return a cached
object that contains the result we are after, so, this object will not
simply evaluate to false and _fixresult will act like if the user didn't
cancel the dialog. 
The fix is simple, just get the real value of result in that check.

----------
components: Tkinter
files: str_result.diff
keywords: patch
messages: 72425
nosy: gpolo
severity: normal
status: open
title: tkColorChooser may fail if no color is selected
versions: Python 2.5, Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11364/str_result.diff

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3767>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to