[New-bugs-announce] [issue3767] tkColorChooser may fail if no color is selected

Guilherme Polo report at bugs.python.org
Thu Sep 4 00:32:11 CEST 2008


New submission from Guilherme Polo <ggpolo at gmail.com>:

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 <report at bugs.python.org>
<http://bugs.python.org/issue3767>
_______________________________________


More information about the New-bugs-announce mailing list