Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!204.52.135.9.MISMATCH!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'importerror:': 0.05; 'python3': 0.05; 'reason,': 0.07; 'tkinter': 0.07; 'python': 0.09; 'imported': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'windows,': 0.09; 'interfaces': 0.15; '3.1.3': 0.16; '39,': 0.16; 'message-id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'tk.': 0.16; 'tkinter.': 0.16; 'wrote:': 0.17; 'jan': 0.18; '>>>': 0.18; 'module': 0.19; 'skip:" 40': 0.20; 'import': 0.21; '"",': 0.22; 'installed': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; '(most': 0.27; 'am,': 0.27; 'compiled': 0.27; 'header:X-Complaints-To:1': 0.28; 'file': 0.32; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'whatever': 0.35; 'nov': 0.35; 'subject:?': 0.35; 'received:org': 0.36; 'subject:: ': 0.38; '2010,': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'more': 0.63; 'jul': 0.65; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: how to use tkinter in python3.2? Date: Sun, 01 Jul 2012 01:23:25 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1341120219 news.xs4all.nl 6872 [2001:888:2000:d::a6]:35190 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24725 On 7/1/2012 12:25 AM, contro opinion wrote: I am on Windows, but... > tiger@ocean:~$ python3.2 > Python 3.2.3 (default, Jul 1 2012, 11:07:14) > [GCC 4.4.5] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import tkinter > Traceback (most recent call last): > File "", line 1, in > File "/usr/local/lib/python3.2/tkinter/__init__.py", line 39, in > import _tkinter # If this fails your Python may not be configured > for Tk > ImportError: No module named _tkinter _tkinter is the compiled C module that directly interfaces to tk. It is imported by the python module tkinter. For whatever reason, it was not compiled for your installation. Who did the compilation? > i have installed tk ,how to use tkinker in python3.2? > > in my computer ,i can use tkinter in python3 > tiger@ocean:~$ python3 > Python 3.1.3 (r313:86834, Nov 28 2010, 11:28:10) > [GCC 4.4.5] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import tkinter and who compiled that (correctly)? -- Terry Jan Reedy