예제 #1
0
def show(img,grp=-1):
	try:
		Image(img)
		r_eval(b"display.show(Image(%r))"%img,grp)
		return
	except:pass
	r_eval(b"display.show(Image.%s)"%img,grp)
예제 #2
0
def play(mid, wait=0, grp=-1):
    r_eval(b"music.play(music.%s,wait=%d)" % (mid, wait), grp)
예제 #3
0
def button(btn, grp=-1):
    _res.clear()
    for i, g in r_eval(b"button_%s.get_presses()" % btn.lower(), grp):
        _res.append((int(i), g))
    return tuple(_res)
예제 #4
0
def scroll(text, wait=0, grp=-1):
    r_eval(b"display.scroll(%r,wait=%d)" % (text, wait), grp)