Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

GUI in python: please complete these two file with above requirements: 1- first file SignupW.py import tkinter as tk class SignupW: def __init__(self): self.window =

GUI in python:

image text in transcribed

please complete these two file with above requirements:

1- first file SignupW.py

 
import tkinter as tk
class SignupW:
def __init__(self):
self.window = tk.Tk()
self.window.title("Sign up")
self.window.geometry('800x800')
self.window.geometry("+600+200") # to position the window in the center
self.buttonBack = tk.Button(self.window, text='Login', command=self.go_Login)
self.buttonBack.pack()
self.window.mainloop()
def go_Login(self):
self.window.update()
self.window.destroy()
import LoginW
LoginW.LoginW()
SignupW()

2-second file LoginW.py

 
import tkinter as tk
class LoginW:
def __init__(self):
self.window = tk.Tk()
self.window.title("Login")
self.window.geometry('800x800')
self.buttonBack = tk.Button(self.window, text='Sign up', command=self.go_signup)
self.buttonBack.pack()
self.window.mainloop()
def go_signup(self):
self.window.update()
self.window.destroy()
import SignupW
SignupW.SignupW()
Introduction: KSU administration is interested in establishing a new reservation system called (KSUWorkSpace) to be used by the students. The system manages all the classroom reservation transactions for different kinds of academic events taking place on KSU campus. The system shall be user friendly and easy to use. Business Requirements: The following are the gathered business requirements need to be translated into a running system: - The system should consist of multiple windows. - Navigating from one window to another should be easy and clear. - The first window (Sign up) which includes: the fields that capture the student information: - First Name, Last Name - Student ID number ( 10 digits) - Password (at least 6 digits or letters) - Email address (in this format XXXXXXXX-ksu.edu.sa) - Phone number (in this format 05XXXXX ) - Submit button: when it is clicked, Then, the system sends the student information to the central database. The system shall not store any student's password; only the hash of the entered password will be stored. So, in case of any cyber attacks, the students password information would not be compromised. If the student has been already registered, the system should display an error message. - Input validation mechanism, and an error message should appear if there is any such violation, and the information will not be sent to the database in that case. - Login button: when it is clicked, the system open the Login window and destroy the current window - The second window (Login) which includes: - A field in which the student or the admin can enter his ID - A field in which the student or the admin can enter his password - Input validation mechanism, and an error message should appear if there is such a violation such as the ID is not digits or less than 10 digits. - Login button: when it is clicked, it connects to the central database to check the validity of the entered credentials. It will check the hash of the entered password against the one stored in the central database. In case of success( the two hashes are matched); if the user is a student, it opens the student window, and if the user is an admin, it opens the Admin window. In case of failure, the system should display an error message to the user

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions