-
大小: 3.33MB文件类型: .gz金币: 1下载: 0 次发布日期: 2023-09-10
- 语言: Python
- 标签: pyinstaller3 linux
资源简介
在ubuntu18.04下可以使用的python3代码打包工具pyinstaller,打包后的程序可以直接运行。
代码片段和文件信息
#!/usr/bin/python
#-----------------------------------------------------------------------------
# Copyright (c) 2013-2018 PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt distributed with this software.
#-----------------------------------------------------------------------------
#
# Tkinter interface to PyInstaller.
#
import sys
import subprocess
# In Python 3 module name is ‘tkinter‘
try:
from tkinter import *
from tkinter.ttk import *
import tkinter.filedialog as filedialog
except ImportError:
from Tkinter import *
from ttk import *
import tkFileDialog as filedialog
class PyInstallerGUI:
def make_checkbutton(self frame text):
var = IntVar()
widget = Checkbutton(frame text=text variable=var)
widget.grid(sticky=“NW“)
return var
def __init__(self):
root = Tk()
root.title(“PyInstaller GUI“)
fr1 = frame(root width=300 height=100)
fr1.pack(side=“top“)
fr2 = frame(root width=300 height=300
borderwidth=2 relief=“ridge“)
fr2.pack(ipadx=10 ipady=10)
fr4 = frame(root width=300 height=100)
fr4.pack(side=“bottom“ pady=10)
getFileButton = Button(fr1 text=“script to bundle ...“)
getFileButton.bind(“
相关资源
- CentOS 7.3系统从入门到精通完整版
- Python for Unix and Linux System Administratio
- grpcio-1.32.0-cp37-cp37m-linux_aarch64.whl
- tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
- Python Unix和Linux系统管理指南
- Python-3.7.1.tgz
- torchvision-0.4.2-cp36-cp36m-linux_aarch64.whl
- tensorflow_gpu-1.13.1+nv19.3-cp36-cp36m-linux_
- torch-1.3.0-cp36-cp36m-linux_aarch64.whl
- torch-1.1.0-cp36-cp36m-linux_aarch64.whl
- grpcio-1.24.3-cp37-cp37m-linux_armv7l.whl
- tensorflow1.0.0 python2.7 linux版安装文件
- scipy-1.4.1-cp36-cp36m-linux_aarch64.whl
- tensorflow-0.12.1-cp27-none-linux_x86_64
- opencv_python-3.4.0.12-cp36-cp36m-manylinux1_x
- scipy-1.2.1-cp36-cp36m-linux_aarch64.whl
- linux安装python 3.6.5含安装包
- tensorflow-2.0.0rc0-cp36-cp36m-linux_aarch64.w
- torch-1.3.0a0+de394b6-cp36-cp36m-linux_aarch64
- opencv 3.2.0版本.zip
- Tensorflow2.0 CPU Linux下离线安装包(包含
- tensorflow-1.15.0-cp37-cp37m-linux_aarch64.whl
- torch-1.4.0-cp36-cp36m-linux_aarch64.whl
- linux与python.doc
- PyTorch 0.4.0 for Python 3.5 on CUDA 8.0Linux离
- caffe Makefile.config
- Python-一个WindowsLinux和Mac的简单键盘记
- 本地两个文件夹同步,python语言,l
- _bz2.cpython-37m-x86_64-linux-gnu.so
- _sqlite3.cpython-38-x86_64-linux-gnu.rar
评论
共有 条评论