Return the depth of the widget, that is, the number of bits per pixel.
tkinter/Misc.winfo_depth
Misc.winfo_depth