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, 22.06.2019 19:00
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
What shows the web address of the page that is currently displayed in the workspace? status window toolbar location bar internet box
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
Once a vulnerability has been identified by nessus, where would you check for more information regarding the identified vulnerability, exploits, and any risk mitigation solution?
Answers: 1
You know the right answer?
6.5 Code Practice import simplegui

def draw_handler(canvas):

x = 150
<...
Questions
question
Mathematics, 11.03.2020 01:24
question
Chemistry, 11.03.2020 01:27
Questions on the website: 13722367