[Tutor] Fwd: how to stop a function

Andre Engels andreengels at gmail.com
Tue Apr 24 17:18:18 CEST 2007


---------- Forwarded message ----------
From: Andre Engels <andreengels at gmail.com>
Date: 24 apr. 2007 17:18
Subject: Re: [Tutor] how to stop a function
To: shawn bright <nephish at gmail.com>


2007/4/24, shawn bright <nephish at gmail.com>:
> hello all,
>
> i have a gui app that uses functions to respond to gui events.
>
> like
> def on_start_button_clicked(self, stuff):
>     do this or that.
>
> now there is one function that i have a kinda nested if else
> conditions that i need to stop if necessary
>
> if value == 1:
>     if next_val == 4:
>        do this or that
>     else:
>        here i need the function to just die

    else:
         return



--
Andre Engels, andreengels at gmail.com
ICQ: 6260644  --  Skype: a_engels


-- 
Andre Engels, andreengels at gmail.com
ICQ: 6260644  --  Skype: a_engels


More information about the Tutor mailing list