]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #27031: Removed dummy methods in Tkinter widget classes: tk_menuBar()
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 16 May 2016 19:35:46 +0000 (22:35 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 16 May 2016 19:35:46 +0000 (22:35 +0300)
and tk_bindForTraversal().

Doc/whatsnew/3.6.rst
Lib/tkinter/__init__.py
Misc/NEWS

index bad0f9e5cfe7ebd9d5681f64663f0aa04c32d4c2..ce0ce82ce74e177053aaefc604444215b6835acb 100644 (file)
@@ -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
 =====================
index 7fbe147787f110e9801c84a261f998fb9b4896a3..357385eb1a12ef5b4d2eea51f704b5fdd620625c 100644 (file)
@@ -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)
index 63299e38599a0aa166310cb08f79195d17cfcffc..5ba249b8438c05fc9693ea5a72f30094524e776d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.