在Mac应用商店中使用TKinter的Python应用
我用Python的Tkinter图形界面写了一个游戏。我可以用py2app把这个游戏打包成一个应用程序。请问我能把这个可执行文件发布到Mac应用商店吗?我需要换一个图形界面工具吗?我选择Tkinter是因为它在所有Mac上都是默认的……谢谢。
2 个回答
0
我觉得这个程序的可操作性不高,因为我有一个小的Python程序,是用Tkinter写的,代码大约有200行,但被拒绝了,原因如下:
Your app uses or references the following non-public APIs:
• Contents/Frameworks/libtk8.6.dylib/NSDrawerWindow
The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.
0
你可以使用py2app或者像我一样使用cx_Freeze,把一个Tkinter应用程序发布到Mac应用商店。你可以看看这个例子:https://itunes.apple.com/us/app/quickwho/id419483981?mt=12。