Skip to content

Commit 7dabe65

Browse files
authored
Ver 2.3.4
Ver 2.3.4
1 parent 5a0dd15 commit 7dabe65

File tree

4 files changed

+9
-23
lines changed

4 files changed

+9
-23
lines changed

network_sketcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def click_action_sub(self, click_value, target_area_name):
732732
ns_def.messagebox_file_open(str(self.outFileTxt_11_2.get()).replace('[MASTER]',''))
733733

734734
if click_value == 'self.self.sub2_6_button_1': # Click "VPNs on L1"
735-
print('--- Click "VPNs on L1" ---')
735+
#print('--- Click "VPNs on L1" ---')
736736
### create L1 Table with [VPNs_on_L1]]
737737
self.click_value = 'VPN-1-1'
738738
network_sketcher_dev.ns_front_run.click_action(self, '2-4-3')

network_sketcher_dev.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,8 +1025,6 @@ def click_action(self,click_value):
10251025
ns_l2_table_from_master.ns_l2_table_from_master_l2_sheet.__init__(self)
10261026

10271027
input_excel_master_data.close()
1028-
# view complete
1029-
#tkinter.messagebox.showinfo('info', 'successfully completed')
10301028

10311029
if click_value == 'L2-2-1': # select browse
10321030
fTyp = [("", ".xlsx")]
@@ -1062,9 +1060,6 @@ def click_action(self,click_value):
10621060
import ns_l2_table_sync_master
10631061
ns_l2_table_sync_master.ns_l2_table_sync_master.__init__(self)
10641062

1065-
# view complete
1066-
#tkinter.messagebox.showinfo('info', 'successfully completed')
1067-
10681063
if click_value == 'L2-3-1': # select browse
10691064
fTyp = [("", ".xlsx")]
10701065
iDir = os.path.abspath(os.path.dirname(sys.argv[0]))
@@ -1112,7 +1107,6 @@ def click_action(self,click_value):
11121107
# view complete
11131108
ns_def.messagebox_file_open(self.output_ppt_file)
11141109

1115-
11161110
if click_value == 'L3-1-1': # select browse
11171111
fTyp = [("", ".xlsx")]
11181112
iDir = os.path.abspath(os.path.dirname(sys.argv[0]))
@@ -1169,9 +1163,6 @@ def click_action(self,click_value):
11691163
iDir = os.path.abspath(os.path.dirname(sys.argv[0]))
11701164
self.inFileTxt_L3_2_2_backup= iDir + ns_def.return_os_slash() + os.path.splitext(os.path.basename(self.inFileTxt_L3_2_2.get()))[0] + '_backup' + '.xlsx'
11711165

1172-
# check : file is being opened
1173-
'''if ns_def.check_file_open(self.inFileTxt_L3_2_2.get()) == True:
1174-
return ()'''
11751166
# confirm to exist device table and master data file
11761167
if os.path.isfile(self.inFileTxt_L3_2_1.get()) == False:
11771168
tkinter.messagebox.showerror('Error', 'Could not find the L3 Table file')
@@ -1194,11 +1185,6 @@ def click_action(self,click_value):
11941185
self.inFileTxt_L3_3_1.insert(tk.END, full_filepath)
11951186

11961187
if click_value == 'L3-3-2' or click_value == 'L3-3-3': # select create from master
1197-
### TEST MODE ###
1198-
#self.inFileTxt_L3_3_1.delete(0, tkinter.END)
1199-
#self.inFileTxt_L3_3_1.insert(tk.END, 'C:/work/Network Sketcher/Network Skecher Ver2.0/[MASTER]Sample figure5.xlsx')
1200-
#################
1201-
12021188
full_filepath = self.inFileTxt_L3_3_1.get()
12031189
iDir = os.path.dirname(full_filepath)
12041190
basename_without_ext = os.path.splitext(os.path.basename(full_filepath))[0]

ns_l1_diagram_create.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,6 @@ def __init__(self):
239239
clear_section_tuple[1,1] = '<<POSITION_LINE>>'
240240
ns_def.clear_tag_in_position_line(tmp_ws_name, ppt_meta_file, clear_section_tuple)
241241

242-
# adjust for per slide size
243-
self.root_width = self.all_slide_max_width
244-
self.root_hight = self.all_slide_max_hight + 1.0 # top side margin + 1.0
245-
246242
### Create ppt
247243
#self.output_diagram_path = self.outFileTxt_2_1.get()
248244
self.excel_file_path = ppt_meta_file
@@ -256,6 +252,10 @@ def __init__(self):
256252
if self.all_slide_max_hight < master_root_folder_tuple[2,8] + 1.0: # top side margin + 1.0
257253
self.all_slide_max_hight = master_root_folder_tuple[2, 8] + 1.0 # top side margin + 1.0
258254

255+
# adjust for per slide size
256+
self.root_width = self.all_slide_max_width
257+
self.root_hight = self.all_slide_max_hight + 1.0 # top side margin + 1.0
258+
259259
ns_ddx_figure.ns_ddx_figure_run.__init__(self)
260260
#exit()
261261

ns_l3_diagram_create.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ def l3_area_create(self, target_folder_name, action_type,offset_x ,offset_y):
260260
if len(target_position_shape_array) == 1:
261261
target_position_shape_array.append(['_AIR_9999']) # add dummy shape to second row
262262

263-
264263
### get WP of <<POSITION_FOLDER>>in MASTER EXCEL
265264
wp_exist_array = [[], [], [], []] # up/down/left/right
266265
target_folder_row = 1
@@ -897,7 +896,7 @@ def process_elements(array):
897896
max_offset_x = now_offset_x
898897

899898
if check_move_to_right(self,top_device_name_array,target_position_shape_array) == True:
900-
left_offset = max_offset_x
899+
left_offset = max_offset_x + self.left_margin # add 1.0 at ver 2.3.4
901900
else:
902901
left_offset = start_l3_seg_inche_x - self.left_margin
903902

@@ -1979,8 +1978,10 @@ def __init__(self):
19791978
max_x_for_y[y] = x
19801979

19811980
# Add '<END>' to the new_tuple
1981+
all_max_y = 1
19821982
for y, max_x in max_x_for_y.items():
19831983
new_tuple[(y, max_x + 1)] = '<END>'
1984+
all_max_y = y
19841985

19851986
# Find the maximum x value for each y
19861987
max_x_per_y = {}
@@ -1998,7 +1999,7 @@ def __init__(self):
19981999

19992000
#last input
20002001
new_tuple[(1, 1)] = 'All Areas'
2001-
new_tuple[(master_y, 1)] = '<END>'
2002+
new_tuple[(all_max_y + 1, 1)] = '<END>' #change y axis at ver 2.3.4
20022003

20032004
# SET new <<POSITION_SHAPE>>
20042005
write_to_section = '<<POSITION_SHAPE>>'
@@ -2007,7 +2008,6 @@ def __init__(self):
20072008
ns_def.clear_section_sheet('Master_Data', self.excel_maseter_file_backup, self.position_shape_tuple)
20082009
ns_def.write_excel_meta(new_tuple, self.excel_maseter_file_backup, 'Master_Data',write_to_section, offset_row, offset_column)
20092010

2010-
20112011
def calculate_area_offset(self):
20122012
#print(self.add_shape_array)
20132013
''' get DEVICE_NORMAL'''

0 commit comments

Comments
 (0)