Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105820
| Path | csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Terry Reedy <tjreedy@udel.edu> |
| Newsgroups | comp.lang.python |
| Subject | Re: help with program |
| Date | Sun, 27 Mar 2016 02:28:15 -0400 |
| Lines | 33 |
| Message-ID | <mailman.74.1459060111.28225.python-list@python.org> (permalink) |
| References | <1392737302.749065.1459024715818.JavaMail.yahoo.ref@mail.yahoo.com> <1392737302.749065.1459024715818.JavaMail.yahoo@mail.yahoo.com> <CAPTjJmoLW4ye7RotcjCYtBeGapObWSsJBLMVkaoqshYj+Xw+iA@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de GSdYKhUknRX2jb9JU8m0vARD/JR+qVCI6rn8hbI5N7mQ== |
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'root': 0.04; "'python": 0.07; 'emulates': 0.07; 'versions.': 0.07; 'subject:help': 0.07; 'ast': 0.09; 'exit.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.11; '2016': 0.16; 'entry.': 0.16; 'idle,': 0.16; 'jerry': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'subject:program': 0.16; 'wrote:': 0.16; 'tkinter': 0.22; 'trying': 0.22; 'am,': 0.23; "haven't": 0.24; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'command': 0.26; 'header:X-Complaints-To:1': 0.26; 'chris': 0.26; 'this.': 0.28; "skip:' 10": 0.28; 'program,': 0.29; 'there.': 0.30; 'code': 0.30; 'another': 0.32; 'screen': 0.32; 'though,': 0.32; 'run': 0.33; 'changed': 0.33; 'useful': 0.33; 'third': 0.33; 'usually': 0.33; 'idle': 0.33; 'instead,': 0.33; 'could': 0.35; 'done': 0.35; 'instance': 0.35; 'interact': 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'development.': 0.36; 'faster': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'received:org': 0.37; 'end': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'subject:with': 0.40; 'still': 0.40; 'your': 0.60; 'bring': 0.62; 'details': 0.62; 'received:96': 0.63; 'mar': 0.65; 'results.': 0.67; 'prompt': 0.79; 'open,': 0.84; 'received:fios.verizon.net': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| X-Gmane-NNTP-Posting-Host | pool-96-227-207-81.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
| In-Reply-To | <CAPTjJmoLW4ye7RotcjCYtBeGapObWSsJBLMVkaoqshYj+Xw+iA@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:105820 |
Show key headers only | View raw
On 3/26/2016 6:48 PM, Chris Angelico wrote:
> On Sun, Mar 27, 2016 at 7:38 AM, Jerry Martens
> <jmartens2@ameritech.net> wrote:
>> hi im trying to run this program and it opens a screen really ast
>> and closes it faster withou any results.
> There are a few ways you could do this. One is to run it from the
> command line. Another is to put this line at the end of the program:
>
> input("Press enter to exit. ")
For a tkinter program, use 'root.mainloop()' instead, where root is
usually an instance of tkinter.Tk.
> That should bring up the same screen (called a "console") and then
> have it wait until you're done reading it.
If at a terminal, 'python -i file.py' not only keeps the program open,
but brings up an interactive prompt so you can interact with the
program. This is useful for development.
> A third way is to edit your code using Idle, and run it from there.
IDLE emulates 'python -i file-in-editor.py'
> I haven't done that in a while, though, so the details might have
> changed in the recent versions.
Still F5 or the menu entry.
--
Terry Jan Reedy
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: help with program Terry Reedy <tjreedy@udel.edu> - 2016-03-27 02:28 -0400
csiph-web