def dragLeft(t): dragDrop(t, [t.x - 200, t.y]) def dragRight(t): dragDrop(t, [t.x + 200, t.y]) switchApp("System Preferences.app") click() thumbs = findAll(Pattern(
).similar(0.48)) for t in list(thumbs)[:2]: # only take the first two dragLeft(t) # off #dragRight(t) # on