@@ -42,7 +42,7 @@ def __init__(self):
42
42
self .click_value_3rd = ''
43
43
self .click_value_VPN = ''
44
44
self .root = TkinterDnD .Tk ()
45
- self .root .title ("Network Sketcher ver 2.5.1b " )
45
+ self .root .title ("Network Sketcher ver 2.5.1c " )
46
46
self .root .geometry ("510x200+100+100" )
47
47
icon = tk .PhotoImage (file = 'ns_logo.png' )
48
48
self .root .iconphoto (True , icon )
@@ -383,6 +383,11 @@ def click_action_sub1_1(self, click_value,push_array):
383
383
self .inFileTxt_92_2_2 .delete (0 , tkinter .END )
384
384
self .inFileTxt_92_2_2 .insert (tk .END , iDir + ns_def .return_os_slash () + basename_without_ext + '_backup' + '.xlsx' )
385
385
386
+ # backup attribute meta. Add at ver 2.5.1c
387
+ self .attribute_array = ns_def .convert_master_to_array ('Master_Data' , full_filepath_master , '<<ATTRIBUTE>>' )
388
+ print (self .attribute_array )
389
+ self .attribute_tuple = ns_def .convert_array_to_tuple (self .attribute_array )
390
+
386
391
###check Master file open
387
392
ns_def .check_file_open (full_filepath_master )
388
393
@@ -402,6 +407,13 @@ def click_action_sub1_1(self, click_value,push_array):
402
407
self .click_value_2nd = ''
403
408
self .click_value_3rd = ''
404
409
410
+ #restore attribute meta. Add at ver 2.5.1c
411
+ offset_row = 0
412
+ offset_column = 0
413
+ worksheet_name = 'Master_Data'
414
+ section_write_to = '<<ATTRIBUTE>>'
415
+ ns_def .overwrite_excel_meta (self .attribute_tuple , full_filepath_master , worksheet_name , section_write_to , offset_row , offset_column )
416
+
405
417
# remove exist L3/ file
406
418
if os .path .isfile (self .outFileTxt_11_2 .get ().replace ('[MASTER]' , '' )) == True :
407
419
os .remove (self .outFileTxt_11_2 .get ().replace ('[MASTER]' , '' ))
0 commit comments