sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27308
Re: [Question #252342]: pyqt and Sikuli
Question #252342 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252342
Status: Open => Answered
RaiMan proposed the following answer:
In an action defined in your PyQT GUI (run with C-Python) (e.g.
connected to some button), you might use Pythons subprocess module to
start the Sikuli script you want to run, by either using the appropriate
configured java command or one of the provided run scripts (both might
be packed into a batch file, that is called from your PyQT).
If you want to avoid the startup time of 3 to 5 seconds per script start, than you might implement an XML-RPC communication (Server Sikuli, client your PyQT action function). This allows, to instantly (at least on same machine) start running a script, that is wrapped into a callable function on the Sikuli side.
(see https://docs.python.org/2.6/library/internet.html chapters 20.23 and 20.24)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.