Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94753

Re: My code won't work if I double click the saved file

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
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.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'subject:code': 0.07; 'subject:file': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'file,': 0.15; 'idle,': 0.16; 'idle.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.16; 'language': 0.19; 'windows': 0.20; 'posted': 0.21; 'lawrence': 0.22; 'file.': 0.22; 'code,': 0.23; 'bit': 0.23; 'downloaded': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; "doesn't": 0.26; 'command': 0.26; 'header:X -Complaints-To:1': 0.26; 'question': 0.27; 'fine': 0.28; "i'm": 0.30; 'code': 0.30; 'language.': 0.32; 'run': 0.33; 'problem': 0.33; 'idle': 0.33; 'traceback': 0.33; 'worked': 0.34; 'running': 0.34; 'advice': 0.35; 'saved': 0.35; 'expected': 0.35; 'problem.': 0.35; 'but': 0.36; 'there': 0.36; 'url:org': 0.36; 'possible': 0.36; 'subject:work': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'minimum': 0.38; 'someone': 0.38; 'subject:the': 0.39; "didn't": 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'save': 0.60; 'your': 0.60; 'john': 0.61; 'entire': 0.61; 'show': 0.62; 'back': 0.62; 'here.': 0.62; 'charset:windows-1252': 0.62; 'our': 0.64; 'here': 0.66; 'cut': 0.67; 'answer.': 0.72; 'click': 0.76; 'happened.': 0.84; 'pythonistas,': 0.84; 'cutting': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: My code won't work if I double click the saved file
Date Wed, 29 Jul 2015 21:06:47 +0100
References <04881038-a14e-4469-be33-7fcd77496f67@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-78-147-187-35.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
In-Reply-To <04881038-a14e-4469-be33-7fcd77496f67@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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>
Newsgroups comp.lang.python
Message-ID <mailman.1081.1438200427.3674.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1438200427 news.xs4all.nl 2878 [2001:888:2000:d::a6]:37148
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:94753

Show key headers only | View raw


On 29/07/2015 08:20, john wrote:
> I have windows 8 running on my computer and I think I downloaded python 2 and 3 simultaneously or I think my computer has built in python 2 and I downloaded python 3. And now when I ran my code in IDLE, the code works fine but when I save my program and double click the save file, it will run but it doesn't worked like it used to work in IDLE.
>
> Can someone explain the possible problem I'm currently facing?
>
> I just want my program to run perfectly in both IDLE and when I double click the saved file.
>
> I posted my question in stackoverflow but I didn't find an answer.
>
> http://stackoverflow.com/questions/31692156/i-think-my-computer-has-built-in-python-2-and-i-installed-python-3
>

Please run your code from a command prompt.  Tell us exactly what you 
expected to happen and what actually happened.  If you get a traceback 
please cut and paste the entire traceback here.  Show us your code, just 
the bit that causes the problem, as cutting the code back to the bare 
minimum often helps you find the problem.  There is advice on how to do 
this here http://sscce.org/

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

My code won't work if I double click the saved file john <johnreysecoya@gmail.com> - 2015-07-29 00:20 -0700
  Re: My code won't work if I double click the saved file Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-29 21:06 +0100
  Re: My code won't work if I double click the saved file Cameron Simpson <cs@zip.com.au> - 2015-07-30 12:06 +1000
  Re: My code won't work if I double click the saved file Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-30 09:49 +0100

csiph-web