[Tutor] Another question about GUI applications.
fomcl at yahoo.com
Wed Nov 9 13:26:20 CET 2011
Ah, good that they've renamed it to lowercase. Isn't there a convention to only use a capital for class names? (and of course for constants, which are all caps).
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us?
>From: Alan Gauld <alan.gauld at btinternet.com>
>To: tutor at python.org
>Sent: Wednesday, November 9, 2011 1:26 AM
>Subject: Re: [Tutor] Another question about GUI applications.
>On 08/11/11 22:41, Steven D'Aprano wrote:
>> Nathaniel Trujillo wrote:
>>> Traceback (most recent call last):
>>> File "C:\Python31\mad_lib.py.py", line 112, in <module>
>>> root = Tkinter.Tk()
>>> NameError: name 'Tkinter' is not defined
>> You have to import the Tkinter module first:
>And since you seem to be using Python v3 its spelled
>root = Tkinter.Tk()
>is a variable which you will need to define with
>a real filename.
>Author of the Learn to Program web site
>Tutor maillist - Tutor at python.org
>To unsubscribe or change subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor