Example #1
0
def main():
    rio.output("I'm running this from my laptop.")
    time.sleep(2)
    rio.output("I also added some delay so this looks more fancy.")
    time.sleep(2)
    rio.choice("Do you like it?").then(respond)
Example #2
0
def example_input():
    rio.output('ReadlineIO example input')
    rio.output('Follow-up output')
    rio.input('Give me a picture URL').then(print_image)
Example #3
0
def respond(choice):
    if choice == 'Yes':
        rio.output('Yay!')
    else:
        rio.output('Oh...')
Example #4
0
def print_name(name):
    rio.output('Hello ' + name + '!')
    rio.input('What is up?').then(print_okay)
Example #5
0
def print_okay(message):
    rio.output('Cool. Cool.')
Example #6
0
def print_image(url):
    rio.output("HERE IS YOUR IMAGE")
    rio.output_image(url)
Example #7
0
def print_image(url):
	rio.output("HERE IS YOUR IMAGE")
	rio.output_image(url)
Example #8
0
def example_input():
    rio.output('ReadlineIO example input')
    rio.output('Follow-up output')
    rio.input('Give me a picture URL').then(print_image)
Example #9
0
def print_okay(message):
    rio.output('Cool. Cool.')
Example #10
0
def print_name(name):
    rio.output('Hello ' + name + '!')
    rio.input('What is up?').then(print_okay)