Sorry, I was sidetracked and didn't finish.
you're already setting the color, for example:
fg="black" - sets foreground color.
you can use the standard color names, or rgb values like "#ff0000"
There are other colors that can be set, for example:
activebackground - Background color when the button is under the cursor.
highlightbackground - Color of the focus highlight when the widget does not have focus.
etc.
You can find out about them in the tkinter reference here: http://infohost.nmt.edu/tcc/help/pubs/tk...utton.html
color names can be found here: https://www.w3schools.com/colors/colors_names.asp
schemes (colors that work well together) can be found here: https://www.w3schools.com/colors/colors_schemes.asp
and to cook your own, there is a color picker tool here: https://www.w3schools.com/colors/colors_picker.asp
My original comment is about the repetition in your code.
You can greatly simplify the code by using functions (or a class with methods).
I would guess code reduction on the order of 60 to 80 %
you're already setting the color, for example:
button1 = Button(topframe, padx=16, bd=8, text="AIRCARD A-1 ON LINE", bg="green", fg="black", command=led1_on)bg="green" - sets the background color.bg="green" - sets backgrund color
fg="black" - sets foreground color.
you can use the standard color names, or rgb values like "#ff0000"
There are other colors that can be set, for example:
activebackground - Background color when the button is under the cursor.
highlightbackground - Color of the focus highlight when the widget does not have focus.
etc.
You can find out about them in the tkinter reference here: http://infohost.nmt.edu/tcc/help/pubs/tk...utton.html
color names can be found here: https://www.w3schools.com/colors/colors_names.asp
schemes (colors that work well together) can be found here: https://www.w3schools.com/colors/colors_schemes.asp
and to cook your own, there is a color picker tool here: https://www.w3schools.com/colors/colors_picker.asp
My original comment is about the repetition in your code.
You can greatly simplify the code by using functions (or a class with methods).
I would guess code reduction on the order of 60 to 80 %