I'm trying to figure out an error I get that is related to comparison of function output with an integer:
This is the code:
def qExit():
tkinter.messagebox.askyesno('Quit system', 'Do you want to quit?')
if qExit>0:
root.destroy()
return
This is the error I get whenever I press press the yes button in the message box:
if qExit>0:
TypeError: '>' not supported between instances of 'function' and 'int'
Thanks for the help!
RB
qExit>0?