python 生成exe程序 与 tkinter

python脚本生成exe程序

image.png

image.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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容