Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+5 votes
asked in CSC201 Spring 2021 by (8 points)

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 (8 points)
+1 vote

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

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

answered by (8 points)
...