Tkinter problem

Jach Feng jfong at ms4.hinet.net
Sat Jun 19 01:16:18 EDT 2021


Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道:
> 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
No, it's not. It's only because this line triggers my response:-)
> label1 = tkinter.Label(master, text='Hellooooo') 

--Jach


More information about the Python-list mailing list