sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08962
[Bug 940798] Re: IDE incorrectly interprets a tabs
** Attachment added: "screen.jpg"
https://bugs.launchpad.net/bugs/940798/+attachment/2781362/+files/screen.jpg
** Description changed:
1) Sikuli IDE 1.0rc3(r905)
2) Windows XP (5.1.2600) 32 bit, Java 1.7..0_01
3) Example of affected code (example_file.py):
+ <pre>
for row in input_table:
- CPregion.type(Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+row+Key.F8)
-
- if CPregion.exists(Pattern("1330069906203.png").similar(0.96)):
- CPregion.click(Pattern("1330069906203.png").similar(0.90))
- CPregion.type('polska'+Key.F8+Key.ENTER)
- CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
- else:
- CPregion.click(Pattern("POI-2.png").similar(0.80))
- CPregion.type('POLSKA'+Key.F8+Key.ENTER)
- CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
+ CPregion.type(Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+row+Key.F8)
+
+ if CPregion.exists(Pattern("1330069906203.png").similar(0.96)):
+ CPregion.click(Pattern("1330069906203.png").similar(0.90))
+ CPregion.type('polska'+Key.F8+Key.ENTER)
+ CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
+ else:
+ CPregion.click(Pattern("POI-2.png").similar(0.80))
+ CPregion.type('POLSKA'+Key.F8+Key.ENTER)
+ CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
+ </pre>
Line containing "else" is affected. In source file there are two tabs
but in IDE i have to put three, that is is very confusing. I think
screenshot would be better explanation, so Im sending the same part of
code in IDE.
** Description changed:
1) Sikuli IDE 1.0rc3(r905)
2) Windows XP (5.1.2600) 32 bit, Java 1.7..0_01
3) Example of affected code (example_file.py):
- <pre>
+
for row in input_table:
CPregion.type(Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+row+Key.F8)
if CPregion.exists(Pattern("1330069906203.png").similar(0.96)):
CPregion.click(Pattern("1330069906203.png").similar(0.90))
CPregion.type('polska'+Key.F8+Key.ENTER)
CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
else:
CPregion.click(Pattern("POI-2.png").similar(0.80))
CPregion.type('POLSKA'+Key.F8+Key.ENTER)
CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
- </pre>
- Line containing "else" is affected. In source file there are two tabs
- but in IDE i have to put three, that is is very confusing. I think
- screenshot would be better explanation, so Im sending the same part of
- code in IDE.
+
+ Line containing "else" is affected. In source file there are two tabs but in IDE i have to put three, that is is very confusing. I think screenshot would be better explanation, so Im sending the same part of code in IDE.
** Description changed:
1) Sikuli IDE 1.0rc3(r905)
2) Windows XP (5.1.2600) 32 bit, Java 1.7..0_01
3) Example of affected code (example_file.py):
-
for row in input_table:
CPregion.type(Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+row+Key.F8)
if CPregion.exists(Pattern("1330069906203.png").similar(0.96)):
CPregion.click(Pattern("1330069906203.png").similar(0.90))
CPregion.type('polska'+Key.F8+Key.ENTER)
CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
else:
CPregion.click(Pattern("POI-2.png").similar(0.80))
CPregion.type('POLSKA'+Key.F8+Key.ENTER)
CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
-
- Line containing "else" is affected. In source file there are two tabs but in IDE i have to put three, that is is very confusing. I think screenshot would be better explanation, so Im sending the same part of code in IDE.
+ Line containing "else" is affected. In source file there are two tabs
+ but in IDE i have to put three, that is is very confusing. I think
+ screenshot would be better explanation, so Im sending the same part of
+ code in IDE. In case "else" clause is on "if" level, IDE produces py
+ code that does not work correctly.
** Description changed:
1) Sikuli IDE 1.0rc3(r905)
- 2) Windows XP (5.1.2600) 32 bit, Java 1.7..0_01
+ 2) Windows XP (5.1.2600) 32 bit, Java 1.7.0_01
3) Example of affected code (example_file.py):
for row in input_table:
CPregion.type(Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+row+Key.F8)
if CPregion.exists(Pattern("1330069906203.png").similar(0.96)):
CPregion.click(Pattern("1330069906203.png").similar(0.90))
CPregion.type('polska'+Key.F8+Key.ENTER)
CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
else:
CPregion.click(Pattern("POI-2.png").similar(0.80))
CPregion.type('POLSKA'+Key.F8+Key.ENTER)
CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
Line containing "else" is affected. In source file there are two tabs
but in IDE i have to put three, that is is very confusing. I think
screenshot would be better explanation, so Im sending the same part of
code in IDE. In case "else" clause is on "if" level, IDE produces py
code that does not work correctly.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/940798
Title:
IDE incorrectly interprets a tabs
Status in Sikuli:
New
Bug description:
1) Sikuli IDE 1.0rc3(r905)
2) Windows XP (5.1.2600) 32 bit, Java 1.7.0_01
3) Example of affected code (example_file.py):
for row in input_table:
CPregion.type(Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+row+Key.F8)
if CPregion.exists(Pattern("1330069906203.png").similar(0.96)):
CPregion.click(Pattern("1330069906203.png").similar(0.90))
CPregion.type('polska'+Key.F8+Key.ENTER)
CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
else:
CPregion.click(Pattern("POI-2.png").similar(0.80))
CPregion.type('POLSKA'+Key.F8+Key.ENTER)
CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
Line containing "else" is affected. In source file there are two tabs
but in IDE i have to put three, that is is very confusing. I think
screenshot would be better explanation, so Im sending the same part of
code in IDE. In case "else" clause is on "if" level, IDE produces py
code that does not work correctly.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/940798/+subscriptions
References