[Tutor] how to stop a function

shawn bright nephish at gmail.com
Tue Apr 24 17:04:33 CEST 2007


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
    do somthing here

is there something i can do to make this happen?

thanks


More information about the Tutor mailing list