~ubuntu-branches/ubuntu/utopic/sikuli/utopic

« back to all changes in this revision

Viewing changes to sikuli-script/src/test/python/test-spatial.py

  • Committer: Bazaar Package Importer
  • Author(s): Gilles Filippini
  • Date: 2011-10-04 23:32:13 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20111004233213-36fm78hx0z53tkuw
Tags: 1.0~x~rc3-dfsg1-2
* New patch fix-cmake-sikuli-ide.patch:
  + Fix random FTBFS due to missing inter target dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from __future__ import with_statement
2
 
from sikuli.Sikuli import *
3
 
 
4
 
r = Region(300,300,100,100)
5
 
print "region at (300,300) w100 x h100"
6
 
print "nearby: ", r.nearby()
7
 
print "left: ", r.left()
8
 
print "above: ", r.above()
9
 
print "right: ", r.right()
10
 
print "below: ", r.below()
11
 
 
12
 
r = Region(0,0,100,100)
13
 
print "region at (0,0) w100 x h100"
14
 
print "nearby: ", r.nearby()