Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'tkinter': 0.07; 'python': 0.09; 'buffer.': 0.09; 'executes': 0.09; 'nameerror:': 0.09; 'subject:script': 0.09; 'dec': 0.15; '0.9.5': 0.16; 'expected,': 0.16; 'opens,': 0.16; 'subject:gui': 0.16; 'thanks,': 0.18; 'shell': 0.18; '(or': 0.18; 'app': 0.19; 'trying': 0.21; 'either.': 0.22; 'help.': 0.22; 'defined': 0.22; 'command': 0.24; 'header:User-Agent:1': 0.26; 'skip:" 20': 0.26; '(most': 0.27; "doesn't": 0.28; 'received:10.0.0': 0.28; 'environment': 0.29; 'invoke': 0.29; 'class': 0.29; "i'm": 0.29; 'file': 0.32; 'getting': 0.33; 'traceback': 0.33; 'received:10.0': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'skip:. 20': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'message- id:@gmail.com': 0.36; 'editor': 0.37; 'received:209': 0.37; 'received:10': 0.38; '2010,': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'back': 0.62; 'subject:running': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; bh=WFYv369j9XN/EPjLnbPGXr0HnezYP5zrDlAh2wdyUJU=; b=xxmpA5L5frVOxN5BP1KOsZz1izINcrSn5Jn36p998HcDImF58qJK+jmfnbIwOvvkvo D5cj+bmaccSl6zE9g89ZVVZ6MreExTzbZom4rFV9ufQonv2595YKV3WnIW9vEvLvMjyo GNsAp8iEu+mv0sM/+1cL2POlzgwj65ld1oqJ+pOakr0RnABqp4/FBFebHTUXLF8GQeyg diKuLcO7w0KewFWVi23gvblweWYN09wX2tq5SZ/jyc52STF+i69gbkShy/F6E/y3x9YI BDJOw2B4v/RPXf7R++kyOdpJsT3DXrTxvyzotzT4W6hbN37wbjYtbdg0f9j31I6Xgksu 4yMw== X-Received: by 10.236.91.84 with SMTP id g60mr25555735yhf.46.1356552389448; Wed, 26 Dec 2012 12:06:29 -0800 (PST) Date: Wed, 26 Dec 2012 15:07:27 -0500 From: Verde Denim User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20121215 Iceowl/1.0b1 Icedove/3.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: running gui py script X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356562359 news.xs4all.nl 6931 [2001:888:2000:d::a6]:54353 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35544 I'm learning py in this environment - PyCrust 0.9.5 - The Flakiest Python Shell Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) [GCC 4.4.5] on linux2 When I type a tkinter program in pycrust (or pyshell), it executes as expected, but when I call it from a command line, it doesn't. What I'm getting back is this - python my_first_gui_in_py.py Traceback (most recent call last): File "my_first_gui_in_py.py", line 2, in class myapp_tk(Tkinter.Tk): File "my_first_gui_in_py.py", line 14, in myapp_tk app = myapp_tk(None) NameError: name 'myapp_tk' is not defined Trying to call the file in pycrust doesn't seem to work for me either. If I invoke pycrust either as $ pycrust ./my_first_gui_in_py.py or $ pycrust < ./my_first_gui_in_py.py the editor opens, but with an empty buffer. What is it that I'm not understanding? Thanks, as always for the help.