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 18:10
How can i delete permalinks from a word press site?
Answers: 1
question
Computers and Technology, 23.06.2019 00:20
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
question
Computers and Technology, 23.06.2019 20:40
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
Python. primary u.s. interstate highways are numbered 1-99. odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. thus, the 405 services the 5, and the 290 services the 90. given a highway number, indicate whether it is a primary or auxiliary highway. if auxiliary, indicate what primary highway it serves. also indicate if the (primary) highway runs north/south or east/west.
Answers: 1
You know the right answer?
6.5 Code Practice import simplegui

def draw_handler(canvas):

x = 150
<...
Questions
question
English, 04.02.2020 01:45
question
History, 04.02.2020 01:45
question
Chemistry, 04.02.2020 01:45
Questions on the website: 13722363