Jython cheat sheet

Asked by CCIOLA

Hi, do you know some Jython cheat sheet, listing the main commands? I am looking for something like this, but of Jython:

https://thoughtbot.com/upcase/test-driven-rails-resources/capybara.pdf

[]s

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Nothing special with python - look for Python

Revision history for this message
CCIOLA (carol-ciola) said :
#2

Looking for Python does not help my need...

Revision history for this message
Roman Podolyan (podolyan-roman) said :
#3

Jython is same as Python, just working over JVM.

Please use:

1) SikuliX documentation: https://sikulix-2014.readthedocs.io/en/latest/ (describes the classes and methods)

2) http://hyperpolyglot.org/scripting -- if you know about programming, you can get from this table how to do what with Python

For instance, you want to know how to do "for loop". You search document for it, and find:

# use range() in Python 3:
for i in xrange(1, 1000001):
  code

3) You can use Dzone Python refcard:
https://dzone.com/asset/download/154031

If programming constructions and SikuliX documentation do not answer your need, please explain in details what you expect to find.

Revision history for this message
CCIOLA (carol-ciola) said :
#4

Hi,

I'm looking for a list or summary of the commands most applied on SikuliX, explaining what each one do, for instance:

wait() - waits for a time specified in seconds.
shutil.move() - moves the archive to a folder.
myApp.focus() - keeps the focus on a specific window.
type() - puts a string or type a specific key from keyboard.
popup() - shows a popup message.

[...] among others.

Revision history for this message
RaiMan (raimund-hocke) said :
#5

ok, understood.
Something like that is not available, at least directly from within SikuliX docs.

Currently the only source for that are the already mentioned docs in comment#3

But currently I am evaluating the backwards compatibility of version 2 (not yet available, no release date ;-)
It looks like such a thing can be a side-effect.
I have it on the list.

Revision history for this message
CCIOLA (carol-ciola) said :
#6

Thanks @podolyan-roman, @RaiMan, it could really help who is starting as a quick guide/reference.

Revision history for this message
RaiMan (raimund-hocke) said :
#7

made it a request bug

Revision history for this message
CCIOLA (carol-ciola) said :
#8

Thanks for the concern! :)

Can you help with this problem?

Provide an answer of your own, or ask CCIOLA for more information if necessary.

To post a message you must log in.