tkinter.py

Posted *飞飞*

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tkinter.py相关的知识,希望对你有一定的参考价值。

from tkinter import *
def hello():print(hello world)
win=Tk()
win.title(hello tkinter)
win.geometry(200x100) #x不是*
btn=Button(win,text=hello,command=hello)
btn.pack(expand=YES,fill=BOTH)
mainloop()

 

以上是关于tkinter.py的主要内容,如果未能解决你的问题,请参考以下文章