# tkinter-sample **Repository Path**: oopcoder/tkinter-sample ## Basic Information - **Project Name**: tkinter-sample - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-06 - **Last Updated**: 2025-02-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tkinter-sample 使用PyInstaller打包成可执行文件 ### 1. 安装PyInstaller: ```bash pip install pyinstaller ``` ### 2. 打包应用程序: ```bash pyinstaller --onefile --windowed your_script.py ``` - `--onefile`:将所有文件打包成一个可执行文件。 - `--windowed`:不显示控制台窗口。 ### 3. 运行你的应用程序 打包完成后,你会在`dist`文件夹中找到生成的可执行文件。双击运行即可使用。