#导入tkinter模块
import tkinter
tk = tkinter.Tk()
#设置窗口标题
tk.title("煤工业分析计算器")
#设置窗口大小
tk.geometry("540x220")
#添加标签
labelMad = tkinter.Label(tk,text="Mad")
labelMad.place(x=10,y=10,width=50,height=25)
labelAad = tkinter.Label(tk,text="Aad")
labelAad.place(x=65,y=10,width=50,height=25)
labelVad = tkinter.Label(tk,text="Vad")
labelVad.place(x=120,y=10,width=50,height=25)
labelFC = tkinter.Label(tk,text="FC")
labelFC.place(x=175,y=10,width=50,height=25)
labelQent_ad = tkinter.Label(tk,text="Qent.ad")
labelQent_ad.place(x=230,y=10,width=50,height=25)
labelAd = tkinter.Label(tk,text="Ad")
labelAd.place(x=285,y=10,width=50,height=25)
labelAd = tkinter.Label(tk,text="Ad")
labelAd.place(x=285,y=10,width=50,height=25)
labelVadf = tkinter.Label(tk,text="Vadf")
labelVadf.place(x=340,y=10,width=50,height=25)
labelVadf1 = tkinter.Label(tk,text="Vadf校")
labelVadf1.place(x=400,y=10,width=50,height=25)
labelAd1 = tkinter.Label(tk,text="Ad")
labelAd1.place(x=460,y=10,width=50,height=25)
labelVadf10 = tkinter.Label(tk,text="<10%")
labelVadf10.place(x=460,y=35,width=50,height=25)
labelVadf15 = tkinter.Label(tk,text="10-15%")
labelVadf15.place(x=460,y=65,width=50,height=25)
labelVadf20 = tkinter.Label(tk,text="15-20%")
labelVadf20.place(x=460,y=95,width=50,height=25)
labelVadf25 = tkinter.Label(tk,text="20-25%")
labelVadf25.place(x=460,y=125,width=50,height=25)
labelVadf30 = tkinter.Label(tk,text="25-30%")
labelVadf30.place(x=460,y=155,width=50,height=25)
labelVadf40 = tkinter.Label(tk,text="30-40%")
labelVadf40.place(x=460,y=185,width=50,height=25)
#添加文本框
entryMad=tkinter.Entry(tk,text ="")
entryMad.place(x=10,y=35,width=50,height=25)
entryAad=tkinter.Entry(tk,text ="")
entryAad.place(x=65,y=35,width=50,height=25)
entryVad=tkinter.Entry(tk,text ="")
entryVad.place(x=120,y=35,width=50,height=25)
entryFC=tkinter.Entry(tk,text ="")
entryFC.place(x=175,y=35,width=50,height=25)
entryQent_ad=tkinter.Entry(tk,text ="")
entryQent_ad.place(x=230,y=35,width=50,height=25)
entryAd=tkinter.Entry(tk,text ="")
entryAd.place(x=285,y=35,width=50,height=25)
entryVadf=tkinter.Entry(tk,text ="")
entryVadf.place(x=340,y=35,width=50,height=25)
entryVadf10=tkinter.Entry(tk,text ="")
entryVadf10.place(x=400,y=35,width=50,height=25)
entryVadf15=tkinter.Entry(tk,text ="")
entryVadf15.place(x=400,y=65,width=50,height=25)
entryVadf20=tkinter.Entry(tk,text ="")
entryVadf20.place(x=400,y=95,width=50,height=25)
entryVadf25=tkinter.Entry(tk,text ="")
entryVadf25.place(x=400,y=125,width=50,height=25)
entryVadf30=tkinter.Entry(tk,text ="")
entryVadf30.place(x=400,y=155,width=50,height=25)
entryVadf40=tkinter.Entry(tk,text ="")
entryVadf40.place(x=400,y=185,width=50,height=25)
#添加按钮
btn=tkinter.Button(tk,text="计算结果",font = 'Helvetica -80 bold')
#(font = 'Helvetica -350 bold')用来控制字体大小
btn.place(x=10,y=65,width=380,height=145)