I am trying to use:
rectangle.background = (187,187,187) to set the color of a rectangle to grey (It starts green).
rectangle is a reference to the rectangle object on the screen and has been verified as the correct object since I can print out its name and it matches what I think it should be.
I also tried rectangle.foreground = (187,187,187) and then rectangle.repaint after each one to get it to change, but no avail.
I even printed out rectangle.background and rectangle.foreground, and it registers it as changing the color (prints something like RGB (187,187,187))! Still no update on the screen, however.
What am I missing?
Also, is there a complete reference to all objects somewhere? I had to use dir(rectangle) and print it out to see the available methods and properties, but they only show them by name and not what the methods expect as arguments, return types, etc.