Jython cheat sheet

Asked by CCIOLA on 2018-02-23

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



Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

Nothing special with python - look for Python

CCIOLA (carol-ciola) said : #2

Looking for Python does not help my need...

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):

3) You can use Dzone Python refcard:

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

CCIOLA (carol-ciola) said : #4


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.

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.

CCIOLA (carol-ciola) said : #6

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

RaiMan (raimund-hocke) said : #7

made it a request bug

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.