if I use:

color = {1: 'green', 2: 'yellow', 3: 'red', 4: 'c', 5: 'black'}

I get a warning and button event is not displayed. I think it should be displayed anyway with an other color.