Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python gui: In-lab assignment #8 Topics: Python GUI Due: due in lab Problem Statement: The purpose of this lab assignment is to gain experience in

Python gui:
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
In-lab assignment #8 Topics: Python GUI Due: due in lab Problem Statement: The purpose of this lab assignment is to gain experience in python's tkinter GUI Application. This assignment is an extension to ILA7 1. 2. 3. Design a Working Login GUI application in Python. An authenticate.txt file will be provided, which will have one username and password. You need to design the GUI application to perform the following operations, Provide two labels and two entry fields for the username and password as you did in the previous assignment. You can use the code of that. a. b. A login button should be provided. This button should be a working button. Whern the user enters the username and password, the program should check with the username and password provided in the authenticate.txt file, to check if its same or not. c. If a match is found then provide a "login message" as shown below. d. If the user enters wrong username or password, then display the "error message" as shown below 4. Your task: Please see below: a. Read the authenticate.txt file through read file) method b. Create a method named "click()" which verifies the username and password from the text file. When the login button is clicked, it should go to this method to authenticate the details entered. You can use get0) function to get the user input from the entries for username and password: self.entry_name.get0) c. In order to display the message box, import the message box from tkinter as shown below (code provided) from tkinter import messagebox import tkMessageBox #ifor Python 3 version #for Python 2.7 version d. Then after you check the username and password, to display the appropriate message box, use the showinfo() or showerror) as follows, messagebox.showinfo(Window title, Text) #login message messagebox.showerror(window title. Text) #error message For example from tkinter import messagebox messagebox.showinfof Title", "a Tk MessageBox

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

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

Explain how analytics can be used for workplace redesign.

Answered: 1 week ago

Question

b. Will there be one assigned leader?

Answered: 1 week ago

Question

d. How will lack of trust be handled?

Answered: 1 week ago

Question

b. Does senior management trust the team?

Answered: 1 week ago