summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-30 20:04:53 +0300
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-30 20:04:53 +0300
commit2d96848c7e6a13423a8efe69f1539d8f6a7755a4 (patch)
treea12e9d7f49d906e8321294422139cf2f68dcd9e3
parentd8ec464dbbf4513c26018ca2825ea1498fe0aa71 (diff)
downloadcpython-git-2d96848c7e6a13423a8efe69f1539d8f6a7755a4.tar.gz
Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
-rw-r--r--Lib/lib-tk/tkSimpleDialog.py2
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS3
3 files changed, 5 insertions, 1 deletions
diff --git a/Lib/lib-tk/tkSimpleDialog.py b/Lib/lib-tk/tkSimpleDialog.py
index 24388a5e0d..023475db25 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)
diff --git a/Misc/ACKS b/Misc/ACKS
index cdea735e24..3d2393c572 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -576,6 +576,7 @@ Carl Meyer
Mike Meyer
Steven Miale
Trent Mick
+Tom Middleton
Stan Mihai
Aristotelis Mikropoulos
Damien Miller
diff --git a/Misc/NEWS b/Misc/NEWS
index 78cc0384c4..08b632b1a6 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,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.