Chame uma função ONCLICK TKINER
def someFunction:
function body
tkWindow = Tk()
button = Button(tkWindow, command=someFunction)
Philan ISithembiso
def someFunction:
function body
tkWindow = Tk()
button = Button(tkWindow, command=someFunction)