]> granicus.if.org Git - python/commitdiff
Made Place.info == Pack.info
authorGuido van Rossum <guido@python.org>
Thu, 16 May 1996 17:53:48 +0000 (17:53 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 16 May 1996 17:53:48 +0000 (17:53 +0000)
Lib/lib-tk/Tkinter.py
Lib/tkinter/Tkinter.py

index ae5aca44330b331d09c9a6af983f4e63d89b5f37..0a538092d6069cfa7ad9fd3bef7e83a29108e2f5 100644 (file)
@@ -704,7 +704,16 @@ class Place:
                self.tk.call('place', 'forget', self._w)
        place_forget = forget
        def info(self):
-               return self.tk.call('place', 'info', self._w)
+               words = self.tk.splitlist(
+                       self.tk.call('place', 'info', self._w))
+               dict = {}
+               for i in range(0, len(words), 2):
+                       key = words[i][1:]
+                       value = words[i+1]
+                       if value[:1] == '.':
+                               value = self._nametowidget(value)
+                       dict[key] = value
+               return dict
        place_info = info
        def slaves(self):
                return map(self._nametowidget,
index ae5aca44330b331d09c9a6af983f4e63d89b5f37..0a538092d6069cfa7ad9fd3bef7e83a29108e2f5 100755 (executable)
@@ -704,7 +704,16 @@ class Place:
                self.tk.call('place', 'forget', self._w)
        place_forget = forget
        def info(self):
-               return self.tk.call('place', 'info', self._w)
+               words = self.tk.splitlist(
+                       self.tk.call('place', 'info', self._w))
+               dict = {}
+               for i in range(0, len(words), 2):
+                       key = words[i][1:]
+                       value = words[i+1]
+                       if value[:1] == '.':
+                               value = self._nametowidget(value)
+                       dict[key] = value
+               return dict
        place_info = info
        def slaves(self):
                return map(self._nametowidget,