We’re missing the bits on how you store and retrieve the color from the model. Could you please write a small, self-contained example that exhibits this issue, and post it here?
Python 3, Debian Sid, Glade with a RGBA default color in pos 3
This is basicaly what I try to add
widget = mytreeview
path = cursor[0]
// I want the color of the selected path
selection = widget.get_selection()
solicitud = (widget.get_model(), path)
if solicitud[0] and solicitud[1]:
color = solicitud[0][solicitud[1]][3]
if color:
color = color.to_string()
else:
color = "@theme_selected_bg_color;color:@theme_selected_fg_color"