summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
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(