Commit 5505d56f authored by Guido van Rossum's avatar Guido van Rossum

Fixed 'propagate' method

parent 588633da
...@@ -595,12 +595,13 @@ class Pack: ...@@ -595,12 +595,13 @@ class Pack:
dict[key] = value dict[key] = value
return dict return dict
info = newinfo info = newinfo
def propagate(self, boolean=None): _noarg_ = ['_noarg_']
if boolean: def propagate(self, flag=_noarg_):
self.tk.call('pack', 'propagate', self._w) if boolean is Pack._noarg_:
else:
return self._getboolean(self.tk.call( return self._getboolean(self.tk.call(
'pack', 'propagate', self._w)) 'pack', 'propagate', self._w))
else:
self.tk.call('pack', 'propagate', self._w, flag)
def slaves(self): def slaves(self):
return map(self._nametowidget, return map(self._nametowidget,
self.tk.splitlist( self.tk.splitlist(
......
...@@ -595,12 +595,13 @@ class Pack: ...@@ -595,12 +595,13 @@ class Pack:
dict[key] = value dict[key] = value
return dict return dict
info = newinfo info = newinfo
def propagate(self, boolean=None): _noarg_ = ['_noarg_']
if boolean: def propagate(self, flag=_noarg_):
self.tk.call('pack', 'propagate', self._w) if boolean is Pack._noarg_:
else:
return self._getboolean(self.tk.call( return self._getboolean(self.tk.call(
'pack', 'propagate', self._w)) 'pack', 'propagate', self._w))
else:
self.tk.call('pack', 'propagate', self._w, flag)
def slaves(self): def slaves(self):
return map(self._nametowidget, return map(self._nametowidget,
self.tk.splitlist( self.tk.splitlist(
......
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