android版Kivy

2024-06-26 02:22:25 发布

您现在位置:Python中文网/ 问答频道 /正文

在系统中使用PyJius编写脚本需要安装哪些包?在

有没有什么方法可以让我在android手机上运行这些python脚本?在

什么是K ivy Launcher for android?这对执行我的脚本有帮助吗?在

实际上Kivy是如何工作的(详细地说,我想使用脚本打开蓝牙,这是Kivy架构中通过这样做而调用的东西?)在

我需要的是在计算机上编写脚本,然后将这些脚本发送到我的手机上,然后我需要从手机上执行脚本。通过电话获取结果并将结果发送到系统。在


Tags: 方法脚本for架构系统计算机android手机
1条回答
网友
1楼 · 发布于 2024-06-26 02:22:25

What are the packages which need to be installed for writing scripts using PyJius in system ?

我不知道你在这里是什么意思。要使用pyjnius运行,您只需要……pyjnius。它是一个独立的模块,不是kivy本身的一部分,尽管kivy在android上使用它。Kivy的移动构建工具在构建android apk时会自动打包。在

What is K ivy Launcher for android ? Will it be helpful for executing my scripts ?

一个可以从你的用户数据目录动态打开kivy应用程序的应用程序。你可以用它在你的设备上上传和运行kivy脚本/应用程序。在

它对于快速测试非常有用,而不是作为分发应用程序的一种方式。为此,很容易构建自己的apk,这在您做什么和打包什么方面提供了更大的灵活性。在

How actually Kivy works ( in detail say in I want to switch on Bluetooth using scripts, which are the things in the K ivy architecture gets invoked by doing so ? )

我不知道你在问什么。Kivy是一个python的图形化框架,使用优化的opengl接口……你可以用它编写python gui应用程序。在

对于android上的蓝牙,您可以使用pyjnius(或者更简单地说,像plyer这样的包装项目提供了一个抽象的python api,尽管我认为plyer还没有蓝牙)。这通常不是很难,我以前见过蓝牙。在

Kivy本身就是一个图形化的框架,这些其他工具都是姊妹项目,但与图形是分开的。在

What i need is to write scripts on computer and then after sending those scripts to my phone, then i need to execute my scripts from phone. Get the results on the phone and send those results to system.

你当然可以用kivy来做,把脚本放到你运行的应用程序中。网络通信也不难——它是独立于kivy本身的,但是您可以访问所有可能使用的普通python模块。在

相关问题 更多 >