summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/tix.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tkinter/tix.py')
-rw-r--r--Lib/tkinter/tix.py9
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'