im trying to learn python and i thought on make a piano, i started to create it with tkinter, but i dont find the way to arrange the buttons like a piano this is my code:
import tkinter as tk
ventana = tk.Tk()
ventana.geometry("360x240")
label1 = tk.Label()
label1['text'] = "Piano"
label1.pack()
btn_C = tk.Button(ventana, text='C', width=3, height=10)
btn_C.pack()
btn_Db = tk.Button(ventana, text='Db', width=3, height=10)
btn_Db.pack()
btn_E = tk.Button(ventana, text='E', width=3, height=10)
btn_E.pack()
ventana.mainloop()
I also thought that I could create all the buttons with a loop or something like that, if someone could explain me how I would appreciate it very much.
English is not my language, sorry if there is any mistake :p