@@ -55,9 +55,12 @@ def display_files(self):
55
55
Display the files in a Tkinter Treeview within a new Toplevel window.
56
56
"""
57
57
58
- self .root = tk .Toplevel (self .sdk .root )
59
- self .root .title ("Contents" )
60
- self .root .geometry ("1250x800" )
58
+ self .main_root = tk .Toplevel (self .sdk .root )
59
+ self .main_root .title ("File Explorer" )
60
+ self .main_root .geometry ("1400x600" )
61
+
62
+ self .root = tk .Frame (self .main_root , width = 200 , height = 600 )
63
+ self .root .grid (row = 0 , column = 0 , padx = 0 , pady = 0 , sticky = "nsew" )
61
64
62
65
# Search Label and Entry
63
66
search_frame = tk .Frame (self .root )
@@ -105,7 +108,12 @@ def display_files(self):
105
108
106
109
self .tree .bind ("<Double-Button-1>" , self .open_file )
107
110
108
- self .fileList = FileListApp (self .sdk , self .root )
111
+ self .fileList = FileListApp (self .sdk , self .main_root )
112
+
113
+ # Set the minimum size of the cells in the grid to fit the frames
114
+ self .main_root .grid_rowconfigure (0 , weight = 1 )
115
+ self .main_root .grid_columnconfigure (0 , weight = 1 )
116
+ self .main_root .grid_columnconfigure (1 , weight = 4 )
109
117
110
118
def open_file (self , event ):
111
119
"""
0 commit comments