summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-12-30 17:16:35 (GMT)
committerGuido van Rossum <guido@python.org>1994-12-30 17:16:35 (GMT)
commit5505d56f088b1637b7d3c10e97512ee9b9bc8cf0 (patch)
treeb03abecfef3a29f6c4e6740bc02b3762c8a66062 /Lib/lib-tk
parent588633daa2fe7276ae4b0c99723094add0d965ff (diff)
downloadcpython-5505d56f088b1637b7d3c10e97512ee9b9bc8cf0.zip
cpython-5505d56f088b1637b7d3c10e97512ee9b9bc8cf0.tar.gz
cpython-5505d56f088b1637b7d3c10e97512ee9b9bc8cf0.tar.bz2
Fixed 'propagate' method
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index de081ec..05e94e5 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/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(