Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python Write a Python GUI program to design and implement an interface shown in figure (1). To get full mark, your GUI must match figure

python
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Write a Python GUI program to design and implement an interface shown in figure (1). To get full mark, your GUI must match figure (1) and apply the specifications and functionalities mentioned in sections (A) and (B). tk File Edit First Name Last Name Gender Department Hobbies Male Computer Science Reading Programming Female Software Engineering Drawing Painting show information Write information A. GUI Specifications The interface window in figure (1) contains a set of widgets with the following specifications: 1- window must have a fixed size (width: 600,height: 350) and cannot be resized at run time. 2- five labels (text color:"blue", padding from left: 30, padding from top: 15). 3. two entry widgets (width: 35). 4- two groups of radiobuttons, each has two radio buttons, 5- one group of checkbuttons with four check buttons. 6- two buttons (background color: "green", width: 25, height: 15). 7- Menu bar that contains the following menus: File menu that contains the menu commands (Open, Save, Exit) Edit menu that contains the menu commands (Copy. Paste, Find) Copy Departam B. Functionalities of the GUI widgets: 1. If the user click the button "show information then an information message box will pop up showing first name, last name, department, gender, and hobbies. An example is shown in figure (2). File Edit First Name Rana Last Name Husni Gender Department Hobbies Male Computer Science Reading Programming Female Software Engineering Drawing Painting information show information Wie information Your full name is Rana Husni ilou study Computer Science Your are Female Your hobbies are Drawing Programming Painting OK 2- If the user click the button "Write information" then first name, last name, department, gender, and hobbies will be saved in a text file named "myInfo.txt". An example is shown in figure (3). myinfo - Notepad File Edit Format View Help Your full name is Rana Husni You study Computer Science Your are Female Your hobbies are: Drawing Programming Painting Ln 1, Col1 100% Windows (CRLF) UTF-8 3- If the user selects Open from File menu, then the selected file name will be displayed in the title bar of the GUI window. An example is shown in figures (4 and 5). Pensile Local Dick ( CUPC Cry File Ede Fest Name Rana Last Name Hun Gender Male Department Computer Science Hobbies Beding Programming Organic Desktop Downloads Documents Pictures Project 2 Project book Management 22 - AM grades Python Screenshots OneDrivePener frukost sigmention Inheritance FY VER TAM This PC Employee Persen 202010522 PV PV Filename PS2 Open Cance Figure 4 X C:/Users/PC/ProjectSec2.py File Edit First Name Last Name Gender Department Hobbies Rana Husnid Male Computer Science Reading Programming Female Software Engineering Drawing Painting show information Winter Figure 5 4. If the user selects Exit from File menu, a Yes, No box should be appeared asking him Are you sure you want to exit?". If No, an information box titled Welcome shows Welcome back again" message otherwise the user will end the application. An example is shown in figure (6). Frame Fut Last Name Male Computer Science Depan Software Engineering Depatment Computer Sonce Female Software Engineering rodin but Are you are you want OK Figure 6

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

(6) How does it support the delivery of the business plan?

Answered: 1 week ago