cpython: 7e6beea0eeab (original) (raw)
Mercurial > cpython
changeset 91850:7e6beea0eeab
Issue #22061: Restored empty obsolete methods removed in issue #4350 and added deprecation warnings to them. [#22061]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Fri, 25 Jul 2014 12:29:40 +0300 |
parents | 9e9e6e9f4cce(current diff)a50297e793f9(diff) |
children | dd3ecbe1ab26 |
files | Lib/tkinter/__init__.py |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-)[+] [-] Lib/tkinter/__init__.py 12 |
line wrap: on
line diff
--- a/Lib/tkinter/init.py +++ b/Lib/tkinter/init.py @@ -419,6 +419,12 @@ 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."""[](#l1.8)
# obsolete since Tk 4.0[](#l1.9)
import warnings[](#l1.10)
warnings.warn('tk_menuBar() does nothing and will be removed in 3.6',[](#l1.11)
def wait_variable(self, name='PY_VAR'): """Wait until the variable is modified.DeprecationWarning, stacklevel=2)[](#l1.12)
@@ -2660,6 +2666,12 @@ 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[](#l1.21)
import warnings[](#l1.22)
warnings.warn('tk_bindForTraversal() does nothing and '[](#l1.23)
'will be removed in 3.6',[](#l1.24)
def activate(self, index): """Activate entry at INDEX.""" self.tk.call(self._w, 'activate', index)DeprecationWarning, stacklevel=2)[](#l1.25)