@@ -76,7 +76,7 @@ def excepthook(exc_type, exc_obj, exc_tb):
7676
7777# constants
7878# # gmoccapy #"
79- _RELEASE = " 3.4.7"
79+ _RELEASE = " 3.4.7.1 "
8080_INCH = 0 # imperial units are active
8181_MM = 1 # metric units are active
8282
@@ -220,7 +220,7 @@ def __init__(self, argv):
220220
221221 self .xpos = 40 # The X Position of the main Window
222222 self .ypos = 30 # The Y Position of the main Window
223- self .width = 979 # The width of the main Window
223+ self .width = 980 # The width of the main Window
224224 self .height = 750 # The height of the main Window
225225
226226 self .gcodeerror = "" # we need this to avoid multiple messages of the same error
@@ -2913,20 +2913,20 @@ def on_window1_show(self, widget, data=None):
29132913 self .widgets [start_as ].set_active (True )
29142914 self .widgets .window1 .set_decorated (not self .prefs .getpref ("hide_titlebar" , False , bool ))
29152915 self .widgets .chkbtn_hide_titlebar .set_active (not self .widgets .window1 .get_decorated ())
2916+ self .xpos = int (self .prefs .getpref ("x_pos" , self .xpos , float ))
2917+ self .ypos = int (self .prefs .getpref ("y_pos" , self .ypos , float ))
2918+ self .width = int (self .prefs .getpref ("width" , self .width , float ))
2919+ self .height = int (self .prefs .getpref ("height" , self .height , float ))
2920+ # set the adjustments according to Window position and size
2921+ self .widgets .adj_x_pos .set_value (self .xpos )
2922+ self .widgets .adj_y_pos .set_value (self .ypos )
2923+ self .widgets .adj_width .set_value (self .width )
2924+ self .widgets .adj_height .set_value (self .height )
29162925 if start_as == "rbtn_fullscreen" :
29172926 self .widgets .window1 .fullscreen ()
29182927 elif start_as == "rbtn_maximized" :
29192928 self .widgets .window1 .maximize ()
29202929 else :
2921- self .xpos = int (self .prefs .getpref ("x_pos" , 40 , float ))
2922- self .ypos = int (self .prefs .getpref ("y_pos" , 30 , float ))
2923- self .width = int (self .prefs .getpref ("width" , 979 , float ))
2924- self .height = int (self .prefs .getpref ("height" , 750 , float ))
2925- # set the adjustments according to Window position and size
2926- self .widgets .adj_x_pos .set_value (self .xpos )
2927- self .widgets .adj_y_pos .set_value (self .ypos )
2928- self .widgets .adj_width .set_value (self .width )
2929- self .widgets .adj_height .set_value (self .height )
29302930 # move and resize the window
29312931 self .widgets .window1 .move (self .xpos , self .ypos )
29322932 self .widgets .window1 .resize (self .width , self .height )
0 commit comments