def clickMe(button, name, number): button.configure(text='Hello {} {}'.format(name.get(), number.get())) # Button callback Clear Text