diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-25 09:29:40 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-25 09:29:40 (GMT) |
commit | 68a470f65d207419be1f40f8fec743a51529ca7e (patch) | |
tree | 2c334f64aaa4d4587dc4093cdc0a620cad213cd6 /Lib/tkinter | |
parent | 415c2cdedf4c5dde99f6864584a8659312bbcbb8 (diff) | |
parent | 1a901cc952a59cbc5dded92ffd7df43efb62a7e4 (diff) | |
download | cpython-68a470f65d207419be1f40f8fec743a51529ca7e.zip cpython-68a470f65d207419be1f40f8fec743a51529ca7e.tar.gz cpython-68a470f65d207419be1f40f8fec743a51529ca7e.tar.bz2 |
Issue #22061: Restored empty obsolete methods removed in issue #4350 and
added deprecation warnings to them.
Diffstat (limited to 'Lib/tkinter')
-rw-r--r-- | Lib/tkinter/__init__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 3f30ae4..aaa2bfc 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -419,6 +419,12 @@ class Misc: disabledForeground, insertBackground, troughColor.""" self.tk.call(('tk_setPalette',) + _flatten(args) + _flatten(list(kw.items()))) + def tk_menuBar(self, *args): + """Do not use. Needed in Tk 3.6 and earlier.""" + # obsolete since Tk 4.0 + import warnings + warnings.warn('tk_menuBar() does nothing and will be removed in 3.6', + DeprecationWarning, stacklevel=2) def wait_variable(self, name='PY_VAR'): """Wait until the variable is modified. @@ -2660,6 +2666,12 @@ class Menu(Widget): def tk_popup(self, x, y, entry=""): """Post the menu at position X,Y with entry ENTRY.""" self.tk.call('tk_popup', self._w, x, y, entry) + def tk_bindForTraversal(self): + # obsolete since Tk 4.0 + import warnings + warnings.warn('tk_bindForTraversal() does nothing and ' + 'will be removed in 3.6', + DeprecationWarning, stacklevel=2) def activate(self, index): """Activate entry at INDEX.""" self.tk.call(self._w, 'activate', index) |