Re: [Tutor] Running a script!

2011-12-11 Thread David Smith

If I have understood you correctly you are looking at the Python Shell.

On this window choose File then New Window this will open a script window 
albeit without any code. This window will have a Run menu and within this menu 
there is a Run Module item which is what I think you are looking for. I hope 
this helps.

Dax

On 12 Dec 2011, at 06:00, Bulent Arikan wrote:

> Dear List,
> 
> I am an absolute beginner to programming and Python. I have Python 2.6.5 and 
> 3.2 running on Mac OS 10.6.8 Snow Leopard. I have self-help books but the 
> problem I am having is not described in any of them. The answer may be too 
> obvious though. I am using IDLE: I figured that I could call Idle by typing 
> its name on the Terminal instead of launching it from the Applications –WOW! 
> big step ;)) When I save a script as (.py) document, I do not know how to 
> 'run' it since the IDLE (2.6 or 3.2) menus do not have RUN option (as they 
> describe in the books I have). I understand that I may have to type a command 
> to run the script on the Terminal but I could not find a specific command. It 
> also seemed strange to me that there was not a shortcut in Mac OS to run 
> scripts unlike Windows.
> 
> Thank you for your time and help,  
> 
> -- 
> BÜLENT 
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Visual and audible system bell

2011-12-11 Thread David Smith
Dear list

In a terminal window

python3.2 

at the command gives me 

Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) 
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

then

 print ("\a")

triggers a visual and audible bell as set in Terminal window preferences.

However 

 print ("\a")

and pressing Enter in a Python Shell window

or including 

print ("\a")
input ("\n\nPress the enter key to exit.")

results in neither a visible nor an audible system bell.

Any suggestions?

Mac OS X 10.7.2
Terminal 2.2.1(299)
Python 3.2
Tk 8.5

Dax



___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] how to stop a running program in python without closing python interface?

2012-02-12 Thread David Smith

On 12 Feb 2012, at 11:54, Debashish Saha wrote:

> actually a i ran a progam in python which is sufficiently large . so i
> want to stop the execution of the program now . how can i do this?

This will depend on your operating system.

On a Mac you press alt + command + esc and the choose the program you want to 
Force Quit. I have no idea what you do on Windows or Unix.

Dax

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor