Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.04; 'importerror:': 0.07; 'python3': 0.07; 'tkinter': 0.07; 'try:': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'lower-case': 0.16; "module's": 0.16; 'tkinter.': 0.16; 'wrote:': 0.18; 'module': 0.19; 'subject:] ': 0.20; 'import': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'jean': 0.31; 'except': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'pm,': 0.38; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=LvQzf2VqBEQ7lBy/o++9N5O3rRBDbUpY+517N4rYvG8=; b=z+0VUGd6H/+Juj145HhirvBwRK6ooE3fEQ2WU6Hehpbn/GOeS+06MixthNurMz6PK4 tePMt1QBZWjF8b4E2FQZt44J5APEVOepJ9CM/L7gDXfhsGiQSuUqpYOr64YwHvievNwT MfEBi1aM0i6gc+m3b3sGq46ZUJZu8g2xlw/6Sn9LdbUBdaqk8vu8qIRiug7BWQK6SkbS 3404giLPtMJGc2BiuHT/HLPAEKH7QOk9FE3XygSX54uAKHaYYugGBOrlDkT9ybtctaKJ V3cqrcU833aWbUSEUE8qbYzRpVPcIhHsbSCvIG/mF/LK7IBHjCVplF2ZD4ko1NQHSJ8B N8DQ== MIME-Version: 1.0 X-Received: by 10.66.118.71 with SMTP id kk7mr13980182pab.14.1386488962597; Sat, 07 Dec 2013 23:49:22 -0800 (PST) In-Reply-To: References: <40121057-3c98-4f50-84b3-fd320fe2cedc@googlegroups.com> Date: Sun, 8 Dec 2013 18:49:22 +1100 Subject: Re: [newbie] struggling wth tkinter From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386488971 news.xs4all.nl 2857 [2001:888:2000:d::a6]:56350 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61277 On Sun, Dec 8, 2013 at 6:40 PM, Jean Dubois wrote: > coolens@antec2:~$ python3 feet2meters.py > ImportError: No module named Tkinter In Python 3, the module's named tkinter instead of Tkinter. You should be able to do the exact same import but with the lower-case name, or if you need to support both: try: import tkinter as tk except ImportError: import Tkinter as tk ChrisA