Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'type,': 0.07; 'whichever': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'interpreter': 0.15; '3.0,': 0.16; 'ah,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.16; 'case.': 0.18; 'module,': 0.18; 'typing': 0.18; 'changes': 0.20; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'tkinter': 0.22; 'am,': 0.23; '2015': 0.23; 'module': 0.23; 'errors': 0.23; 'import': 0.24; 'header:In- Reply-To:1': 0.24; 'installed': 0.26; 'mostly': 0.27; 'turns': 0.27; 'message-id:@mail.gmail.com': 0.28; 'older': 0.32; 'received:google.com': 0.34; 'newer': 0.35; 'but': 0.36; 'there': 0.36; 'should': 0.37; 'subject:: ': 0.37; 'rather': 0.38; 'means': 0.39; 'your': 0.60; 'john': 0.61; 'gave': 0.63; 'upper': 0.76; 'chrisa': 0.84; 'to:none': 0.90 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=tH4ZWVQ+wOpOv4JHGT+eJ52vI/rX67hMcP+Sy+oGqXY=; b=Vx1ms0bVwSYKTzl6FlRlkHHYzAarvPpGmqwaf6SI+AWU4o0GLBB+6rjeM5YfJGgqff GCS3WVzhmUswUNfke0A5U6YP081jQx+ZcJC0TDDEyX8qntZDtOF7XrK7ElYzlxy+l/oc Rd/OxYEHSp7tCB7aHxvDSU0uczLLdg7aSO7evpeWY79DPrQcCQY14dqnIYWLhZdR0SA4 sFZgGWYz7/V6hq4h+08zndKAXYqt1kLwrvtckKajEuLcn5a9EA+wqJlP9sgMCmkg+cX5 RZzVXfKvjh2d/9q0i59zAL3c6jGpL9QEAoiktAB7FmWVM1aGBSReFX/nCKupAuGjeSLy zHMA== MIME-Version: 1.0 X-Received: by 10.50.2.3 with SMTP id 3mr5248704igq.34.1433625642115; Sat, 06 Jun 2015 14:20:42 -0700 (PDT) In-Reply-To: References: Date: Sun, 7 Jun 2015 07:20:42 +1000 Subject: Re: Keypress Input 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.20+ 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433625651 news.xs4all.nl 2882 [2001:888:2000:d::a6]:45176 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92190 On Sun, Jun 7, 2015 at 4:28 AM, John McKenzie wrote: > It turns out Tkinter is installed on Raspian and my Pi has it. Typing > import tkinter into the Python interpreter gave me an error, then I > corrected my spelling. The T should be upper case. No errors with "import > Tkinter". Ah, that means your Python interpreter is the older (version 2) type, rather than the newer (version 3). As of Python 3.0, the module is named "tkinter". Use whichever one you have; there are a few other changes inside the module, but the functionality's mostly the same. ChrisA