mirror of
https://github.com/python/cpython.git
synced 2025-11-10 22:36:18 +00:00
added deprecation warnings to them.
This commit is contained in:
commit
68a470f65d
1 changed files with 12 additions and 0 deletions
|
|
@ -419,6 +419,12 @@ class Misc:
|
||||||
disabledForeground, insertBackground, troughColor."""
|
disabledForeground, insertBackground, troughColor."""
|
||||||
self.tk.call(('tk_setPalette',)
|
self.tk.call(('tk_setPalette',)
|
||||||
+ _flatten(args) + _flatten(list(kw.items())))
|
+ _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'):
|
def wait_variable(self, name='PY_VAR'):
|
||||||
"""Wait until the variable is modified.
|
"""Wait until the variable is modified.
|
||||||
|
|
||||||
|
|
@ -2660,6 +2666,12 @@ class Menu(Widget):
|
||||||
def tk_popup(self, x, y, entry=""):
|
def tk_popup(self, x, y, entry=""):
|
||||||
"""Post the menu at position X,Y with entry ENTRY."""
|
"""Post the menu at position X,Y with entry ENTRY."""
|
||||||
self.tk.call('tk_popup', self._w, x, y, 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):
|
def activate(self, index):
|
||||||
"""Activate entry at INDEX."""
|
"""Activate entry at INDEX."""
|
||||||
self.tk.call(self._w, 'activate', index)
|
self.tk.call(self._w, 'activate', index)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue