# CodeSkulptor runs Python programs in your browser. # Click the upper left button to run this simple demo. # CodeSkulptor runs in Chrome 18+, Firefox 11+, and Safari 6+. # Some features may work in other browsers, but do not expect # full functionality. It does NOT run in Internet Explorer. import simplegui message = "Shrubbery" print "Shrubbery" # Handler to draw on canvas def draw(canvas): canvas.draw_text(message, [225,100], 35, "Green") # Create a frame and assign callbacks to event handlers frame = simplegui.create_frame("Shrubbery", 500, 500) frame.set_canvas_background('Blue') frame.set_draw_handler(draw) # Start the frame animation frame.start()