proiect finalizat

This commit is contained in:
andrei-mihnea-cerbu
2024-01-13 12:59:19 +02:00
parent 54542da299
commit 67b7a241d7
53 changed files with 321 additions and 19 deletions
+9
View File
@@ -14,6 +14,10 @@ def hash_password(password):
class SignupView(tk.Frame):
"""
This view takes care of the registration of the user in the system. This class receives the sing up
information and validates them. The response is shown to the user.
"""
def __init__(self, master=None):
super().__init__(master)
self.form_frame = None
@@ -27,6 +31,7 @@ class SignupView(tk.Frame):
self.params = None
def create_widgets(self):
"""Creates the layout of the view"""
# Create a frame to hold the entry fields and labels
self.form_frame = tk.Frame(self)
@@ -78,6 +83,10 @@ class SignupView(tk.Frame):
self.master.change_to_initial_view()
def on_signup(self):
"""
After sign up button pressed, the validation of the provided information starts and will redirect the
user to next view if everything is accepted
"""
# Retrieve values from entry fields
username = self.username_entry.get()
email = self.email_entry.get()