from tkinter import *
root=Tk()
root.title('奶粉分析')
width=1200
height=1200
screenwidth=root.winfo_screenwidth()
screenheight=root.winfo_screenheight()
alignstr='%dx%d+%d+%d'%(width,height,(screenwidth)/2,(screenheight)/2)
root.geometry(alignstr)
lbl1=Label(root)
lbl1.pack(side=TOP,expand=YES,fill=X)
lbl1.config(text='一、各國產品牌奶粉營養分析')
font=('華文中宋',15,'bold')
lbl1.config(font=font)
pic1=PhotoImage(file='D:\python\碳水化合物含量.png')
lbl2=Label(root)
lbl2.pack(side=TOP)
lbl2.config(image=pic1)
pic2=PhotoImage(file='D:\python\蛋白質含量.png')
lbl3=Label(root)
lbl3.pack(side=TOP)
lbl3.config(image=pic2)
root.mainloop()
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/36716.html
