@@ -107,7 +107,7 @@ def __init__(self, root):
107
107
self .window .title ("Settings" )
108
108
self .window .minsize (580 , 445 )
109
109
sizex = self .window .minsize ()[0 ]
110
- # sizey = self.window.minsize()[1]
110
+ sizey = self .window .minsize ()[1 ]
111
111
self .window .resizable (False , False )
112
112
self .window .config (bg = "#101010" )
113
113
self .window .protocol ("WM_DELETE_WINDOW" , self ._destroy_checkname )
@@ -188,17 +188,17 @@ def lc_event3(event):
188
188
189
189
self .label_skey = btk .MyLabelStyle (self .window , "API Key:" )
190
190
self .label_skey .frame .config (cursor = "hand2" )
191
- self .label_skey .frame .grid (row = 20 , column = 0 , padx = 5 , pady = 5 )
191
+ self .label_skey .frame .grid (row = 10 , column = 0 , padx = 5 , pady = 5 )
192
192
self .label_skey .frame .bind ("<Button-1>" , lc_event3 )
193
193
self .entry_steam_key = btk .MyEntryStyle (self .window , g .settings_dict ["steam_api_key" ])
194
194
self .entry_steam_key .frame .config (state = "normal" )
195
- self .entry_steam_key .frame .grid (row = 20 , column = 1 , sticky = tk .W + tk .E , padx = 5 , columnspan = 3 )
195
+ self .entry_steam_key .frame .grid (row = 10 , column = 1 , sticky = tk .W + tk .E , padx = 5 , columnspan = 3 )
196
196
197
197
self .btn_save = btk .MyButtonStyle (self .window , "Save to file" , self ._update_on_save )
198
- self .btn_save .btn .grid (row = 21 , column = 3 , sticky = tk .E , padx = 5 , pady = 5 )
198
+ self .btn_save .btn .grid (row = 11 , column = 3 , sticky = tk .E , padx = 5 , pady = 5 )
199
199
200
200
self .btn_analyze = btk .MyButtonStyle (self .window , "Analyze a demo" , self ._analyze_demo )
201
- self .btn_analyze .btn .grid (row = 21 , column = 0 , columnspan = 2 , sticky = tk .W , padx = 5 , pady = 5 )
201
+ self .btn_analyze .btn .grid (row = 11 , column = 0 , columnspan = 2 , sticky = tk .W , padx = 5 , pady = 5 )
202
202
203
203
def lc_event1 (event ):
204
204
if g .browser_path is None :
@@ -208,14 +208,28 @@ def lc_event1(event):
208
208
209
209
self .label_github = btk .MyLabelStyle (self .window , "v{} {}" .format (g .VERSION , g .PROJECT_LINK ))
210
210
self .label_github .frame .config (cursor = "hand2" )
211
- self .label_github .frame .grid (row = 21 , column = 1 , padx = 5 , pady = 5 , columnspan = 2 )
211
+ self .label_github .frame .grid (row = 11 , column = 1 , padx = 5 , pady = 5 , columnspan = 2 )
212
212
self .label_github .frame .bind ("<Button-1>" , lc_event1 )
213
213
214
214
self ._update_all_settings ()
215
- self .window .grid_columnconfigure (0 , minsize = 0.15 * sizex , weight = 1 )
216
- self .window .grid_columnconfigure (1 , minsize = 0.5 * sizex , weight = 1 )
217
- self .window .grid_columnconfigure (2 , minsize = 0.15 * sizex , weight = 1 )
218
- self .window .grid_columnconfigure (3 , minsize = 0.2 * sizex , weight = 1 )
215
+ self .window .grid_columnconfigure (0 , minsize = 0.15 * sizex * g .settings_dict ["scaling" ], weight = 1 )
216
+ self .window .grid_columnconfigure (1 , minsize = 0.5 * sizex * g .settings_dict ["scaling" ], weight = 1 )
217
+ self .window .grid_columnconfigure (2 , minsize = 0.15 * sizex * g .settings_dict ["scaling" ], weight = 1 )
218
+ self .window .grid_columnconfigure (3 , minsize = 0.2 * sizex * g .settings_dict ["scaling" ], weight = 1 )
219
+
220
+ self .window .grid_rowconfigure (0 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
221
+ self .window .grid_rowconfigure (1 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
222
+ self .window .grid_rowconfigure (2 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
223
+ self .window .grid_rowconfigure (3 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
224
+ self .window .grid_rowconfigure (4 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
225
+ self .window .grid_rowconfigure (5 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
226
+ self .window .grid_rowconfigure (6 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
227
+ self .window .grid_rowconfigure (7 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
228
+ self .window .grid_rowconfigure (8 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
229
+ self .window .grid_rowconfigure (9 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
230
+ self .window .grid_rowconfigure (10 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
231
+ self .window .grid_rowconfigure (11 , minsize = 0.083 * sizey * g .settings_dict ["scaling" ], weight = 1 )
232
+
219
233
self .window .grid_propagate (False )
220
234
self .window .update_idletasks ()
221
235
self .window .geometry ("+%d+%d" % (f .calc_window_pos (root , self .window )))
0 commit comments