Tkinter rename, step 2: fix imports and add stub modules.

This commit is contained in:
Georg Brandl 2008-05-16 15:48:15 +00:00
parent bbc57d73a0
commit ad9afeb8f0
53 changed files with 206 additions and 85 deletions

View file

@ -7,7 +7,7 @@ from warnings import warnpy3k
warnpy3k("the Canvas module has been removed in Python 3.0", stacklevel=2)
del warnpy3k
from Tkinter import Canvas, _cnfmerge, _flatten
from tkinter import Canvas, _cnfmerge, _flatten
class CanvasItem:

8
Lib/lib-tk/FileDialog.py Normal file
View file

@ -0,0 +1,8 @@
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

8
Lib/lib-tk/FixTk.py Normal file
View file

@ -0,0 +1,8 @@
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

View file

@ -0,0 +1,8 @@
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

View file

@ -0,0 +1,8 @@
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

8
Lib/lib-tk/Tix.py Normal file
View file

@ -0,0 +1,8 @@
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

View file

@ -0,0 +1,8 @@
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

8
Lib/lib-tk/Tkdnd.py Normal file
View file

@ -0,0 +1,8 @@
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

8
Lib/lib-tk/Tkinter.py Normal file
View file

@ -0,0 +1,8 @@
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

View file

@ -0,0 +1,8 @@
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

View file

@ -0,0 +1,8 @@
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

8
Lib/lib-tk/tkFont.py Normal file
View file

@ -0,0 +1,8 @@
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

View file

@ -0,0 +1,8 @@
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

8
Lib/lib-tk/turtle.py Normal file
View file

@ -0,0 +1,8 @@
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