Сделал так.
tv.insert('', index, text='Name', tag=group.id, values=(group.name, group.__repr__()))
tv.tag_configure(group.id, image=photo, text=None)
Теперь через раз, то вот так ругает:
File "/.../script.py", line 223, in insert_group
tv.tag_configure(group.id, image=photo, text=None)
File "/usr/lib/python3.4/tkinter/ttk.py", line 1450, in tag_configure
tagname)
File "/usr/lib/python3.4/tkinter/ttk.py", line 297, in _val_or_dict
res = tk.call(*(args + options))
_tkinter.TclError: unknown option "pyimage1"
то вот так:
File "/.../script.py", line 223, in insert_group
tv.tag_configure(group.id, image=photo, text=None)
File "/usr/lib/python3.4/tkinter/ttk.py", line 1450, in tag_configure
tagname)
File "/usr/lib/python3.4/tkinter/ttk.py", line 297, in _val_or_dict
res = tk.call(*(args + options))
_tkinter.TclError: value for "-text" missing
Но во втором варианте появляется изображение.
Подозреваю: нужно выводить только фото, а текст как-то занулить.
upd: Появилась фантастиш-тормоза идея. Если картинка только при исключении “_tkinter.TclError: value for ”-text“ missing”, то в лупе пытаться поймать именно её Но объем картинок может быть в 2000 и более.