diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-22 14:53:06 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-22 14:53:06 (GMT) |
commit | e39e54d0b3433cc9f9e1d989c0edde1806b61396 (patch) | |
tree | ec757d67ec9622a03161c83844d8f59603dfd935 /Lib/tkinter/__init__.py | |
parent | 254954aacdc84db2496d38bdf5c57a82ef2a3e30 (diff) | |
parent | 06ce077e4327e35f5a198b143d9d95a00abb782a (diff) | |
download | cpython-e39e54d0b3433cc9f9e1d989c0edde1806b61396.zip cpython-e39e54d0b3433cc9f9e1d989c0edde1806b61396.tar.gz cpython-e39e54d0b3433cc9f9e1d989c0edde1806b61396.tar.bz2 |
Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6.
Diffstat (limited to 'Lib/tkinter/__init__.py')
-rw-r--r-- | Lib/tkinter/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index f78d24d..728ff42 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -1352,7 +1352,7 @@ class Misc: value = words[i+1] if not value: value = None - elif '.' in value: + elif '.' in str(value): value = getdouble(value) else: value = getint(value) @@ -1921,7 +1921,7 @@ class Pack: for i in range(0, len(words), 2): key = words[i][1:] value = words[i+1] - if value[:1] == '.': + if str(value)[:1] == '.': value = self._nametowidget(value) dict[key] = value return dict @@ -1972,7 +1972,7 @@ class Place: for i in range(0, len(words), 2): key = words[i][1:] value = words[i+1] - if value[:1] == '.': + if str(value)[:1] == '.': value = self._nametowidget(value) dict[key] = value return dict @@ -2021,7 +2021,7 @@ class Grid: for i in range(0, len(words), 2): key = words[i][1:] value = words[i+1] - if value[:1] == '.': + if str(value)[:1] == '.': value = self._nametowidget(value) dict[key] = value return dict |