summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-16 17:53:48 (GMT)
committerGuido van Rossum <guido@python.org>1996-05-16 17:53:48 (GMT)
commit63e39ae933e415ed228dfed3b13514e6b513a2a9 (patch)
treec05085fe1c82f27699dac982da30d393d0087313 /Lib/tkinter
parenta5f875f5046e5d81f66ea201c3fb6efc65346674 (diff)
downloadcpython-63e39ae933e415ed228dfed3b13514e6b513a2a9.zip
cpython-63e39ae933e415ed228dfed3b13514e6b513a2a9.tar.gz
cpython-63e39ae933e415ed228dfed3b13514e6b513a2a9.tar.bz2
Made Place.info == Pack.info
Diffstat (limited to 'Lib/tkinter')
-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 ae5aca4..0a53809 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,