[Tutor] Save as

alan.gauld@bt.com alan.gauld@bt.com
Tue Dec 3 05:51:11 2002


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C29AB9.B344DB94
Content-Type: text/plain;
	charset="iso-8859-1"

>  When i save a Python file, if i try to open it again, i am asked what i
want  
>  to open it with, can you help on this please. 
 
Are you giving it a .py extension when you save it?
Thats what XP looks for in determining the program to open it.
 
The installer should have set it up to be the interpreter
(which BTW may result in it running and closing before you 
can see the output!  Fix that by putting a raw_input() line 
at the end of the file...)
 
Does the icon look like a snake?
Alan g.
Author of the 'Learning to Program' web site
http://www.freenetpages.co.uk/hp/alan.gauld
<http://www.freenetpages.co.uk/hp/alan.gauld>  


------_=_NextPart_001_01C29AB9.B344DB94
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2><SPAN class=550235110-03122002><FONT face="Courier New" 
color=#0000ff>&gt; &nbsp;</FONT></SPAN>When i save a Python file, if i try to 
open it again, i am asked what i want&nbsp;<SPAN class=550235110-03122002><FONT 
face="Courier New" color=#0000ff>&nbsp;</FONT></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=550235110-03122002><FONT face="Courier New" 
color=#0000ff>&gt; </FONT>&nbsp;</SPAN>to open it with, can you help on this 
please.<SPAN class=550235110-03122002><FONT face="Courier New" 
color=#0000ff>&nbsp;</FONT></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=550235110-03122002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2><SPAN class=550235110-03122002><FONT face="Courier New" 
color=#0000ff>Are you giving it a .py extension when you save 
it?</FONT></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=550235110-03122002><FONT face="Courier New" 
color=#0000ff>Thats what XP looks for in determining the program to open 
it.</FONT></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=550235110-03122002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2><SPAN class=550235110-03122002><FONT face="Courier New" 
color=#0000ff>The installer should have set it up to be the 
interpreter</FONT></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=550235110-03122002><FONT face="Courier New" 
color=#0000ff>(which BTW may result in it running and closing before you 
</FONT></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=550235110-03122002><FONT face="Courier New" 
color=#0000ff>can see the output!</FONT>&nbsp;<FONT face="Courier New" 
color=#0000ff> Fix that by putting a raw_input() line 
</FONT></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=550235110-03122002><FONT face="Courier New" 
color=#0000ff>at the end of the file...)</FONT></SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2><SPAN 
class=550235110-03122002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2><SPAN 
class=550235110-03122002>Does the icon look like a snake?</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2><SPAN 
class=550235110-03122002>
<P><FONT size=2>Alan g.<BR>Author of the 'Learning to Program' web site<BR><A 
target=_blank 
href="http://www.freenetpages.co.uk/hp/alan.gauld">http://www.freenetpages.co.uk/hp/alan.gauld</A></FONT> 
</P></SPAN></FONT></DIV></BODY></HTML>

------_=_NextPart_001_01C29AB9.B344DB94--