from tkinter import *
root = Tk()
root.geometry("700x200")
frame1 = Frame(root)
frame1.pack()
frame2 = Frame(root)
frame2.pack()
buttonlist = ["流行音乐", "中国古典乐", "日本音乐", "金属风乐", "轻音乐"]
for b in buttonlist:
Button(frame1, text=b).pack(side="left", padx=10)
for i in range(15):
Label(frame2, width=5, height=10, borderwidth=2, relief="solid",
bg="black" if i%2==0 else bg="white").pack(side="left", padx=2)
root.mainloop()