Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.

This commit is contained in:
Andrew Svetlov 2012-07-30 20:01:13 +03:00
commit 504ba313fc
3 changed files with 5 additions and 1 deletions

View file

@ -282,7 +282,7 @@ def body(self, master):
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)

View file

@ -700,6 +700,7 @@ Piotr Meyer
Alexis Métaireau
Steven Miale
Trent Mick
Tom Middleton
Stan Mihai
Stefan Mihaila
Aristotelis Mikropoulos

View file

@ -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.