summaryrefslogtreecommitdiffstats
path: root/Lib
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
parent588633daa2fe7276ae4b0c99723094add0d965ff (diff)
downloadcpython-5505d56f088b1637b7d3c10e97512ee9b9bc8cf0.zip
cpython-5505d56f088b1637b7d3c10e97512ee9b9bc8cf0.tar.gz
cpython-5505d56f088b1637b7d3c10e97512ee9b9bc8cf0.tar.bz2
Fixed 'propagate' method
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-tk/Tkinter.py9
-rwxr-xr-xLib/tkinter/Tkinter.py9
2 files changed, 10 insertions, 8 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(
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(