Tkinter problem
Jach Feng
jfong at ms4.hinet.net
Sat Jun 19 02:48:49 EDT 2021
Christian Gollwitzer 在 2021年6月19日 星期六下午1:54:46 [UTC+8] 的信中寫道:
> Am 19.06.21 um 07:16 schrieb Jach Feng:
> > 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')
> You have posted this as an answer to Liya's question about Google Colab.
> What you wrote has nothing to do with it and does not help with Liya's
> problem.
>
> I guess you wanted to post another question? Then please open a new
> thread. In addition, the question is unclear, you just posted a
> transcript of three lines of Python.
>
> Christian
I posted to point out there is an error in Liya's script. It's not related to Colab, but it may relate to his problem.
--Jach
More information about the Python-list
mailing list