tkinter button call functions code example
Example: call a function onclick tkinter
def someFunction:
function body
tkWindow = Tk()
button = Button(tkWindow, command=someFunction)
def someFunction:
function body
tkWindow = Tk()
button = Button(tkWindow, command=someFunction)