Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61277
| 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 | <rosuav@gmail.com> |
| 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 | <c4184cdc-8caf-4c6e-996a-2840a814b502@googlegroups.com> |
| References | <40121057-3c98-4f50-84b3-fd320fe2cedc@googlegroups.com> <mailman.3706.1386439915.18130.python-list@python.org> <c4184cdc-8caf-4c6e-996a-2840a814b502@googlegroups.com> |
| Date | Sun, 8 Dec 2013 18:49:22 +1100 |
| Subject | Re: [newbie] struggling wth tkinter |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3719.1386488971.18130.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Sun, Dec 8, 2013 at 6:40 PM, Jean Dubois <jeandubois314@gmail.com> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-07 08:52 -0800
Re: [newbie] struggling wth tkinter Dave Angel <davea@davea.name> - 2013-12-07 13:12 -0500
Re: [newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-07 23:40 -0800
Re: [newbie] struggling wth tkinter Chris Angelico <rosuav@gmail.com> - 2013-12-08 18:49 +1100
Re: [newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-08 01:15 -0800
Re: [newbie] struggling wth tkinter Cousin Stanley <cousinstanley@gmail.com> - 2013-12-07 11:23 -0700
Re: [newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-07 23:45 -0800
Re: [newbie] struggling wth tkinter Dave Angel <davea@davea.name> - 2013-12-08 09:16 -0500
Re: [newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-08 07:53 -0800
Re: [newbie] struggling wth tkinter Cousin Stanley <cousinstanley@gmail.com> - 2013-12-08 07:16 -0700
Re: [newbie] struggling wth tkinter Terry Reedy <tjreedy@udel.edu> - 2013-12-07 16:11 -0500
Re: [newbie] struggling wth tkinter Christian Gollwitzer <auriocus@gmx.de> - 2013-12-08 09:10 +0100
Re: [newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-08 00:57 -0800
csiph-web