generate functionSat, 12 Nov 2022

Open a fullscreen window that has the text "butts" written in the center. Close it after 5 seconds.

from time import sleep def display_butts(win): win.setBackground("white") text = Text(Point(win.getWidth()/2, win.getHeight()/2), "butts") text.draw(win) sleep(5) win.close()

Questions about programming?Chat with your personal AI assistant