Appelez une fonction Onclick Tkinter
def someFunction:
function body
tkWindow = Tk()
button = Button(tkWindow, command=someFunction)
Philan ISithembiso
def someFunction:
function body
tkWindow = Tk()
button = Button(tkWindow, command=someFunction)