简体   繁体   English

使用 py2app 编译时,PyAutoGui 不会开始输入

[英]PyAutoGui dosnt start typing when compiled with py2app

it just dosnt.它只是dosnt。 it asks me to allow it to control my computer.它要求我允许它控制我的电脑。 I allow it.我允许。 annnnnd....nothing. annnnnnd....什么都没有。 it doesn't start typing.它没有开始输入。

command python3 setup.py py2app --packages=pyautogui命令python3 setup.py py2app --packages=pyautogui

setup file安装文件

from setuptools import setup

APP = ['spam.py']
OPTIONS = {
    'argv_emulation': False
}

setup(
    app=APP,
    options={'py2app': OPTIONS},
    setup_requires=['py2app']
)

and yes, I have tried reinstalling all packages是的,我已尝试重新安装所有软件包

this is just a limitation of py2app.这只是 py2app 的一个限制。 If I were to compile this for Windows, Linux and Mac, I would use C or Go, maybe even NodeJS and Electron, just not Python. If I were to compile this for Windows, Linux and Mac, I would use C or Go, maybe even NodeJS and Electron, just not Python. Its great for developer projects and quick programs, not so great for projects were speed matters or commercial projects that you plan to release on GitHub.它非常适合开发人员项目和快速程序,但对于您计划在 GitHub 上发布的速度问题或商业项目而言,它不是那么好。

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

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