From a5f875f5046e5d81f66ea201c3fb6efc65346674 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 16 May 1996 17:50:07 +0000 Subject: [PATCH] Yet another mini fix to pack/grid info. --- Lib/lib-tk/Tkinter.py | 4 ++-- Lib/tkinter/Tkinter.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 823407731ce..ae5aca44330 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -668,7 +668,7 @@ def info(self): for i in range(0, len(words), 2): key = words[i][1:] value = words[i+1] - if value[0] == '.': + if value[:1] == '.': value = self._nametowidget(value) dict[key] = value return dict @@ -745,7 +745,7 @@ def info(self): for i in range(0, len(words), 2): key = words[i][1:] value = words[i+1] - if value[0] == '.': + if value[:1] == '.': value = self._nametowidget(value) dict[key] = value return dict diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index 823407731ce..ae5aca44330 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/Tkinter.py @@ -668,7 +668,7 @@ def info(self): for i in range(0, len(words), 2): key = words[i][1:] value = words[i+1] - if value[0] == '.': + if value[:1] == '.': value = self._nametowidget(value) dict[key] = value return dict @@ -745,7 +745,7 @@ def info(self): for i in range(0, len(words), 2): key = words[i][1:] value = words[i+1] - if value[0] == '.': + if value[:1] == '.': value = self._nametowidget(value) dict[key] = value return dict