diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-07-30 17:01:13 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-07-30 17:01:13 (GMT) |
commit | 504ba313fc081966b721a4e697dffc13840b9e69 (patch) | |
tree | d1952808f9858acce56167a6b759df479ce7b9cb /Lib/tkinter | |
parent | 754d5ef8da92d71b72be4b129af5011cd4480dd0 (diff) | |
parent | 1fb0e3f3a2dde81f428ec0a8bcffffdb6f622292 (diff) | |
download | cpython-504ba313fc081966b721a4e697dffc13840b9e69.zip cpython-504ba313fc081966b721a4e697dffc13840b9e69.tar.gz cpython-504ba313fc081966b721a4e697dffc13840b9e69.tar.bz2 |
Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
Diffstat (limited to 'Lib/tkinter')
-rw-r--r-- | Lib/tkinter/simpledialog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/simpledialog.py b/Lib/tkinter/simpledialog.py index 885804b..45302b4 100644 --- a/Lib/tkinter/simpledialog.py +++ b/Lib/tkinter/simpledialog.py @@ -282,7 +282,7 @@ class _QueryDialog(Dialog): self.entry = Entry(master, name="entry") self.entry.grid(row=1, padx=5, sticky=W+E) - if self.initialvalue: + if self.initialvalue is not None: self.entry.insert(0, self.initialvalue) self.entry.select_range(0, END) |