更新时间:2022-05-24 18:24:58
首先,对于GUI,应始终使用 .pyw
.
Firstly, you should always use .pyw
for GUIs.
第二,如果您希望没有python的人能够使用您的程序,则可以将其转换为 .exe
.这个过程很简单.最难的部分是下载其中之一:
Secondly, you could convert it to .exe
if you want people without python to be able to use your program. The process is simple. The hardest part is downloading one of these:
如果您决定沿着那条路走,则可以直接在Google上找到有关如何使用它们的说明.
You can simply google instructions on how to use them if you decide to go down that path.
此外,如果您在GUI中使用消息框
,它将无法正常工作.您将不得不创建Windows/顶层.
Also, if you're using messageboxes
in your GUI, it won't work. You will have to create windows/toplevels instead.