summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/Tkinter.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r--Lib/lib-tk/Tkinter.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index c05704e..d0d93ed 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -552,7 +552,16 @@ class Pack:
def forget(self):
self.tk.call('pack', 'forget', self._w)
def newinfo(self):
- return self.tk.call('pack', 'newinfo', self._w)
+ words = self.tk.splitlist(
+ self.tk.call('pack', 'newinfo', self._w))
+ dict = {}
+ for i in range(0, len(words), 2):
+ key = words[i][1:]
+ value = words[i+1]
+ if value[0] == '.':
+ value = self._nametowidget(value)
+ dict[key] = value
+ return dict
info = newinfo
def propagate(self, boolean=None):
if boolean: