diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-16 19:35:46 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-16 19:35:46 (GMT) |
commit | 2e208b7d6280ef26483f7244006832fad8e4ec89 (patch) | |
tree | 601bc297627787c7465b4e243fbd38ea0e84de8e /Lib/tkinter/__init__.py | |
parent | 7c3ac2d1f82ed44a90de34d5bc6424c64b19ce68 (diff) | |
download | cpython-2e208b7d6280ef26483f7244006832fad8e4ec89.zip cpython-2e208b7d6280ef26483f7244006832fad8e4ec89.tar.gz cpython-2e208b7d6280ef26483f7244006832fad8e4ec89.tar.bz2 |
Issue #27031: Removed dummy methods in Tkinter widget classes: tk_menuBar()
and tk_bindForTraversal().
Diffstat (limited to 'Lib/tkinter/__init__.py')
-rw-r--r-- | Lib/tkinter/__init__.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 7fbe147..357385e 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -468,12 +468,6 @@ 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. @@ -2705,12 +2699,6 @@ 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) |