Mar-14-2020, 09:05 AM
tkinter.DISABLED is a constant defined in the tkinter package whose value is 'disabled',
so you could use state='disabled' and it would work the same.
However, the naming convention in python for constants is
colors on the other hand are used across many packages including tkinter. The 'standard' is to use CamelCase see: https://www.w3schools.com/colors/colors_names.asp however case is not strictly adhered to in all applications, therefore even though 'Orange' is 'standard' 'orange' will usually work.
pynche is the python color and hue editor defines all colors in a text file if you want a list, they can be found here: https://github.com/python/cpython/blob/m...colors.txt
so you could use state='disabled' and it would work the same.
However, the naming convention in python for constants is
Quote:Constant names must be fully capitalizedall constants can be found at https://github.com/python/cpython/tree/m...nstants.py
colors on the other hand are used across many packages including tkinter. The 'standard' is to use CamelCase see: https://www.w3schools.com/colors/colors_names.asp however case is not strictly adhered to in all applications, therefore even though 'Orange' is 'standard' 'orange' will usually work.
pynche is the python color and hue editor defines all colors in a text file if you want a list, they can be found here: https://github.com/python/cpython/blob/m...colors.txt