Tkinter problem
Christian Gollwitzer
auriocus at gmx.de
Sat Jun 19 00:22:15 EDT 2021
Am 19.06.21 um 05:59 schrieb Jach Feng:
>>>> import tkinter as Tk
>>>> Tk
> <module 'tkinter' from 'C:\\Users\\jfong\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\tkinter\\__init__.py'>
>>>> from tkinter import *
>>>> Tk
> <class 'tkinter.Tk'>
>>>> tkinter
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> NameError: name 'tkinter' is not defined
>>>>
What's the point? That has no relation to the question.
"import A as B" does not define A. That's a feature, not a bug.
Christian
More information about the Python-list
mailing list