python脚本生成exe程序
image.pngimage.png
Python Tkinter学习(1)——第一个Tkinter程序
https://www.cnblogs.com/collectionne/p/6885066.html
from tkinter import *
class Application(Frame):
def __init__(self,master=None):
Frame.__init__(self,master)
self.createWidgets()
self.pack()
def createWidgets(self):
self.helloLabel = Label(self, text = 'please input your name:',bd = 20,fg = 'red')
self.helloLabel.pack()
self.entry1 = Entry(self,bd = 5,fg = "black")
self.entry1.pack()
self.quiteButton = Button(self,text = 'Quit',command = self.quit)
self.quiteButton.pack()
app = Application()
app.master.title('Hello World')
app.mainloop()
image.png
网友评论