Return the visual class for the widget, one of "directcolor", "grayscale", "pseudocolor", "staticcolor", "staticgray", or "truecolor".
tkinter/Misc.winfo_visual
Misc.winfo_visual