-
大小: 3.36MB文件類型: .gz金幣: 1下載: 0 次發(fā)布日期: 2023-09-15
- 語言: Python
- 標簽: python??pyinstaller??
資源簡介
安裝方法:1.減壓文件到目錄下。2.cmd到減壓的目錄下。3、執(zhí)行python setup.py install
代碼片段和文件信息
#!/usr/bin/python
#-----------------------------------------------------------------------------
#?Copyright?(c)?2013-2019?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(“
評論
共有 條評論