summaryrefslogtreecommitdiff
path: root/Lib/tkinter/Tkinter.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-16 17:53:48 +0000
committerGuido van Rossum <guido@python.org>1996-05-16 17:53:48 +0000
commit63e39ae933e415ed228dfed3b13514e6b513a2a9 (patch)
treec05085fe1c82f27699dac982da30d393d0087313 /Lib/tkinter/Tkinter.py
parenta5f875f5046e5d81f66ea201c3fb6efc65346674 (diff)
downloadcpython-git-63e39ae933e415ed228dfed3b13514e6b513a2a9.tar.gz
Made Place.info == Pack.info
Diffstat (limited to 'Lib/tkinter/Tkinter.py')
-rwxr-xr-xLib/tkinter/Tkinter.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py
index ae5aca4433..0a538092d6 100755
--- a/Lib/tkinter/Tkinter.py
+++ b/Lib/tkinter/Tkinter.py
@@ -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,