Skip to content

Commit

Permalink
Ver2.3.3
Browse files Browse the repository at this point in the history
Ver2.3.3
  • Loading branch information
yuhsukeogawa authored Dec 10, 2024
1 parent 60f4148 commit 6ab8124
Show file tree
Hide file tree
Showing 5 changed files with 422 additions and 26 deletions.
3 changes: 1 addition & 2 deletions network_sketcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self):
self.click_value_3rd = ''
self.click_value_VPN = ''
self.root = TkinterDnD.Tk()
self.root.title("Network Sketcher ver 2.3.2(b)")
self.root.title("Network Sketcher ver 2.3.3")
self.root.geometry("490x200+100+100")

# Notebook
Expand Down Expand Up @@ -219,7 +219,6 @@ def sub_ppt_sketch_1(self,file_type_array):
self.sub1_3.drop_target_register(DND_FILES)
self.sub1_3.dnd_bind("<<Drop>>", self.drop_sub1_3 ,self.entry_name_sub1_3)


def drop_sub1_3(self, event):
if event:
event.data = event.data.replace('{', '').replace('}', '')
Expand Down
7 changes: 7 additions & 0 deletions network_sketcher_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ def __init__(self):

def click_action(self,click_value):
self.click_value_l3 = ''

if click_value == '1-1': # select browse
fTyp = [("", ".pptx")]
iDir = os.path.abspath(os.path.dirname(sys.argv[0]))
Expand Down Expand Up @@ -1209,6 +1210,8 @@ def click_action(self,click_value):

if click_value == 'L3-4-1': # For All Areas L3 Diagram at ver 2.3.0
import ns_l3_diagram_create
self.add_shape_array = [] # add parameter at Ver 2.3.3
self.add_shape_write_array = [] # add parameter at Ver 2.3.3

full_filepath = self.inFileTxt_L3_3_1.get()
iDir = os.path.dirname(full_filepath)
Expand Down Expand Up @@ -1250,7 +1253,11 @@ def click_action(self,click_value):
self.click_value = 'L3-3-2'
self.click_value_l3 = 'L3-4-1'
self.global_wp_array = []
self.update_start_area_array = []

self.flag_second_page = False
ns_l3_diagram_create.ns_l3_diagram_create.__init__(self)
self.flag_second_page = True
ns_l3_diagram_create.ns_l3_diagram_create.__init__(self)

# remove exist L3 file and backup xlsx file
Expand Down
6 changes: 4 additions & 2 deletions ns_ddx_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2678,8 +2678,10 @@ def __init__(self):
print('ns_ddx_figure_extended()')

def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,shape_text):
'''Default Parameter'''

self.add_shape_write_array.append([shape_type,shape_left, shape_top, shape_width, shape_hight,shape_text])

'''Default Parameter'''
self.shape = self.shape.add_shape(MSO_SHAPE.ROUNDED_RECTANGLE, Inches(shape_left), Inches(shape_top), Inches(shape_width), Inches(shape_hight))

# fill parameter
Expand Down Expand Up @@ -2724,7 +2726,7 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
# line paramter
shape_line.width = Pt(1.0)
shape_line.color.rgb = RGBColor(205, 205, 205)
self.shape.adjustments[0] = float(0.025) # curve of ROUNDED_RECTANGLE 0.0~1.0
self.shape.adjustments[0] = float(0.015) # curve of ROUNDED_RECTANGLE 0.0~1.0
# text parameter
#self.shape.text_frame.paragraphs[0].alignment = PP_ALIGN.RIGHT
self.shape.text_frame.paragraphs[0].font.size = Pt(self.folder_font_size )
Expand Down
6 changes: 3 additions & 3 deletions ns_def.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ def clear_tag_in_position_line(tmp_ws_name, ppt_meta_file, clear_section_taple):

return ('clear_tag_in_position_line')


#get shape name in the folder and sort by tuple type
def get_shape_folder_tuple(position_shape_tuple):
return_tuple = {}
current_folder_name = ''
Expand Down Expand Up @@ -1168,7 +1168,7 @@ def get_ipv4_value(ipv4_address):

class get_l2_broadcast_domains():
def run(self,excel_maseter_file):
print('--- get_l2_broadcast_domains ---')
#print('--- get_l2_broadcast_domains ---')
'''
STEP0 get values of Master Data
'''
Expand Down Expand Up @@ -1528,7 +1528,7 @@ def run(self,excel_maseter_file):

marged_l2_broadcast_group_array.append(tmp_marged_l2_broadcast_group_array)

print('--- marged_l2_broadcast_group_array ---')
#print('--- marged_l2_broadcast_group_array ---')
#print(get_l2_broadcast_domains.get_unique_list(marged_l2_broadcast_group_array))
marged_l2_broadcast_group_array = get_l2_broadcast_domains.get_unique_list(marged_l2_broadcast_group_array)

Expand Down
Loading

0 comments on commit 6ab8124

Please sign in to comment.