Skip to content

Commit 4c10915

Browse files
committed
update
1 parent 0fdb036 commit 4c10915

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

file.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def load_thumbnail(self, file_path, parent=""):
218218
if file_icons[file_extension]:
219219
image = Image.open(os.path.join(base_path, "icons", file_icons[file_extension]))
220220
else:
221-
image = Image.open(parent + "/" + file_path)
221+
image = Image.open(os.path.join(parent,file_path))
222222
elif os.path.isdir(file_path):
223223
image = Image.open(os.path.join(base_path, "icons", "fileexplorer.png"))
224224

@@ -300,7 +300,6 @@ def load_files_grid_tree(self, folder):
300300
"""
301301
Load the files in the grid view within the selected folder.
302302
"""
303-
print("bite")
304303

305304
if self.init_grid == False:
306305
self.root = tk.Frame(self.main_root, width=1000, height=600)
@@ -346,11 +345,6 @@ def load_files_grid_tree(self, folder):
346345
frame.grid_propagate(False)
347346
frame.grid(row=row, column=col, padx=5, pady=5)
348347

349-
file_path = os.path.join(self.current_folder, file)
350-
frame = ttk.Frame(self.scroll_frame, width=140, height=140, relief="solid", borderwidth=1)
351-
frame.grid_propagate(False)
352-
frame.grid(row=row, column=col, padx=5, pady=5)
353-
354348
if self.enableTree == True:
355349
label = ttk.Label(frame, text=file, wraplength=130, anchor="center")
356350
else:

0 commit comments

Comments
 (0)