上でも言われてっけどtkinterのeventとか
x.bind('<1>', print)
みたいな例はいくらでもある