Skip to content

Commit

Permalink
Rectified some small mistakes such as remove extra space and unnecess…
Browse files Browse the repository at this point in the history
…ary comments
  • Loading branch information
risehr committed Jul 31, 2021
1 parent 41e83e1 commit 36834c2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tutorials/tutorial_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def automate_views():
"""
This is the main automating script of the MSS views tutorial which will cover all the views(topview, sideview,
tableview, linear view) in demonstrating how to create a project. This will be recorded and savedto a file having
dateframe nomenclature with a .mp4 extension(codec).
dateframe nomenclature with a .mp4 extension(codec).
"""
# Giving time for loading of the MSS GUI.
pag.sleep(5)
Expand Down Expand Up @@ -157,13 +157,11 @@ def automate_views():

pag.move(-150, 30, duration=1)
x1, y1 = pag.position()
# print(x1, y1)
pag.click(interval=2)
pag.sleep(1)
pag.move(200, 150, duration=1)
pag.click(interval=2)
x2, y2 = pag.position()
# print(x2, y2)
pag.sleep(1)
pag.move(100, -80, duration=1)
pag.click(interval=2)
Expand Down Expand Up @@ -852,7 +850,7 @@ def automate_views():
pag.sleep(1)
pag.click(x + 30, y + 50, duration=1)
pag.sleep(2)
except ImageNotFoundException:
except (ImageNotFoundException, OSError, Exception):
print("\n Exception :Sideview's Add Waypoint button could not be located on the screen")

# CLosing Linear View Layer List
Expand Down Expand Up @@ -936,7 +934,6 @@ def main():
p1.join()
p3.join()
print("\n\nINFO : Automation Completes Successfully!")
# pag.press('q') # In some cases, recording windows does not closes. So it needs to be there.
sys.exit()


Expand Down

0 comments on commit 36834c2

Please sign in to comment.