You have a recursive function that doesn't get anywhere: if fahrenheit(x,___). At that point the function calls itself. Before trying to incorporate a function in a GUI, you need to make sure it works in the first place.
You probably mean to compare the second input to a specific text. You should use the strcmp function to do that.