subject

6.5 Code Practice import simplegui

def draw_handler(canvas):

x = 150

y = 150

color = "RGB(0,0,0)"

canvas. draw_polygon([(300,400),(550,400),( 550,550),(300,550)],2,"Red")

canvas. draw_polygon([(275,400),(425,300),( 575,400)],2,"Red")

canvas. draw_polygon([(400,475),(400,550),( 450,550),(450,475)],2,"Green")

canvas. draw_polygon([(325,450),(325,500),( 375,500),(375,450)],2,"Blue")

canvas. draw_polygon([(525,450),(525,500),( 475,500),(475,450)],2,"Blue")

fram=simplegui. create_frame('House',600,600)

frame = simplegui. create_frame('Testing', 600, 600)

frame. set_canvas_background("Pink")

frame. set_draw_handler(draw_handler)

frame. start()

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Raveena is making a professional presentation for a newly launched product of her company. she wants to incorporate the following features in her presentation. a) to add serial numbers in each slide b) to add name of her company on top of each slide. c) to add the picture of her product on the second slide(the picture of her product is stored on her computer) write the commands/features of her presentation tool using which she can perform the above operations.
Answers: 2
question
Computers and Technology, 22.06.2019 14:20
Cengagenowv2 is a comprehensive online learning tool. using cengagenowv2, you may access all of the following except: 2. each time you log in, cengagenowv2 automatically performs a system check and informs you if your computer does not meet the cengagenowv2 system requirements. 3. which tab/page allows you to easily track your assignment scores, number of submissions, time spent, as well as the ability view assign
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
Consider the following function main: int main() { int alpha[20]; int beta[20]; int matrix[10][4]; . . } a. write the definition of the function inputarray that prompts the user to input 20 numbers and stores the numbers into alpha. b. write the definition of the function doublearray that initializes the elements of beta to two times the corresponding elements in alpha. make sure that you prevent the function from modifying the elements of alpha. c. write the definition of the function copyalphabeta that stores alpha into the first five rows of matrix and beta into the last five rows of matrix. make sure that you prevent the function from modifying the elements of alpha and beta. d. write the definition of the function printarray that prints any onedimensional array of type int. print 15 elements per line. e. write a c11 program that tests the function main and the functions discussed in parts a through d. (add additional functions, such as printing a two-dimensional array, as needed.)
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
You know the right answer?
6.5 Code Practice import simplegui

def draw_handler(canvas):

x = 150
<...
Questions
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
English, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Health, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Biology, 11.09.2020 09:01
question
Social Studies, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
question
Mathematics, 11.09.2020 09:01
Questions on the website: 13722367