Create a directly-executable cross-platform GUI app using Python

前端 未结 12 2344
予麋鹿
予麋鹿 2020-11-22 10:52

Python works on multiple platforms and can be used for desktop and web applications, thus I conclude that there is some way to compile it into an executable for Mac, Windows

12条回答
  •  猫巷女王i
    2020-11-22 11:26

    You don't need to compile python for Mac/Windows/Linux. It is an interpreted language, so you simply need to have the Python interpreter installed on the system of your choice (it is available for all three platforms).

    As for a GUI library that works cross platform, Python's Tk/Tcl widget library works very well, and I believe is sufficiently cross platform.

    Tkinter is the python interface to Tk/Tcl

    From the python project webpage:

    Tkinter is not the only GuiProgramming toolkit for Python. It is however the most commonly used one, and almost the only one that is portable between Unix, Mac and Windows

提交回复
热议问题