示例#1
0
def yellows():  #update info for 1x2 yellow brick
    window.FindElement('_OUTPUT4_').Update(1)
    image_elem2.Update(data=quan(Quantities[i]))
    window.FindElement('_OUTPUT6_').Update('Take brick from box 1')
    image_elem.Update(data=get_img_data(
        '/home/pi/practice/order_101/yellow_small.jpg'))  #printer image
    window.Refresh()
示例#2
0
def redl():  #update info for 2x4 red brick
    window.FindElement('_OUTPUT4_').Update(3)
    image_elem2.Update(data=quan(Quantities[i]))
    window.FindElement('_OUTPUT6_').Update('Take brick from box 5')
    image_elem.Update(data=get_img_data(
        '/home/pi/practice/order_101/red_large.jpg'))  # printer image
    window.Refresh()
示例#3
0
def yellowc():  #update info for 2x2 customised brick
    window.FindElement('_OUTPUT4_').Update(4)
    image_elem2.Update(data=quan(Quantities[i]))
    window.FindElement('_OUTPUT6_').Update('Take brick from box 5')
    image_elem.Update(data=get_img_data(
        '/home/pi/practice/order_101/yellow.jpg'))  # printer image
    window.Refresh()
    sleep(2)