def write():
    global path
    bot = AutoKiddobot()
    bot.start()
    x, y = xycvrt(path)
    bot.go_to_xy(y[0], x[0])
    time.sleep(1)
    move(x, y)
    bot.pen_up()
    bot.go_to_xy(0, 0)
    time.sleep(2)
    bot.close()
Exemplo n.º 2
0
def write():
    global y_pred
    bot=AutoKiddobot()
    bot.start()
    fn='Coordinate\\'+y_pred+'.txt'
    with open (fn) as file:
        line=file.readlines()
    data=cvrtarr(line)
    x,y=xycvrt(data)
    bot.go_to_xy(x[0],y[0])
    time.sleep(1)
    move(x,y)       
    bot.pen_up()
    bot.go_to_xy(0,0)
    time.sleep(2)
    bot.close()