def sm():
seconds_entry_get = seconds_entry.get()
if seconds_entry_get == type(str):
messagebox.showerror("Wrong Input", "Please type a number or decimal")
else:
converted = int(seconds_entry_get) / 60
conversion_text.delete("1.0", "end")
conversion_text.insert("1.0", converted)
There is some "invalid literal" error and I am having trouble fixing it.
print(seconds_entry_get)at the start of your else statement? Does it look like a number?if seconds_entry_get == type(str):does not do what you think it does, I assume what you were trying to do wasif isinstance(seconds_entry_get, str):<Entry>.get()always returns astr.