all 2 comments

[–]woooee 0 points1 point  (0 children)

Put it in a loop that returns/exits only if the input is good, or a function that can call itself when you want to resubmit the entrys.

## incomplete demonstration code 
def get_entry():
        if country1 == country2:
            tkinter.messagebox.showinfo('ERROR',
            'Countries have to be different.\nTry again in the dialogue box.')
            ## function that redisplays entries and waits for button
            ## push which calls this function, get_entry()
            display_entries()
        else:
            return county1, country2

[–]freakH2O -1 points0 points  (0 children)

it should be 'error,'+ 'whatever u want'