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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, miracle9704
Atool that matches persoal skills qualities interests and talets to a career is called a
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, TheBurntToast
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
image
Computers and Technology, 23.06.2019 15:10, cathyjuan
What role did women fill during world war ii?
Answers: 1
image
Computers and Technology, 23.06.2019 17:30, granta1
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
You know the right answer?
6.5 Code Practice import simplegui

def draw_handler(canvas):

x = 150
<...

Questions in other subjects:

Konu
Geography, 30.09.2019 14:10
Konu
Mathematics, 30.09.2019 14:10