[Tutor] Modules
Joel Goldstick
joel.goldstick at gmail.com
Wed Mar 27 21:31:45 CET 2013
On Wed, Mar 27, 2013 at 4:12 PM, Mark Lawrence <breamoreboy at yahoo.co.uk>wrote:
> On 27/03/2013 19:34, Cor Heisterkamp wrote:
>
>> Hi,
>>
>> I just started with Python and found a course named "Python programming"
>> by Jody S. Gunther.
>> My problem starts with the chapter "Introduction to Modules".
>> The first line in the program is:
>> from tkinter import *
>> and here I'm getting an error:
>> ImportError: No module named tkinter
>>
>> What to do?
>>
>> google it and you find: http://wiki.python.org/moin/TkInter
>>
>
Step 2 - can Tkinter be imported?
Try the correct command for your version at the Python prompt:
>>> import Tkinter # no underscore, uppercase 'T' for versions prior to V3.0
>>> import tkinter # no underscore, lowercase 't' for V3.0 and later
>
> This works for me with Python 3.3 on Windows Vista. What OS and Python
> version are you using, as I believe that this was tKinter in Python 2?
>
> --
> If you're using GoogleCrap™ please read this http://wiki.python.org/moin/*
> *GoogleGroupsPython <http://wiki.python.org/moin/GoogleGroupsPython>.
>
> Mark Lawrence
>
>
> ______________________________**_________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor>
>
--
Joel Goldstick
http://joelgoldstick.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130327/05dc8401/attachment.html>
More information about the Tutor
mailing list