Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Import the graphics library to your python file at the top of the lab file. Function 1: The main function Inside the main function of

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Import the graphics library to your python file at the top of the lab file. Function 1: The main function Inside the main function of this lab you have only one statement which is call the function Createlnterface defined below Function 2: Create a windows Write a function called CreateWindow that takes no parameters and it returns one value. Inside the function perform the following: Create a graphical window with the title Lab 5 and width 600 and height of 600. . Set the background color of the window to white. . Show the message "Welcome to Lab 5" centered at point (300,15). Make the text with size 16 and it is with red color. Draw a line between the points (10,20) and (590,20) with a blue color. Return back the window you created inside the function. e Function 3: Closing the window Write a function called Close Window that receives one parameter and it returns nothing back. The function receives one parameter which is the name of a graphical window. The function let the user clicks a mouse on that window then it closes the window. Import the graphics library to your python file at the top of the lab file. Function 1: The main function Inside the main function of this lab you have only one statement which is call the function Createlnterface defined below Function 2: Create a windows Write a function called CreateWindow that takes no parameters and it returns one value. Inside the function perform the following: Create a graphical window with the title Lab 5 and width 600 and height of 600. . Set the background color of the window to white. . Show the message "Welcome to Lab 5" centered at point (300,15). Make the text with size 16 and it is with red color. Draw a line between the points (10,20) and (590,20) with a blue color. Return back the window you created inside the function. e Function 3: Closing the window Write a function called Close Window that receives one parameter and it returns nothing back. The function receives one parameter which is the name of a graphical window. The function let the user clicks a mouse on that window then it closes the window

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_2

Step: 3

blur-text-image_3

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions