Tkinter - General – View all configure options of a widget

To view all the options that can be changed for a widget using .configure(), run the .keys() method to view the options of a widget.

my_button = ttk.Button(root)
print(my_button.keys())

>> ['command', 'default', 'takefocus', 'text', 'textvariable', 'underline', 'width', 'image', 'compound', 'padding', 'state', 'cursor', 'style', 'class']

This is useful for knowing which widget options can be changed during runtime when using the .configure() method.