Kaydet (Commit) 63e39ae9 authored tarafından Guido van Rossum's avatar Guido van Rossum

Made Place.info == Pack.info

üst a5f875f5
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment