mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #22061: Add deprecation warnings in empty obsolete methods.
This commit is contained in:
parent
5c1b8f3de6
commit
1a901cc952
1 changed files with 9 additions and 2 deletions
|
@ -421,7 +421,10 @@ class Misc:
|
|||
+ _flatten(args) + _flatten(list(kw.items())))
|
||||
def tk_menuBar(self, *args):
|
||||
"""Do not use. Needed in Tk 3.6 and earlier."""
|
||||
pass # obsolete since Tk 4.0
|
||||
# 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.
|
||||
|
||||
|
@ -2674,7 +2677,11 @@ class Menu(Widget):
|
|||
selectcolor, takefocus, tearoff, tearoffcommand, title, type."""
|
||||
Widget.__init__(self, master, 'menu', cnf, kw)
|
||||
def tk_bindForTraversal(self):
|
||||
pass # obsolete since Tk 4.0
|
||||
# obsolete since Tk 4.0
|
||||
import warnings
|
||||
warnings.warn('tk_bindForTraversal() does nothing and '
|
||||
'will be removed in 3.6',
|
||||
DeprecationWarning, stacklevel=2)
|
||||
def tk_mbPost(self):
|
||||
self.tk.call('tk_mbPost', self._w)
|
||||
def tk_mbUnpost(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue