Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
email = clinic_email.get()
pattern = r'^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[cC][oO][mM]$'
if email:
if not re.match(pattern, email):
error_label_email.config(text="Please should be have @ and .com", fg="red")
else:
error_label_email.config(text="")
else:
error_label_email.config(text="")
def validate_password(event=None):
password = clinic_password.get().strip()
if len(password) >= 8 and re.search(r"[A-Z]", password) and re.search(r"[a-z]", password) and re.search(r"d", password) and re.search(r"[!@#$%^&*(),.?":{}|<>]", password):
error_label_password.config(text=" ")
else:
if len(password) < 8:
error_label_password.config(text="Password must have a minimum of 8 characters.", fg="red")
if not re.search(r"[A-Z]", password):
error_label_password.config(text="Password must contain at least one uppercase letter.",fg="red")
if not re.search(r"[a-z]", password):
error_label_password.config(text="Password must contain at least one lowercase letter.", fg="red")
if not re.search(r"d", password):
error_label_password.config(text="Password must contain at least one numerical digit.", fg="red")
if not re.search(r"[!@#$%^&*(),.?":{}|<>]", password):
error_label_password.config(text="Password must contain at least one special character.", fg="red")
#
def validate_conf_password(event=None):
if clinic_password.get().strip() != clinic_cnf_password.get().strip():
error_label_conf_password.config(text="Password does not match.", fg="red")
root.after(4000 , lambda: error_label_conf_password.destroy())
else:
error_label_conf_password.config(text="")
clinic_email_lable = Label(root, text="Email*:", font=("bold", 13),
background='#e6f5fc')
clinic_email_lable.place(x=int(window_width*0.70), y=int(height*0.50))
clinic_email_entry = Entry(root, textvar=clinic_email, highlightthickness=0, width=36)
clinic_email_entry.place(x=int(window_width*0.90), y=int(height*0.50))
error_label_email = Label(root, text="", font=("Arial", 10), background='#e6f5fc')
error_label_email.place(x=int(window_width*0.90), y=int(height*0.53))
clinic_email_entry.bind("<KeyRelease>", lambda event: validate_email())
clinc_password_lable= tk.Label(root, text="Password*:", font=("bold", 13),
background='#e6f5fc')
clinc_password_lable.place(x=int(window_width*0.70), y=int(height*0.60))
# clinc_password_entry = Entry(root, textvar=clinic_password, highlightthickness=0, width=36, show='*')
clinc_password_entry = Entry(root, textvar=clinic_password, highlightthickness=0, width=36)
clinc_password_entry.place(x=int(window_width*0.90), y=int(height*0.60))
error_label_password = Label(root, text="", font=("Arial", 10), background='#e6f5fc')
error_label_password.place(x=int(window_width*0.90), y=int(height*0.63))
# eye_closed_image = tk.PhotoImage(file='eye_closed.png') # Path to your closed eye image
# eye_open_image = tk.PhotoImage(file='eye_open.png') # Path to your open eye image
# eye_icon = tk.Label(root, image=eye_closed_image, background='#e6f5fc')
# eye_icon.place(x=int(window_width*0.95), y=int(height*0.60))
clinc_password_entry.bind("<KeyRelease>", lambda event: validate_password())
# eye_icon.bind("<Button-1>", lambda event: toggle_password_visibility())
conf_password_lable= tk.Label(root, text="Confirm Password*:", font=("bold", 13),
background='#e6f5fc')
conf_password_lable.place(x=int(window_width*0.70), y=int(height*0.70))
clinc_conf_password_entry = Entry(root, textvar=clinic_cnf_password, highlightthickness=0, width=36, show="*")
clinc_conf_password_entry.place(x=int(window_width*0.90), y=int(height*0.70))
error_label_conf_password = Label(root, text="", font=("Arial", 10), background='#e6f5fc')
error_label_conf_password.place(x=int(window_width*0.90), y=int(height*0.73))
clinc_conf_password_entry.bind("<KeyRelease>", lambda event: validate_conf_password())
# Create a submit button
submit_button = tk.Button(root, text="Submit", command=submit_form, bg='#9BC2F9', width=15)
submit_button.place(x=int(window_width*0.85), y=int(height*0.80))
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team