Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '16,': 0.03; 'subject:test': 0.07; 'wednesday,': 0.07; 'cc:addr:python-list': 0.09; 'python': 0.10; 'syntax': 0.13; 'thu,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Problem': 0.16; 'subject:case': 0.16; 'subject:simple': 0.16; 'tkinter.': 0.16; 'used...': 0.16; 'wrote:': 0.16; 'gui': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; '3.0': 0.27; 'code': 0.30; '15,': 0.30; 'option': 0.31; 'post': 0.31; 'another': 0.32; 'included': 0.32; 'run': 0.33; 'received:google.com': 0.35; 'pm,': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'johnson': 0.37; 'where': 0.40; 'subject:with': 0.40; 'programs': 0.62; 'situation': 0.67; 'subject:. ': 0.67; 'stated': 0.70; 'jul': 0.72; 'chrisa': 0.84; 'console,': 0.84; 'trick,': 0.84; 'to:none': 0.91; 'rick': 0.93 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=DsDFm4h4BsE4IAuWjzb49wuDWkuFfLymNNYHW+lB3IE=; b=YXJQthVusbappgDbPJLinlT5rvsAsPNgDgn0kQX/7O6Q4NubZslzTjQkeKw0olZSsc 2WOWIz3hkHyLs3AB/7yTyt/ALJ7LjmN1gukzOZUOopNdi70GWLlqMzq1tDnIS+IeeVxP ykiu3sI0FOREjKBMtW7BoAb+Gk0Fu/OfffE2WodVCjSynpdCuluENeo1n6J64OFnJu1c irjsp4a90SmhLR4jgvefePYgqPwSN69qqPxonhONA8ecq6p1jerwIn90KvLYxs9BlRPA tjTyaTa1yREv3hhDGF28a6mGjDrea2QthI84RKcX8Frt2nX5hob9S73D89yutdquDok5 4HMg== MIME-Version: 1.0 X-Received: by 10.107.159.66 with SMTP id i63mr9696296ioe.68.1437018296300; Wed, 15 Jul 2015 20:44:56 -0700 (PDT) In-Reply-To: <049ae0f4-96d1-4155-8618-32c8931febb0@googlegroups.com> References: <0165e508-b3b4-4a95-b1bb-e115893056f8@googlegroups.com> <79mdneVqW9UGgzrInZ2dnUU7-cOdnZ2d@giganews.com> <049ae0f4-96d1-4155-8618-32c8931febb0@googlegroups.com> Date: Thu, 16 Jul 2015 13:44:56 +1000 Subject: Re: Noob in Python. Problem with fairly simple test case 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437018298 news.xs4all.nl 2884 [2001:888:2000:d::a6]:52880 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.stben.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:93893 On Thu, Jul 16, 2015 at 1:33 PM, Rick Johnson wrote: > On Wednesday, July 15, 2015 at 10:11:43 PM UTC-5, Chris Angelico wrote: >> That's a neat trick, as long as you actually do have a console. > > Well if you don't have a console, another option is to use the > dialogs of the "batteries included GUI" named Tkinter. > > from tkMessageBox import showinfo # Syntax == Python < 3.0 A GUI is another form of console. Not all programs are run in a situation where this makes sense. Also, please don't post Py2-only code when the OP clearly stated that 3.4.3 was being used... ChrisA