Return the depth of the root window of the widget’s screen, that is, the number of bits per pixel.
tkinter/Misc.winfo_screendepth
Misc.winfo_screendepth