← Back to team overview

sikuli-driver team mailing list archive

[Question #144883]: how to define attributes??

 

New question #144883 on Sikuli:
https://answers.launchpad.net/sikuli/+question/144883

im using sikuli version 0.10.2.when i try to run region_name.getTopLeft(),or any other Env class methods Env.getSikuliVersion()
 i get the foll errror

1)Traceback (most recent call last):
  File "C:\DOCUME~1\hafsa\LOCALS~1\Temp\sikuli-tmp5265014695649913170.py", line 2, in <module>
    topLeft =myreg.getTopLeft()
AttributeError: 'Region' object has no attribute 'getTopLeft'

2)Traceback (most recent call last):
  File "C:\DOCUME~1\hafsa\LOCALS~1\Temp\sikuli-tmp8035848112261097417.py", line 2, in <module>
    Env.getSikuliVersion()
AttributeError: type object 'edu.mit.csail.uid.Env' has no attribute 'getSikuliVersion'

is this coz these are not defined in the version of sikuli im using???
If it is not so,pls let me know how to define the atributes for an object of ANY class(namely Region,Location,Screen etc ).im not getting any error for Env.getOSVersion() and Env.getOS().

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.