from kandinsky import * # Get user input user_input = input("Enter text: ") # Clear the screen fill_rect(0, 0, 320, 240, color(255, 255, 255)) # Draw the button outline fill_rect(100, 100, 120, 40, color(0, 0, 0)) # Black outline # Draw the button with user input inside (black foreground color) fill_rect(102, 102, 116, 36, color(0, 128, 255)) # Blue button draw_string(user_input, 130, 115, color(0, 0, 0)) # Black text # Keep the display active while True: pass