Q:

IF statements depending on widget configuration tkinter

Can I create an if statement whose condition depends on the text of a button? 
For example:
if widget.config(text=2):
     btn.config(font=font2)

A:

.config() is only to set value.  
To get value you have .cget()
if widget.cget("text") == "2":

or dictionary 
if widget["text"] == "2":

text is string so you have to compare with string "2" or you have to convert string to integer 
if int(widget["text"]) == 2:

EDIT: cget() doc shows it returns strings but for int and float it doesn't convert value to string.