ZoRo
ZoRo

Reputation: 421

Make a click event in Tkinter

I'm trying do a very simple task: Make a Button click in Tkinter.

I have an array of Buttons and, when I finish an event, I want to make a Button click event in one of my buttons.

I thought it should be as simple as buttons[2].click(), but that doesn't do anything.

Upvotes: 1

Views: 1034

Answers (1)

John La Rooy
John La Rooy

Reputation: 304127

Try calling .invoke() on the button

Upvotes: 3

Related Questions