I have a 10x10 grid of buttons and have seen that the normal bg=colour parameter will not work on Mac so I am using the code below:
for x in range(10):
for y in range(10):
btn = Button(frame, highlightbackground='dark slate gray')
btn.config(height=1, width=1)
btn.grid(column=x, row=y, sticky=N+S+E+W)
When I first run the program they look a translucent green with a dark green border which is fine, but when I click the buttons there is no longer the visual queue that the button is being clicked. Strangely, I have a simple quit button at the bottom of my program:
quit_game = Button(root, text='Quit', border=10, font=('Helvetica', 16), highlightbackground='red3', fg='white', command=end_game, highlightthickness=1)
quit_game.grid(row=15, column=0, columnspan=12)
and when I click this button and choose no so the program continues, the buttons (including the quit button) lose their colour but start to show the reaction to the click again!
My question is what am I doing wrong/how else could I do this on Mac and avoid these issues?