summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/tkSimpleDialog.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-30 17:04:53 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-30 17:04:53 (GMT)
commit2d96848c7e6a13423a8efe69f1539d8f6a7755a4 (patch)
treea12e9d7f49d906e8321294422139cf2f68dcd9e3 /Lib/lib-tk/tkSimpleDialog.py
parentd8ec464dbbf4513c26018ca2825ea1498fe0aa71 (diff)
downloadcpython-2d96848c7e6a13423a8efe69f1539d8f6a7755a4.zip
cpython-2d96848c7e6a13423a8efe69f1539d8f6a7755a4.tar.gz
cpython-2d96848c7e6a13423a8efe69f1539d8f6a7755a4.tar.bz2
Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
Diffstat (limited to 'Lib/lib-tk/tkSimpleDialog.py')
-rw-r--r--Lib/lib-tk/tkSimpleDialog.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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)