]> granicus.if.org Git - python/commitdiff
Issue #22061: Restored empty obsolete methods removed in issue #4350 and
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 25 Jul 2014 09:29:40 +0000 (12:29 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 25 Jul 2014 09:29:40 +0000 (12:29 +0300)
added deprecation warnings to them.

1  2 
Lib/tkinter/__init__.py

index 3f30ae4b7485aa5857fedaffc946100174d43004,75e5fb1cd7cbba389e60ee032c1f79ff81a89461..aaa2bfce1a0552db90e3d0b33d370f5eaf019b5e
@@@ -2657,9 -2676,35 +2663,15 @@@ class Menu(Widget)
          disabledforeground, fg, font, foreground, postcommand, relief,
          selectcolor, takefocus, tearoff, tearoffcommand, title, type."""
          Widget.__init__(self, master, 'menu', cnf, kw)
 -    def tk_mbPost(self):
 -        self.tk.call('tk_mbPost', self._w)
 -    def tk_mbUnpost(self):
 -        self.tk.call('tk_mbUnpost')
 -    def tk_traverseToMenu(self, char):
 -        self.tk.call('tk_traverseToMenu', self._w, char)
 -    def tk_traverseWithinMenu(self, char):
 -        self.tk.call('tk_traverseWithinMenu', self._w, char)
 -    def tk_getMenuButtons(self):
 -        return self.tk.call('tk_getMenuButtons', self._w)
 -    def tk_nextMenu(self, count):
 -        self.tk.call('tk_nextMenu', count)
 -    def tk_nextMenuEntry(self, count):
 -        self.tk.call('tk_nextMenuEntry', count)
 -    def tk_invokeMenu(self):
 -        self.tk.call('tk_invokeMenu', self._w)
 -    def tk_firstMenu(self):
 -        self.tk.call('tk_firstMenu', self._w)
 -    def tk_mbButtonDown(self):
 -        self.tk.call('tk_mbButtonDown', self._w)
 -    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_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)