summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/__init__.py
diff options
context:
space:
mode:
authorCharles-François Natali <cf.natali@gmail.com>2014-07-25 17:45:02 (GMT)
committerCharles-François Natali <cf.natali@gmail.com>2014-07-25 17:45:02 (GMT)
commite396c363cbacce68d7750a7963af4d7cd3bf30e7 (patch)
tree40f9f102e9d7908e6bf4349128d42419e8735fec /Lib/tkinter/__init__.py
parent65708cf510277492660420efa13bd2de163cd21b (diff)
parent2955a0bf06807d4e00ad053a7e2acb516939859e (diff)
downloadcpython-e396c363cbacce68d7750a7963af4d7cd3bf30e7.zip
cpython-e396c363cbacce68d7750a7963af4d7cd3bf30e7.tar.gz
cpython-e396c363cbacce68d7750a7963af4d7cd3bf30e7.tar.bz2
Merge.
Diffstat (limited to 'Lib/tkinter/__init__.py')
-rw-r--r--Lib/tkinter/__init__.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index 10ac188..75e5fb1 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -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):