]> granicus.if.org Git - python/commitdiff
Yet another mini fix to pack/grid info.
authorGuido van Rossum <guido@python.org>
Thu, 16 May 1996 17:50:07 +0000 (17:50 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 16 May 1996 17:50:07 +0000 (17:50 +0000)
Lib/lib-tk/Tkinter.py
Lib/tkinter/Tkinter.py

index 823407731ce5a3ccd252a79f51499862cd8f4351..ae5aca44330b331d09c9a6af983f4e63d89b5f37 100644 (file)
@@ -668,7 +668,7 @@ class Pack:
                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 @@ class Grid:
                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
index 823407731ce5a3ccd252a79f51499862cd8f4351..ae5aca44330b331d09c9a6af983f4e63d89b5f37 100755 (executable)
@@ -668,7 +668,7 @@ class Pack:
                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 @@ class Grid:
                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