I am trying to get the following ENUM to work, but it's not working. Any help is appreciated.
class Colour(Enum): WHITE = (255,255,255) BLACK = (0,0,0) RED = (215,45,45) BLUE = (45,87,214) YELLOW = (230,223,48) GREEN = (45,194,64)
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 "/Users/blooop/main.py" Traceback (most recent call last): File "/Users/bloopppp/main.py", line 27, in <module> gameDisplay.fill(Colour.BLACK) TypeError: invalid color argument
Process finished with exit code 1
I'm still learning Python, so all help is greatly appreciated!