Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+6 votes
asked in CSC201 Spring 2021 by (1 point)

2 Answers

+4 votes

does the 'window' match the variable you used in the line to define your window?

I had the problem where I said

win = create the window
window.setBackground

when I needed to do

win.setBackground()

otherwise you might need to lowercase 'black'

answered by (1 point)
+1 vote

Did you create a graphical window first with GraphWin()?

and then do your whateverYouNamedThisWindow.setBackground("black")

answered by (1 point)
...