Im making a tic-tac-toe game and i need to check if the button text is 'X' or 'O' so i can check if there is a winner. Is there any way for me to do this? I tried this just as a random guess to see how it works:
if button1.config(text='X'):
#x_won = True
else:
pass
Is there any way for me to do this?