import Tkinter app = Tk() def function(): pass button = Button(app, text="write whatevr you want", width=10, command=function) button.config(text="you can change up to a single parameter per config function")