Westonci.ca offers quick and accurate answers to your questions. Join our community and get the insights you need today. Connect with a community of experts ready to provide precise solutions to your questions on our user-friendly Q&A platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.
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
Thanks for stopping by. We are committed to providing the best answers for all your questions. See you again soon. Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. Thank you for visiting Westonci.ca, your go-to source for reliable answers. Come back soon for more expert insights.