Commit 1fb0e3f3 authored by Andrew Svetlov's avatar Andrew Svetlov

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

parent 3b796680
...@@ -282,7 +282,7 @@ class _QueryDialog(Dialog): ...@@ -282,7 +282,7 @@ class _QueryDialog(Dialog):
self.entry = Entry(master, name="entry") self.entry = Entry(master, name="entry")
self.entry.grid(row=1, padx=5, sticky=W+E) 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.insert(0, self.initialvalue)
self.entry.select_range(0, END) self.entry.select_range(0, END)
......
...@@ -633,6 +633,7 @@ Carl Meyer ...@@ -633,6 +633,7 @@ Carl Meyer
Mike Meyer Mike Meyer
Steven Miale Steven Miale
Trent Mick Trent Mick
Tom Middleton
Stan Mihai Stan Mihai
Stefan Mihaila Stefan Mihaila
Aristotelis Mikropoulos Aristotelis Mikropoulos
......
...@@ -98,6 +98,9 @@ Core and Builtins ...@@ -98,6 +98,9 @@ Core and Builtins
Library Library
------- -------
- Issue #12288: Consider '0' and '0.0' as valid initialvalue
for tkinter SimpleDialog.
- Issue #15489: Add a __sizeof__ implementation for BytesIO objects. - Issue #15489: Add a __sizeof__ implementation for BytesIO objects.
Patch by Serhiy Storchaka. Patch by Serhiy Storchaka.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment