Westonci.ca makes finding answers easy, with a community of experts ready to provide you with the information you seek. Get immediate answers to your questions from a wide network of experienced professionals on our Q&A platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.
Sagot :
Answer:
import simplegui
def draw_handler(canvas):
frame = simplegui.create_frame('Testing', 600, 600)
frame.set_canvas_background("Black")
frame.set_draw_handler(draw_handler)
frame.start()
Explanation:
Answer:
import simplegui
x = 50
y = 200
def draw_handler(canvas):
global x
global y
color = "RGB(15, 150, 150)"
RED = "RGB(150,0,0"
BLUE ="RGB(0,20,200"
x = x + 20
if (x >= 1000):
x = 50
canvas.draw_circle((x, y), 50, 1, color, color)
canvas.draw_circle((x, y+20), 50, 1, RED, RED)
canvas.draw_circle((x, y+50), 50, 1, BLUE, BLUE)
canvas.draw_line((x, y), (x+50, y+200), 5, "Red")
canvas.draw_line((x, y), (x+20, y+200), 5, "Green")
canvas.draw_line((x, y), (x-20, y+500), 5, "White")
frame = simplegui.create_frame("Go", 1000, 400)
frame.set_draw_handler(draw_handler)
frame.start()
Explanation:
your welcome
We appreciate your time. Please revisit us for more reliable answers to any questions you may have. Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. We're dedicated to helping you find the answers you need at Westonci.ca. Don't hesitate to return for more.