This is the article where you can find the basic code for you to develop. It is the basic Tkinter GUI with a button and an assigned event.
Gui with event code
from tkinter import * def my_function(event): print('Pressed: My Event') root = Tk() root.title("My app") my_button = Button(root, width = 30, bg = "#FF8000", text = "My button", relief=RIDGE, state=DISABLED) my_button.grid(row = 0, column = 1) my_button.bind("", my_function) root.mainloop()
Function my_function is the event assigned to the button. You can develop the event to do more fancy stuff than just printing the string out.
Also develop the my_button to adjust the button as you need it. Also you can add more buttons 😉