[Tutor] Another question about GUI applications.

Albert-Jan Roskam 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).


Cheers!!
Albert-Jan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
>
>import tkinter
>
>in lowercase...
>
>Also:
>
>root = Tkinter.Tk()
>root.iconbitmap(default=ico_image_filename)
>
>ico_image_filename
>
>is a variable which you will need to define with
>a real filename.
>
>-- 
>Alan G
>Author of the Learn to Program web site
>http://www.alan-g.me.uk/
>
>_______________________________________________
>Tutor maillist  -  Tutor at python.org
>To unsubscribe or change subscription options:
>http://mail.python.org/mailman/listinfo/tutor
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111109/fded5239/attachment.html>


More information about the Tutor mailing list