Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

cpython (merge 3.2 -> default): Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Jul 30, 2012, 10:05 AM

Post #1 of 1 (54 views)
Permalink
cpython (merge 3.2 -> default): Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter

http://hg.python.org/cpython/rev/2f3ccf4ec193
changeset: 78336:2f3ccf4ec193
parent: 78334:e77c117ab024
parent: 78335:fd5166fdb978
user: Andrew Svetlov <andrew.svetlov [at] gmail>
date: Mon Jul 30 20:01:13 2012 +0300
summary:
Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.

files:
Lib/tkinter/simpledialog.py | 2 +-
Misc/ACKS | 1 +
Misc/NEWS | 3 +++
3 files changed, 5 insertions(+), 1 deletions(-)


diff --git a/Lib/tkinter/simpledialog.py b/Lib/tkinter/simpledialog.py
--- a/Lib/tkinter/simpledialog.py
+++ b/Lib/tkinter/simpledialog.py
@@ -282,7 +282,7 @@
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
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -700,6 +700,7 @@
Alexis M├ętaireau
Steven Miale
Trent Mick
+Tom Middleton
Stan Mihai
Stefan Mihaila
Aristotelis Mikropoulos
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -339,6 +339,9 @@
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.


--
Repository URL: http://hg.python.org/cpython

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.