diff options
author | Guido van Rossum <guido@python.org> | 1994-12-30 17:16:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-12-30 17:16:35 (GMT) |
commit | 5505d56f088b1637b7d3c10e97512ee9b9bc8cf0 (patch) | |
tree | b03abecfef3a29f6c4e6740bc02b3762c8a66062 /Lib/tkinter | |
parent | 588633daa2fe7276ae4b0c99723094add0d965ff (diff) | |
download | cpython-5505d56f088b1637b7d3c10e97512ee9b9bc8cf0.zip cpython-5505d56f088b1637b7d3c10e97512ee9b9bc8cf0.tar.gz cpython-5505d56f088b1637b7d3c10e97512ee9b9bc8cf0.tar.bz2 |
Fixed 'propagate' method
Diffstat (limited to 'Lib/tkinter')
-rwxr-xr-x | Lib/tkinter/Tkinter.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index de081ec..05e94e5 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/Tkinter.py @@ -595,12 +595,13 @@ class Pack: dict[key] = value return dict info = newinfo - def propagate(self, boolean=None): - if boolean: - self.tk.call('pack', 'propagate', self._w) - else: + _noarg_ = ['_noarg_'] + def propagate(self, flag=_noarg_): + if boolean is Pack._noarg_: return self._getboolean(self.tk.call( 'pack', 'propagate', self._w)) + else: + self.tk.call('pack', 'propagate', self._w, flag) def slaves(self): return map(self._nametowidget, self.tk.splitlist( |