diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 19:40:38 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 19:40:38 (GMT) |
commit | 82d9a2e1fecea7552307392ea0b0fa46d600409a (patch) | |
tree | f95b3090efd570c26e87ca424a023c0effd3af0b | |
parent | 8ace2c66d35cf4cbb2d4a6383e33c0bb96448ecb (diff) | |
parent | 2e208b7d6280ef26483f7244006832fad8e4ec89 (diff) | |
download | cpython-82d9a2e1fecea7552307392ea0b0fa46d600409a.zip cpython-82d9a2e1fecea7552307392ea0b0fa46d600409a.tar.gz cpython-82d9a2e1fecea7552307392ea0b0fa46d600409a.tar.bz2 |
Merge heads
-rw-r--r-- | Doc/whatsnew/3.6.rst | 4 | ||||
-rw-r--r-- | Lib/tkinter/__init__.py | 12 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
3 files changed, 7 insertions, 12 deletions
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst index bad0f9e..ce0ce82 100644 --- a/Doc/whatsnew/3.6.rst +++ b/Doc/whatsnew/3.6.rst @@ -489,6 +489,10 @@ API and Feature Removals :mod:`traceback` module. They were undocumented methods deprecated since Python 3.2 and equivalent functionality is available from private methods. +* The ``tk_menuBar()`` and ``tk_bindForTraversal()`` dummy methods in + :mod:`tkinter` widget classes were removed (corresponding Tk commands + were obsolete since Tk 4.0). + Porting to Python 3.6 ===================== 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) @@ -280,6 +280,9 @@ Core and Builtins Library ------- +- Issue #27031: Removed dummy methods in Tkinter widget classes: tk_menuBar() + and tk_bindForTraversal(). + - Issue #14132: Fix urllib.request redirect handling when the target only has a query string. Original fix by Ján Janech. |