使用颜色名称-stm32fxx中文参考手册

(1).使用颜色名称Red Green Blue Yellow LightBlue (2).使用#RRGGBB label = Label(root,fg = 'red',bg = '#FF00FF',text = 'Hello I am Tkinter')指定背景色为绯红色(3).除此之外,Tk还支持与OS相关的颜色值,如Windows支持SystemActiveBorder, SystemActiveCaption, SystemAppWorkspace, SystemBackground, '''4.设置宽度与高度width:宽度height:高度''' from Tkinter import * root = Tk() #创建三个Label,分别显示red,blue,yellow
pdf 文件大小:563.08KB