Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:IDLE': 0.04; 'newbie': 0.05; 'run,': 0.07; 'python': 0.09; 'cursor': 0.09; 'emulates': 0.09; 'interpreter,': 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; 'idle.': 0.16; 'missing,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'run.': 0.16; 'subject:Editing': 0.16; 'windows:': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'shell': 0.18; 'statement': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; 'far,': 0.29; "i'm": 0.29; 'error': 0.30; 'code': 0.31; 'running': 0.32; 'message.': 0.33; 'idle': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'pm,': 0.35; 'continue': 0.35; 'something': 0.35; 'there': 0.35; 'received:org': 0.36; 'should': 0.36; 'problems': 0.36; 'two': 0.37; 'previous': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'bottom': 0.60; 'different': 0.63; 'email addr:gmail.com': 0.63; 'more': 0.63; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Editing in IDLE Date: Sat, 29 Sep 2012 13:52:59 -0400 References: <13cba669-3640-4e7b-8fee-c84c7bafb67c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: <13cba669-3640-4e7b-8fee-c84c7bafb67c@googlegroups.com> 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348941195 news.xs4all.nl 6905 [2001:888:2000:d::a6]:59967 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30517 On 9/29/2012 1:14 PM, peterfarrell66@gmail.com wrote: > Hello to the group! > > I'm a new Python user and so far I'm enjoying it. One of the many > newbie problems I'm having is I can't edit my code in IDLE once it's > run or there's an error message. I can only copy the code so far, > paste at the bottom and continue coding. Is there something simple > I'm missing, or should I be using a different editor? You are missing how to use IDLE. It has two kinds of windows: interactive Shell and Edit windows. The shell more or less emulates the interactive interpreter, running one statement at a time. You can put the cursor on a previous statement and hit return to make it the current statement, where you can edit it. You edit normal multi-statement code in edit windows, hit F5 to run, edit, run, edit, run. -- Terry Jan Reedy