标签:label round button ext tle back win main oop
from tkinter import Entry, Label, Button, Text
from tkinter import Tk
window = Tk()
window.title(u'拂髯客词典')
window.geometry("280x350+500+200")
entry = Entry(window)
entry.place(x=10,y=10,width=200,height=25)
button = Button(window, text=u"翻译")
button.place(x=220,y=10,width=50,height=25)
result_label = Label(window,text=r'翻译结果')
result_label.place(x=10,y=55)
result_text = Text(window,background="#ccc")
result_text.place(x=10,y=75,width=260,height=260)
window.mainloop()
标签:label round button ext tle back win main oop
原文地址:https://www.cnblogs.com/Frank99/p/11517962.html