Search code examples
pythonkivykivy-languagepymysql

PyKivy: How would you make a signup input with a Email


I'm trying to make an app where you have to sign up or login but I don't know how to make the textinput for the email. I want to make it so if you did not put a "@" then you will not be able to proceed to the next screen.

How could I do this?

My code:

email = emailText 
emailcheck = ("(%s@%s)")

        if email > 0 or email != (emailcheck):
            print("Email Taken")

        else:
            print("Email Avaliable")

Solution

  • if "@" not in emailCheck:
        #loop back through email input
    

    I'm not sure if you wanted an explanation of how to loop as well since this is a very basic question, but if you do let me know and I can explain it.