+ 6

how to make the capacity of a frame to infinity or what desired?

I'm creating a file explorer using tkinter in python for my homework. when my program adds more the 634 files to my frame it won't show them I've tried changing the size of the frame. but it doesn't works. the below is the code of my frame in a canvas: ######################################### canvas = Canvas(bottomframe, width=935, height=1000) frame = Frame(canvas, width=canvas.winfo_height(), height=canvas.winfo_width()) #} ################################## and this is the code to add the files of a directory: ################################## for num,files in enumerate(listdir(dir_path)): path_var=dir_path+files if path.isfile(path_var): filename, file_extension = path.splitext(path_var) if button==6: window.label(root,frame,r) buttons.clear() button=0 r+=2 c=0 folder_button = Button(frame, text=files, command=lambda buttonName=files:button_check(buttonName), width=120, height=120, image=some_img]) button+=1 folder_button.grid(row=r,column=c) buttons.append(files) c+=1 window.label(root,frame,r) ################################## I expect a for that dynamically adds the all files of a directory in a form but it doesn't it only scrolls till the 634th file and the files after that are some thing like below picture: http://s8.picofile.com/file/8360209018/err.png if all code is needed its on github: https://github.com/BahramiAlireza/FileExplorer/tree/master/source I'll be appreciated if you pay attention to my question.

16th May 2019, 2:24 PM
alireza
alireza - avatar
1 Answer
+ 1
Š„уŠ¹
4th Jun 2019, 11:47 AM
Š”ŠµŃ€Š³ŠµŠ¹ Marsahod10
Š”ŠµŃ€Š³ŠµŠ¹ Marsahod10 - avatar