I would like to write something along the lines of
if button has option bg=\'red\': do something
Is there a way to return the button\'s o