File: flash_multiple_rb.py

package info (click to toggle)
python-easygui 0.98.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,408 kB
  • sloc: python: 3,189; makefile: 151; xml: 120
file content (16 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import sys

sys.path.append('..')
import easygui

# This is an example of Robby's need to have callbacks.  Since location is retained this works better.
choices = ["on", "off", "forward", "backward", "right", "left"] 
inp = ''
while inp != "None": #happens when the user presses ESC
    inp = easygui.buttonbox("controller","robot", choices)
    if inp == "forward":
        pass
    elif inp == "backward":
        pass
    elif inp == "off":
        break