@@ -63,27 +63,6 @@ def set_resizability(resizability):
6363 config [window_name_y ]['ysupportforresizability' ] = "False"
6464 with open (CONFIG_PATH , 'w' ) as configfile :
6565 config .write (configfile )
66-
67-
68- def set_custom_resolution (custom_resolution ):
69- global userCustomResolution ,custom_res_input ,custom_res_input_btn
70- userCustomResolution = custom_resolution
71- if custom_resolution == "on" or config ['Settings' ]['customresolution' ] == "True" :
72- custom_resolution_status .config (text = custom_resolution_status_title + " " + on .lower ())
73- custom_res_input = Text (window , width = 15 , height = 1 )
74- custom_res_input .place (x = 5 , y = 410 )
75- custom_res_input_btn = Button (window , text = custom_res_input_title , bg = "#3a3a3a" , fg = "#dcdcdc" , activebackground = "#666666" , activeforeground = "#dcdcdc" )
76- custom_res_input_btn .place (x = 140 , y = 410 )
77- config ['Settings' ]['customresolution' ] = "True"
78- with open (CONFIG_PATH , 'w' ) as configfile :
79- config .write (configfile )
80- elif custom_resolution == "off" or config ['Settings' ]['customresolution' ] == "False" :
81- custom_resolution_status .config (text = custom_resolution_status_title + " " + off .lower ())
82- custom_res_input .place_forget ()
83- custom_res_input_btn .place_forget ()
84- config ['Settings' ]['customresolution' ] = "False"
85- with open (CONFIG_PATH , 'w' ) as configfile :
86- config .write (configfile )
8766
8867def close (event = None ):
8968 window .destroy ()
@@ -138,14 +117,6 @@ def Settings():
138117 resizability_y_status .place (y = 295 )
139118 resizability_y_window_name = Entry (window , width = 20 )
140119 resizability_y_window_name .place (x = 100 , y = 270 )
141- custom_resolution_support = Label (window , text = custom_resolution_support_title , font = ("Arial" ,12 ,"bold" ), bg = label_bg , fg = label_fg )
142- custom_resolution_support .place (y = 325 )
143- custom_resolution_on = Button (window , text = on , bg = button_bg , fg = button_fg , activebackground = button_active_bg , activeforeground = button_active_fg , command = lambda : set_custom_resolution ("on" ))
144- custom_resolution_on .place (x = 5 , y = 360 )
145- custom_resolution_off = Button (window , text = off , bg = button_bg , fg = button_fg , activebackground = button_active_bg , activeforeground = button_active_fg , command = lambda : set_custom_resolution ("off" ))
146- custom_resolution_off .place (x = 40 , y = 360 )
147- custom_resolution_status = Label (window , text = custom_resolution_status_title , bg = label_bg , fg = label_fg )
148- custom_resolution_status .place (y = 385 )
149120 if config ['Theme' ]['usertheme' ] == "dark" :
150121 theme_status .config (text = theme_status_title + " " + dark_theme_title .lower ())
151122 elif config ['Theme' ]['usertheme' ] == "light" :
0 commit comments