mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
This commit is contained in:
parent
3b796680c3
commit
1fb0e3f3a2
3 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue