AttributeError: 'PhotoImage' object has no attribute ...
coderedirect.com › questions › 405541Try creating PIL image first with Image.open('file_path') and then do Photoimage.Also, you need to keep a reference to the PhotoImage or it wont show in tkinter. import os import tkinter as tk import tkinter.ttk as ttk from PIL import Image, ImageTk class App(ttk.Frame): def __init__(self, master, path): ttk.Frame.__init__(self, master) self.tree = ttk.Treeview(self) ysb = ttk.Scrollbar(self ...