
from com.sri.ai.spark.util import SparkForm

#Example : askUser(("<NAME>", "<NAME>"))

def askUser(descriptions):
    form = SparkForm(descriptions)
    form.showForm()
    if form.didUserSubmit():
        print "User clicked on Submit"
        values = tuple(form.getValues())
        print "Values are: ", str(values)
    else:
        print "User clicked on Cancel"


from com.sri.ai.spark.util import SparkForm

#Example : askUser(("<NAME>", "<NAME>"))

def askUser(descriptions):
    form = SparkForm(descriptions)
    form.showForm()
    if form.didUserSubmit():
        print "User clicked on Submit"
        values = tuple(form.getValues())
        print "Values are: ", str(values)
    else:
        print "User clicked on Cancel"

#Example : askUser(("<NAME>", "<NAME>"))