summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tkinter')
-rwxr-xr-xLib/tkinter/Tkinter.py9
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(