有一个问题 如果用import 导入tkinter.ttk,样式那如何修改,有会的,评论区留言 from tkinter import * from tkinter.ttk import * window = Tk() window.configure(bg="#F4EFE7") window.geometry("420x480") window.title('音乐下载软件') lable_title_text = Label(window,text="音乐听",font=("隶书",30,'bold'),background="#F4EFE7") lable_title_text.grid(row=0,columnspan=2) lable_soso_text = Label(window,text="请输入音乐名称",font=("隶书",15),background="#F4EFE7") lable_soso_text.grid(row=1,column=0,pady=10,padx=10) entry_soso = Entry(window,font=("隶书",15)) entry_soso.grid(row=1,column=1,pady=10,padx=10) radio_var = StringVar() radio_var.set("163") style = Style() style.configure('TRadiobutton',font=("隶书",15,'bold'),background="#F4EFE7") radio1_text = Radiobutton(window,text='网易云音乐',variable=radio_var,value='163',style ='TRadiobutton') radio1_text.grid(row=2,column=0,pady=10,padx=10) radio2_text = Radiobutton(window,text='QQ音乐',variable=radio_var,value='QQ',style ='TRadiobutton') radio2_text.grid(row=2,column=1,pady=10,padx=10) tree = Treeview(window,columns='filename') tree.heading('#0',text='序号') tree.heading("filename",text="文件名称") tree.grid(row=3,columnspan=2,pady=10,padx=10) style.configure('TButton',font=("隶书",15,'bold'),background="#F4EFE7") btn1 = Button(window,text='开始下载',style ='TButton') btn2 = Button(window,text='播放',style ='TButton') btn1.grid(row=4,column=0,pady=10,padx=10) btn2.grid(row=4,column=1,pady=10,padx=10) window.mainloop()