summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-30 20:01:13 +0300
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-07-30 20:01:13 +0300
commit504ba313fc081966b721a4e697dffc13840b9e69 (patch)
treed1952808f9858acce56167a6b759df479ce7b9cb
parent754d5ef8da92d71b72be4b129af5011cd4480dd0 (diff)
parent1fb0e3f3a2dde81f428ec0a8bcffffdb6f622292 (diff)
downloadcpython-git-504ba313fc081966b721a4e697dffc13840b9e69.tar.gz
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 885804b3c7..45302b4569 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 a76e842199..465b5c298c 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -700,6 +700,7 @@ Piotr Meyer
Alexis Métaireau
Steven Miale
Trent Mick
+Tom Middleton
Stan Mihai
Stefan Mihaila
Aristotelis Mikropoulos
diff --git a/Misc/NEWS b/Misc/NEWS
index ba367510af..e628f74868 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -339,6 +339,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.