An executable Python app
来源:互联网 发布:mac抹掉磁盘会怎么样 编辑:程序博客网 时间:2024/06/14 17:12
Q:
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 and Linux.
The problem being I have no idea where to start or how to write a GUI with it, can anybody shed some light on this and point me in the right direction please?
A:
First you will need some GUI library with Python bindings and then (if you want) some program that will convert your python scripts into standalone executables.
Cross-platform GUI libraries with Python bindings (Windows, Linux, Mac)
Of course, there are many, but the most popular that I've seen in wild are:
- Tkinter - based on Tk GUI toolkit (de-facto standard GUI library for python, free for commercial projects)
- WxPython - based on WxWidgets (very popular, free for commercial projects)
- PyQt - based on Qt (also very popular and more stable than WxWidgets but costly license for commercial projects)
Complete list is at http://wiki.python.org/moin/GuiProgramming
Single executable (Windows)
- py2exe - Probably the most popular out there (PyInstaller is also gaining in popularity)
Single executable (Linux)
- Freeze - works the same way like py2exe but targets Linux platform
Single executable (Mac)
- py2app - again, works like py2exe but targets Mac OS
- An executable Python app
- Creating an Executable jar File
- Creating an Executable jar File
- Run native executable in Android App
- How to launch an Executable from within memory
- Quickly move an executable between systems with ELF Statifier
- This executable was created with an evaluation version of exe4j
- gcc is unable to create an executable file
- How to Add An Automatically Executable Program in YOCTO?
- gyp ERR! stack Error: Can't find Python executable 'python'
- Python+selenium运行出错'Application' executable may have wrong permissions.'chromedriver' executable nee
- How does an app work?
- Structure of an Ionic App
- python 的 chromedriver' executable needs to be in PATH.
- An In-Depth Look into the Win32 Portable Executable File Format
- An In-Depth Look into the Win32 Portable Executable File Format
- An In-Depth Look into the Win32 Portable Executable File Format, Part 2
- exe4j中"this executable was created with an evaluation version exe4j"的解决
- 数据结构实验-写过的最长代码
- NYOJ - skiing(搜索&dp)
- GIS椭球转换
- upnp
- Flying to the Mars
- An executable Python app
- 拓扑排序步骤
- linux下eclipse热键设置
- 怎样找到一个算法问题的答案
- 少走弯路的职场智慧
- poj3009
- DIV+CSS圆角边框
- Android 获取网络状态的工具类
- 【Direct3D游戏开发】——DirectInput 让世界动起来