← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #235254]: Unable to save sikuli

 

Question #235254 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235254

RaiMan proposed the following answer:
@Aravind
comment #6 is not valid Python
-- if more than one expression (each image is an expression) is on one line, they have to be seperated by ;
-- in a "script like this, there generally is NO valid indentation, everything has to start in column 1 (far left)


"1378102808585.png"
"1378102826219.png"
"1378102977517.png"
"1378102987263.png"

overAllQualityReg = Region(421,279,99,23)
audioQualityReg = Region(422,306,97,27)
videoQualityReg = Region(423,335,93,24)
uploadBandwidthReg = Region(271,485,269,25)

"1378284227868.png"
Region(262,257,29,18) # this region is not accessible
"1378359535932.png";"1378372269249.png";"1378373271232.png";"1378373928081.png";"1378374255185.png"
"1378380097764.png"
#anyOtherFeedbackReg = Region(275,528,472,76)
"1378436582262.png"

instead of a ; you might use a comma, since this forms a list from the
expressions (but not really recommended for that)

the best: one line - one expression (is easier to maintain too or even
automate/generate)

BTW: "some text""more text" will give one string "some textmore text"
(implicit concatenation) which is risky, if it is not your intention

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