Feb-02-2021, 11:37 PM
Trying out making a clicker game and wondering what the likely simple fix to this is. I'm not quite sure how to approach it but I want to have the clicker count increase by 1 each time. Thanks in advance
def button(): a = 0 b = 1 result = a + b counter_label = Label(root, text=str(result) + " cookies") counter_label.grid(row=4, column=2) button_click = Button(root, command=button, text="Click", width=15, height=5) button_click.grid(row=2, column=2) root.mainloop()