1.按钮 # 按钮 # bg设置背景色 btn = tkinter.Button(root,text = '按钮',bg = 'red') btn.pack() # fg设置前景色(文字颜色) btn1 = tkinter.Button(root,text = '按钮',fg = 'blue') btn1.pack() # font设置字体大小和样式(字体,大小,粗体,斜体等) btn2 = tkinter.Button(root,text = '按钮',font = ('楷体',20,'ita…