summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-30 16:59:53 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-30 16:59:53 (GMT)
commit1fb0e3f3a2dde81f428ec0a8bcffffdb6f622292 (patch)
treeb15d1cb42a6c376d93c72c9a01d8febbc0ddacc7
parent3b796680c3cbc1d43f3e1157cacc8e6b668f65f6 (diff)
downloadcpython-1fb0e3f3a2dde81f428ec0a8bcffffdb6f622292.zip
cpython-1fb0e3f3a2dde81f428ec0a8bcffffdb6f622292.tar.gz
cpython-1fb0e3f3a2dde81f428ec0a8bcffffdb6f622292.tar.bz2
Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
-rw-r--r--Lib/tkinter/simpledialog.py2
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS3
3 files changed, 5 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)
diff --git a/Misc/ACKS b/Misc/ACKS
index e04677e..1a094a1 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -633,6 +633,7 @@ Carl Meyer
Mike Meyer
Steven Miale
Trent Mick
+Tom Middleton
Stan Mihai
Stefan Mihaila
Aristotelis Mikropoulos
diff --git a/Misc/NEWS b/Misc/NEWS
index 5ede324..454a70c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -98,6 +98,9 @@ Core and Builtins
Library
-------
+- Issue #12288: Consider '0' and '0.0' as valid initialvalue
+ for tkinter SimpleDialog.
+
- Issue #15489: Add a __sizeof__ implementation for BytesIO objects.
Patch by Serhiy Storchaka.