我有一个用Python开发的应用程序。我的问题:我只能从解释器运行该应用程序。如何执行应用程序-使其可以成为桌面上的应用程序。
from tkinter import *
import tkinter.messagebox as box
master = Tk()
label1 = Label(master, text = 'Patient_ID', relief = 'groove', width = 40)
label2 = Label(master, text = 'Patient Info', relief = 'groove', width = 40, height = 5)
label3 = Entry(master, relief = 'groove', width = 40)
label4 = Text(master, relief = 'groove', width = 40, height = 5, borderwidth = 2)
label1.grid( row = 1, column = 1, padx = 10 )
label2.grid( row = 2, column = 1, padx = 10 )
label3.grid( row = 3, column = 1, padx = 10 )
label4.grid( row = 4, column = 1, padx = 10 )
#Static Properties
master.title('TREK')
因此该应用在解释器中运行良好。但是我希望它作为应用程序存在,我可以单击并打开以运行它-如单词,日历或Chrome。任何建议将不胜感激。谢谢!