diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-07 16:14:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 16:14:48 (GMT) |
commit | ec6a1ea1ee67a5e7c8ee5f5b1541bc1c6e17a373 (patch) | |
tree | bb65c243589aca7610c8e17d1bc7bd52f6ec603f /Lib/tkinter/tix.py | |
parent | a8fa6b248fdd99da0b38c3452b7a1d6d71addca5 (diff) | |
download | cpython-ec6a1ea1ee67a5e7c8ee5f5b1541bc1c6e17a373.zip cpython-ec6a1ea1ee67a5e7c8ee5f5b1541bc1c6e17a373.tar.gz cpython-ec6a1ea1ee67a5e7c8ee5f5b1541bc1c6e17a373.tar.bz2 |
bpo-41730: Show deprecation warnings for tkinter.tix (GH-22186)
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Co-authored-by: Zachary Ware <zach@python.org>
(cherry picked from commit 4a2d98a1e98de25c5114d11fcb0f9fedbb057e51)
Co-authored-by: wyz23x2 <52805709+wyz23x2@users.noreply.github.com>
Diffstat (limited to 'Lib/tkinter/tix.py')
-rw-r--r-- | Lib/tkinter/tix.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/tkinter/tix.py b/Lib/tkinter/tix.py index 7d24075..44ecae1 100644 --- a/Lib/tkinter/tix.py +++ b/Lib/tkinter/tix.py @@ -21,13 +21,20 @@ # Compare the demo tixwidgets.py to the original Tcl program and you will # appreciate the advantages. # +# NOTE: This module is deprecated since Python 3.6. import os +import warnings import tkinter from tkinter import * from tkinter import _cnfmerge -import _tkinter # If this fails your Python may not be configured for Tk +warnings.warn( + 'The Tix Tk extension is unmaintained, and the tkinter.tix wrapper module' + ' is deprecated in favor of tkinter.ttk', + DeprecationWarning, + stacklevel=2, + ) # Some more constants (for consistency with Tkinter) WINDOW = 'window' |