Skip to content

Commit 743b061

Browse files
authored
Ver2.5.1c
1 parent 18ca3f1 commit 743b061

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

network_sketcher.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self):
4242
self.click_value_3rd = ''
4343
self.click_value_VPN = ''
4444
self.root = TkinterDnD.Tk()
45-
self.root.title("Network Sketcher ver 2.5.1b")
45+
self.root.title("Network Sketcher ver 2.5.1c")
4646
self.root.geometry("510x200+100+100")
4747
icon = tk.PhotoImage(file='ns_logo.png')
4848
self.root.iconphoto(True, icon)
@@ -383,6 +383,11 @@ def click_action_sub1_1(self, click_value,push_array):
383383
self.inFileTxt_92_2_2.delete(0, tkinter.END)
384384
self.inFileTxt_92_2_2.insert(tk.END, iDir + ns_def.return_os_slash() + basename_without_ext + '_backup' + '.xlsx')
385385

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+
386391
###check Master file open
387392
ns_def.check_file_open(full_filepath_master)
388393

@@ -402,6 +407,13 @@ def click_action_sub1_1(self, click_value,push_array):
402407
self.click_value_2nd = ''
403408
self.click_value_3rd = ''
404409

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+
405417
# remove exist L3/ file
406418
if os.path.isfile(self.outFileTxt_11_2.get().replace('[MASTER]', '')) == True:
407419
os.remove(self.outFileTxt_11_2.get().replace('[MASTER]', ''))

0 commit comments

Comments
 (0)