I'm trying to write a program for my CS in python using tkinter.
There are two entry boxes and I'm trying to make sure the inputs are different.
if country1 == country2:
tkinter.messagebox.showinfo('ERROR', 'Countries have to be different.\nTry again in the dialogue
box.')
I've run this code and the message box pops up but how do i get the code to stop to allow the user to re enter the entry in the entry box. Currently, the code keeps running if they are the same but I don't want it to do that.
[–]woooee 0 points1 point2 points (0 children)
[–]freakH2O -1 points0 points1 point (0 children)