How To Dynamically Resize Button Text - Python Tkinter GUI Tutorial ... We'll do this by binding the root window Configure to a function that grabs the width and height of the app and uses those measurements to resize the text size of our button. Python Code: button_text.py. ( Github Code) from tkinter import * root = Tk () root.title ('Codemy.com - Resize Button Text') root.iconbitmap ('c:/gui/codemy.ico') root ...