[Tutor] exit app withour raise ?

Kent Johnson kent37 at tds.net
Sun Sep 17 15:46:59 CEST 2006


Dave S wrote:
> In the middle of an application, if someone presses the quit button I want to 
> exit. At the moment i
> 
> raise 'Quit button pressed'
> 
> which works but spews a stack trace leading to the raise statement. Is there a 
> neat way to just exit without a stack trace ?

sys.exit()

Kent



More information about the Tutor mailing list