@@ -46,6 +46,7 @@ def select_output_folder(self):
4646 self .output_folder_widget = fileselector .FileSelectorPanel (instruction = 'select where to create the ' + \
4747 'combined image ...' ,
4848 start_dir = self .working_dir ,
49+ newdir_toolbar_button = True ,
4950 type = 'directory' )
5051
5152 self .output_folder_widget .show ()
@@ -70,11 +71,24 @@ def define_output_filename(self):
7071 merging_algo = self .__get_formated_merging_algo_name ()
7172 [default_new_name , ext ] = self .__create_merged_file_name (list_files_names = short_list_files )
7273
73- top_label = widgets .Label ("You have the option to change the default output file name" )
74+ display (widgets .HTML (value = "<hr>" ))
75+
76+ top_label = widgets .Label ("Define the new output file name" ,
77+ layout = widgets .Layout (width = '100%' ))
7478
75- box = widgets .HBox ([widgets .Label ("Default File Name" ,
79+ folder_name = os .path .dirname (list_files [0 ])
80+
81+ box1 = widgets .HBox ([widgets .Label ("Original folder name" ,
82+ layout = widgets .Layout (width = '20%' )),
83+ widgets .Label (f"{ folder_name } " ,
84+ layout = widgets .Layout (width = '80%' )),
85+ ])
86+ display (box1 )
87+
88+ box = widgets .HBox ([widgets .Label ("File Name" ,
7689 layout = widgets .Layout (width = '20%' )),
77- widgets .Text (default_new_name ,
90+ widgets .Text ("" ,
91+ placeholder = "Your file name here" ,
7892 layout = widgets .Layout (width = '60%' )),
7993 widgets .Label ("_{}{}" .format (merging_algo , ext ),
8094 layout = widgets .Layout (width = '20%' )),
0 commit comments