@@ -41,7 +41,7 @@ def __init__(self):
41
41
self .click_value_3rd = ''
42
42
self .click_value_VPN = ''
43
43
self .root = TkinterDnD .Tk ()
44
- self .root .title ("Network Sketcher ver 2.3.3(b) " )
44
+ self .root .title ("Network Sketcher ver 2.3.4 " )
45
45
self .root .geometry ("490x200+100+100" )
46
46
47
47
# Notebook
@@ -680,26 +680,22 @@ def sub_master_extention_2(self):
680
680
self .sub3_5 .geometry (geo )
681
681
682
682
self .sub3_5_0 = tk .Label (self .sub3_5 , text = local_filename , font = ("" , 12 ), background = "#FFFFFF" )
683
- self .sub3_5_0 .grid (row = 0 , column = 0 , columnspan = 7 , sticky = 'W' , padx = 5 , pady = 5 , ipadx = 30 , ipady = 5 )
683
+ self .sub3_5_0 .grid (row = 0 , column = 0 , columnspan = 7 , sticky = 'W' , padx = 5 , pady = 5 , ipadx = 30 , ipady = 15 )
684
684
685
685
# IP Address report
686
- self .sub3_5_1 = tk .LabelFrame (self .sub3_5 , text = 'IP Address report ' , font = ("" , 14 ), height = 1 , background = "#C2E2EC" )
686
+ self .sub3_5_1 = tk .LabelFrame (self .sub3_5 , text = 'Export ' , font = ("" , 14 ), height = 1 , background = "#C2E2EC" )
687
687
self .sub3_5_1 .grid (row = 1 , column = 0 , columnspan = 5 , sticky = 'W' , padx = 5 , pady = 0 , ipadx = 3 , ipady = 0 )
688
688
689
- # Export to the list file
690
- self .sub3_5_button_1 = tk .Button (self .sub3_5_1 , text = " Export to the table file " , font = ("" , 12 ), command = lambda : self .click_action_sub ('self.sub3_5_button_1' ,'dummy' ))
691
- self .sub3_5_button_1 .grid (row = 6 , column = 0 , sticky = 'W' , padx = 30 , pady = 10 )
692
-
693
- self .sub3_4_3_entry_1 = tk .Entry (self .sub3_5_1 , font = ("" , 12 )) # for report
694
-
689
+ # Export to the IP Address table
690
+ self .sub3_5_button_1 = tk .Button (self .sub3_5_1 , text = " IP Address table " , font = ("" , 12 ), command = lambda : self .click_action_sub ('self.sub3_5_button_1' ,'dummy' ))
691
+ self .sub3_5_button_1 .grid (row = 6 , column = 0 , sticky = 'W' , padx = 20 , pady = 5 )
695
692
696
693
def click_action_sub (self , click_value , target_area_name ):
697
- if click_value == 'self.sub3_5_button_1' : # select Run
694
+ if click_value == 'self.sub3_5_button_1' : # select IP address table
698
695
###export_ip_report
699
696
ns_extensions .ip_report .export_ip_report (self , target_area_name )
700
697
ns_def .messagebox_file_open (str (self .outFileTxt_11_3 .get ()))
701
698
702
-
703
699
if click_value == 'self.sub3_4_button_1' : # select Run
704
700
#change target area name to N/A
705
701
if target_area_name == '_WAN(Way_Point)_' :
@@ -736,7 +732,7 @@ def click_action_sub(self, click_value, target_area_name):
736
732
ns_def .messagebox_file_open (str (self .outFileTxt_11_2 .get ()).replace ('[MASTER]' ,'' ))
737
733
738
734
if click_value == 'self.self.sub2_6_button_1' : # Click "VPNs on L1"
739
- print ('--- Click "VPNs on L1" ---' )
735
+ # print('--- Click "VPNs on L1" ---')
740
736
### create L1 Table with [VPNs_on_L1]]
741
737
self .click_value = 'VPN-1-1'
742
738
network_sketcher_dev .ns_front_run .click_action (self , '2-4-3' )
@@ -747,7 +743,7 @@ def click_action_sub(self, click_value, target_area_name):
747
743
ns_def .messagebox_file_open (self .output_ppt_file ) #Add at Ver 2.3.1(a)
748
744
749
745
if click_value == 'self.self.sub2_6_button_2' : # Click "VPNs on L3"
750
- print ('--- Click VPNs on L3 ---' )
746
+ # print('--- Click VPNs on L3 ---')
751
747
self .click_value = 'L3-4-1'
752
748
self .click_value_VPN = 'VPN-1-3'
753
749
@@ -838,7 +834,7 @@ def click_action_sub3_1(self, click_value,push_array):
838
834
self .sub3_1_label_4 = tk .Label (self .sub3_1 , textvariable = self .text_sub3_1 , font = ("" , 10 ), background = "#E5F4F7" )
839
835
self .sub3_1_label_4 .grid (row = 2 , column = 1 , columnspan = 3 , sticky = 'W' , padx = 5 , pady = 20 )
840
836
#ns_front_run.sub_excel_master_1(self, file_type_array)
841
- print ('Update to the Master file' )
837
+ print ('--- Update to the Master file --- ' )
842
838
843
839
### pre-defined for dev parameter
844
840
self .inFileTxt_11_1 = tk .Entry (self .sub3_1 )
@@ -946,7 +942,7 @@ def click_action_sub3_1(self, click_value,push_array):
946
942
self .click_action_sub ('self.self.sub2_5_button_3' , push_array )
947
943
self .click_value_2nd = ''
948
944
if ns_def .return_os_slash () == '\\ \\ ' : # add ver 2.1.1 for bug fix on Mac OS
949
- print (' # add ver 2.1.1 for bug fix on Mac OS' , ns_def .return_os_slash ())
945
+ # print(' # add ver 2.1.1 for bug fix on Mac OS', ns_def.return_os_slash())
950
946
subprocess .Popen (full_filepath_device , shell = True )
951
947
952
948
### open master panel
0 commit comments