简体   繁体   English

如何在我的python代码或Sikuli脚本中的python库中使用Sikuli

[英]How can i use Sikuli in my python code OR python libraries in Sikuli script

I want to make a python base application in which i have to take decisions in my python .py code file to automate the GUI components using SikuliX. 我想制作一个python基本应用程序,在该应用程序中我必须在python .py代码文件中做出决定,才能使用SikuliX自动执行GUI组件。

  • How Can I use Sikuli functionality in my python code? 如何在python代码中使用Sikuli功能?
  • Can i use python libraries like matplotlib, pandas etc. in Sikuli.script code? 我可以在Sikuli.script代码中使用matplotlib,pandas等python库吗?

Since Sikuli is written in Java and its "Python" version is not really Python but Jython, you need to seek support for specific Pythonic libraries through Jython documentation and forums. 由于Sikuli用Java编写,并且其“ Python”版本不是真正的Python,而是Jython,因此您需要通过Jython文档和论坛寻求对特定Pythonic库的支持。 For example have a look at the below links in regards to Jython + matplotlib: 例如,查看以下有关Jython + matplotlib的链接:

Most generic Python functionality and libraries are supported by Jython but unfortunately not all Python libraries can be used with it. Jython支持大多数通用的Python功能和库,但不幸的是,并非所有Python库都可以与它一起使用。

Having said that, you can have access to all Sikuli features using Java and can easily embed it into Java code. 话虽如此,您可以使用Java来访问Sikuli的所有功能,并可以轻松地将其嵌入Java代码中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM