]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Require _tkinter -- don't attempt to import tkinter when _tkinter does
authorGuido van Rossum <guido@python.org>
Sat, 15 Feb 1997 18:33:24 +0000 (18:33 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 15 Feb 1997 18:33:24 +0000 (18:33 +0000)
commit9580609ba30d86fe33aa8c119644403ed68e428b
treeb1425ec5ae5077efea56434da6e0aa0a58a3296f
parent10efb05d517d9d33416083cf2d9aba1cc93a5ffe
Require _tkinter -- don't attempt to import tkinter when _tkinter does
not exist.  All 8 uses of tkinter are replaced with _tkinter.  Still
create a variable tkinter though, because that is used by other
modules importing Tkinter (e.g. tkinter.createfilehandler()).

Also added a comment to the 'import _tkinter' line saying that if this
fails, Python is not configured correctly.
Lib/lib-tk/Tkinter.py
Lib/tkinter/Tkinter.py