From 248e3a8b7f7868e72a056609605bc1e7d84b1393 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 20 May 2008 06:49:28 +0000 Subject: [PATCH] Tkinter renaming reversal: Delete all stubs from lib-tk. --- Lib/lib-tk/FileDialog.py | 8 -------- Lib/lib-tk/FixTk.py | 8 -------- Lib/lib-tk/ScrolledText.py | 8 -------- Lib/lib-tk/SimpleDialog.py | 8 -------- Lib/lib-tk/Tix.py | 8 -------- Lib/lib-tk/Tkconstants.py | 8 -------- Lib/lib-tk/Tkdnd.py | 8 -------- Lib/lib-tk/Tkinter.py | 8 -------- Lib/lib-tk/tkColorChooser.py | 8 -------- Lib/lib-tk/tkCommonDialog.py | 8 -------- Lib/lib-tk/tkFileDialog.py | 8 -------- Lib/lib-tk/tkFont.py | 8 -------- Lib/lib-tk/tkMessageBox.py | 8 -------- Lib/lib-tk/tkSimpleDialog.py | 8 -------- Lib/lib-tk/turtle.py | 8 -------- 15 files changed, 120 deletions(-) delete mode 100644 Lib/lib-tk/FileDialog.py delete mode 100644 Lib/lib-tk/FixTk.py delete mode 100644 Lib/lib-tk/ScrolledText.py delete mode 100644 Lib/lib-tk/SimpleDialog.py delete mode 100644 Lib/lib-tk/Tix.py delete mode 100644 Lib/lib-tk/Tkconstants.py delete mode 100644 Lib/lib-tk/Tkdnd.py delete mode 100644 Lib/lib-tk/Tkinter.py delete mode 100644 Lib/lib-tk/tkColorChooser.py delete mode 100644 Lib/lib-tk/tkCommonDialog.py delete mode 100644 Lib/lib-tk/tkFileDialog.py delete mode 100644 Lib/lib-tk/tkFont.py delete mode 100644 Lib/lib-tk/tkMessageBox.py delete mode 100644 Lib/lib-tk/tkSimpleDialog.py delete mode 100644 Lib/lib-tk/turtle.py diff --git a/Lib/lib-tk/FileDialog.py b/Lib/lib-tk/FileDialog.py deleted file mode 100644 index 390f8360597..00000000000 --- a/Lib/lib-tk/FileDialog.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the FileDialog module has been renamed " - "to 'tkinter.filedialog' in Python 3.0", stacklevel=2) - -import tkinter.filedialog -sys.modules[__name__] = tkinter.filedialog diff --git a/Lib/lib-tk/FixTk.py b/Lib/lib-tk/FixTk.py deleted file mode 100644 index d19605aa3bd..00000000000 --- a/Lib/lib-tk/FixTk.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the FixTk module has been renamed " - "to 'tkinter._fix' in Python 3.0", stacklevel=2) - -import tkinter._fix -sys.modules[__name__] = tkinter._fix diff --git a/Lib/lib-tk/ScrolledText.py b/Lib/lib-tk/ScrolledText.py deleted file mode 100644 index 1566d8933aa..00000000000 --- a/Lib/lib-tk/ScrolledText.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the ScrolledText module has been renamed " - "to 'tkinter.scrolledtext' in Python 3.0", stacklevel=2) - -import tkinter.scrolledtext -sys.modules[__name__] = tkinter.scrolledtext diff --git a/Lib/lib-tk/SimpleDialog.py b/Lib/lib-tk/SimpleDialog.py deleted file mode 100644 index 707f2f54b73..00000000000 --- a/Lib/lib-tk/SimpleDialog.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the SimpleDialog module has been renamed " - "to 'tkinter.simpledialog' in Python 3.0", stacklevel=2) - -import tkinter.simpledialog -sys.modules[__name__] = tkinter.simpledialog diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py deleted file mode 100644 index 77d3df09e13..00000000000 --- a/Lib/lib-tk/Tix.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the Tix module has been renamed " - "to 'tkinter.tix' in Python 3.0", stacklevel=2) - -import tkinter.tix -sys.modules[__name__] = tkinter.tix diff --git a/Lib/lib-tk/Tkconstants.py b/Lib/lib-tk/Tkconstants.py deleted file mode 100644 index 1cf2c8f8bd7..00000000000 --- a/Lib/lib-tk/Tkconstants.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the Tkconstants module has been renamed " - "to 'tkinter.constants' in Python 3.0", stacklevel=2) - -import tkinter.constants -sys.modules[__name__] = tkinter.constants diff --git a/Lib/lib-tk/Tkdnd.py b/Lib/lib-tk/Tkdnd.py deleted file mode 100644 index dfc0f74a3a0..00000000000 --- a/Lib/lib-tk/Tkdnd.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the Tkdnd module has been renamed " - "to 'tkinter.dnd' in Python 3.0", stacklevel=2) - -import tkinter.dnd -sys.modules[__name__] = tkinter.dnd diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py deleted file mode 100644 index 4e56a37452e..00000000000 --- a/Lib/lib-tk/Tkinter.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the Tkinter module has been renamed " - "to 'tkinter' in Python 3.0", stacklevel=2) - -import tkinter -sys.modules[__name__] = tkinter diff --git a/Lib/lib-tk/tkColorChooser.py b/Lib/lib-tk/tkColorChooser.py deleted file mode 100644 index 284bc27ae3f..00000000000 --- a/Lib/lib-tk/tkColorChooser.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the tkColorChooser module has been renamed " - "to 'tkinter.colorchooser' in Python 3.0", stacklevel=2) - -import tkinter.colorchooser -sys.modules[__name__] = tkinter.colorchooser diff --git a/Lib/lib-tk/tkCommonDialog.py b/Lib/lib-tk/tkCommonDialog.py deleted file mode 100644 index 80fcd453178..00000000000 --- a/Lib/lib-tk/tkCommonDialog.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the tkCommonDialog module has been renamed " - "to 'tkinter.commondialog' in Python 3.0", stacklevel=2) - -import tkinter.commondialog -sys.modules[__name__] = tkinter.commondialog diff --git a/Lib/lib-tk/tkFileDialog.py b/Lib/lib-tk/tkFileDialog.py deleted file mode 100644 index 9e403c75074..00000000000 --- a/Lib/lib-tk/tkFileDialog.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the tkFileDialog module has been renamed " - "to 'tkinter.filedialog' in Python 3.0", stacklevel=2) - -import tkinter.filedialog -sys.modules[__name__] = tkinter.filedialog diff --git a/Lib/lib-tk/tkFont.py b/Lib/lib-tk/tkFont.py deleted file mode 100644 index 0e12bc09791..00000000000 --- a/Lib/lib-tk/tkFont.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the tkFont module has been renamed " - "to 'tkinter.font' in Python 3.0", stacklevel=2) - -import tkinter.font -sys.modules[__name__] = tkinter.font diff --git a/Lib/lib-tk/tkMessageBox.py b/Lib/lib-tk/tkMessageBox.py deleted file mode 100644 index cea676de884..00000000000 --- a/Lib/lib-tk/tkMessageBox.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the tkMessageBox module has been renamed " - "to 'tkinter.messagebox' in Python 3.0", stacklevel=2) - -import tkinter.messagebox -sys.modules[__name__] = tkinter.messagebox diff --git a/Lib/lib-tk/tkSimpleDialog.py b/Lib/lib-tk/tkSimpleDialog.py deleted file mode 100644 index 7230c8a54dd..00000000000 --- a/Lib/lib-tk/tkSimpleDialog.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the tkSimpleDialog module has been renamed " - "to 'tkinter.simpledialog' in Python 3.0", stacklevel=2) - -import tkinter.simpledialog -sys.modules[__name__] = tkinter.simpledialog diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py deleted file mode 100644 index 88b8c613bdc..00000000000 --- a/Lib/lib-tk/turtle.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys -from warnings import warnpy3k - -warnpy3k("the turtle module has been renamed " - "to 'tkinter.turtle' in Python 3.0", stacklevel=2) - -import tkinter.turtle -sys.modules[__name__] = tkinter.turtle