|
|
|
|
@ -51,6 +51,9 @@ def get_defineDistances(pid, left, top, right, bottom):
@@ -51,6 +51,9 @@ def get_defineDistances(pid, left, top, right, bottom):
|
|
|
|
|
distances = libs_db.get_floor_sticker_distances(psid) #config.ps_floor_sticker.get(psid, config.ps_floor_sticker['default']) |
|
|
|
|
time.sleep(5) |
|
|
|
|
y = 748 |
|
|
|
|
yCreateDistance = 0 |
|
|
|
|
if len(distances.split(';')) == 1: |
|
|
|
|
yCreateDistance = 2 |
|
|
|
|
for index, d in enumerate(distances.split(';')): |
|
|
|
|
p1, p2, distance = d.split(' ') |
|
|
|
|
if index == 0: |
|
|
|
|
@ -58,12 +61,12 @@ def get_defineDistances(pid, left, top, right, bottom):
@@ -58,12 +61,12 @@ def get_defineDistances(pid, left, top, right, bottom):
|
|
|
|
|
ag.moveTo(14, 191) |
|
|
|
|
else: |
|
|
|
|
#不是第一次就移动到 create distance |
|
|
|
|
ag.moveTo(65, 300+30) # Create distance line height 15 |
|
|
|
|
ag.moveTo(65, 300+yCreateDistance*15) # Create distance line height 15 |
|
|
|
|
time.sleep(0.5) |
|
|
|
|
ag.click() |
|
|
|
|
time.sleep(1.2) |
|
|
|
|
if index == 0: |
|
|
|
|
ag.moveTo(65, 285+30) |
|
|
|
|
ag.moveTo(65, 285+yCreateDistance*15) |
|
|
|
|
time.sleep(1) |
|
|
|
|
ag.click() |
|
|
|
|
|
|
|
|
|
|