3、Label的其他参数 activebacakground activeforground 用于设置Label处于活动(active)状态下的背景和前景颜色,默认由系统指定。
...举头望明月',width=12,height=12).pack()
root.mainloop()
compound: 指定文本(text)与图像(bitmap/image)是如何在...(file="D:/temp/1.gif")
#Label是个类,对其初始化
# #pack属性将空间加载到窗口上
#文本内容显示窗口
lab1=Label(Win,text="Hello World!...,fg='red',image=img,bg='green',compound='right').pack()
lab2=Label(Win,text="Hello World!"...,fg='black',image=img,bg='red',compound='left').pack()
lab3=Label(Win,text="Hello World!"