gen*_*att 6 tkinter py2app python-3.x
我正在尝试打包一个现有的 python 脚本,该脚本使用 tk 来选择一个文件并请求一个包含所有依赖项的应用程序的值。
我使用的是 MacOS 10.12.5、自制软件 python 3.6.1 和 py2app 0.14。
以下作为脚本工作正常,但是当转换为应用程序(或 -A 别名应用程序)时,我Detected missing constraints for <private>...在控制台上收到错误消息。仍然产生相同错误的简化版本:
#!/usr/bin/env python3
# encoding: utf-8
import tkinter as tk
from tkinter import simpledialog
root = tk.Tk()
root.withdraw()
the_answer = simpledialog.askstring("Input", "What is the answer?",)
Run Code Online (Sandbox Code Playgroud)
我错过了什么还是这是一个错误?如果它是一个错误,它是 tk 还是 py2app 错误?