Code for sign up page in pyton
from tkinter import *
from tkinter import messagebox
def sign_up():
username = entry_username.get()
password = entry_password.get()
confirm_password = entry_confirm_password.get()
if password == confirm_password:
messagebox.showinfo("Sign Up", "Sign Up successful")
else:
messagebox.showerror("Sign Up", "Passwords do not match")
root = Tk()
root.title("Sign Up")
Label(root, text="Username").grid(row=0, column=0)
Label(root, text="Password").grid(row=1, column=0)
Label(root, text="Confirm Password").grid(row=2, column=0)
entry_username = Entry(root)
entry_password = Entry(root, show="*")
entry_confirm_password = Entry(root, show="*")
entry_username.grid(row=0, column=1)
entry_password.grid(row=1, column=1)
entry_confirm_password.grid(row=2, column=1)
Button(root, text="Sign Up", command=sign_up).grid(row=3, column=1)
root.mainloop()
from tkinter import *
from tkinter import messagebox
def sign_up():
username = entry_username.get()
password = entry_password.get()
confirm_password = entry_confirm_password.get()
if password == confirm_password:
messagebox.showinfo("Sign Up", "Sign Up successful")
else:
messagebox.showerror("Sign Up", "Passwords do not match")
root = Tk()
root.title("Sign Up")
Label(root, text="Username").grid(row=0, column=0)
Label(root, text="Password").grid(row=1, column=0)
Label(root, text="Confirm Password").grid(row=2, column=0)
entry_username = Entry(root)
entry_password = Entry(root, show="*")
entry_confirm_password = Entry(root, show="*")
entry_username.grid(row=0, column=1)
entry_password.grid(row=1, column=1)
entry_confirm_password.grid(row=2, column=1)
Button(root, text="Sign Up", command=sign_up).grid(row=3, column=1)
root.mainloop()