Skip to content

Commit

Permalink
Issue python#22061: Restored empty obsolete methods removed in issue p…
Browse files Browse the repository at this point in the history
…ython#4350 and

added deprecation warnings to them.
  • Loading branch information
serhiy-storchaka committed Jul 25, 2014
2 parents 415c2cd + 1a901cc commit 68a470f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Lib/tkinter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,12 @@ def tk_setPalette(self, *args, **kw):
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.
Expand Down Expand Up @@ -2660,6 +2666,12 @@ def __init__(self, master=None, cnf={}, **kw):
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)
Expand Down

0 comments on commit 68a470f

Please sign in to comment.