commit | 2d96848c7e6a13423a8efe69f1539d8f6a7755a4 | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Mon Jul 30 20:04:53 2012 +0300 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Mon Jul 30 20:04:53 2012 +0300 |
tree | a12e9d7f49d906e8321294422139cf2f68dcd9e3 | |
parent | d8ec464dbbf4513c26018ca2825ea1498fe0aa71 [diff] [blame] |
Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
diff --git a/Lib/lib-tk/tkSimpleDialog.py b/Lib/lib-tk/tkSimpleDialog.py index 24388a5..023475d 100644 --- a/Lib/lib-tk/tkSimpleDialog.py +++ b/Lib/lib-tk/tkSimpleDialog.py
@@ -200,7 +200,7 @@ 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)