Skip to content

Commit

Permalink
minor gui updates for easier sample reading
Browse files Browse the repository at this point in the history
  • Loading branch information
RJbalikian committed Jan 16, 2024
1 parent 0715370 commit 508dc37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sprit/sprit_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,9 @@ def filepath_update():
update_input_params_call()

self.data_path = tk.StringVar()
self.data_path.trace('w', on_data_path_change)
self.data_path.set('sample')
self.fpath = self.data_path.get()
self.data_path.trace_add('write', on_data_path_change)
self.data_filepath_entry = ttk.Entry(hvsrFrame, textvariable=self.data_path, validate='focusout', validatecommand=filepath_update)
self.data_filepath_entry.grid(row=1, column=1, columnspan=6, sticky='ew', padx=5, pady=(5,2.55))

Expand Down Expand Up @@ -827,6 +829,7 @@ def browse_data_filepath():
# Metadata Filepath
ttk.Label(hvsrFrame, text="Metadata Filepath").grid(row=2, column=0, sticky='e', padx=5, pady=(2.5,5))
self.meta_path = tk.StringVar()
self.meta_path.set('')
self.metadata_filepath_entry = ttk.Entry(hvsrFrame, textvariable=self.meta_path, validate='focusout', validatecommand=update_input_params_call)
self.metadata_filepath_entry.grid(row=2, column=1, columnspan=6, sticky='ew', padx=5, pady=(2.5,5))

Expand Down

0 comments on commit 508dc37

Please sign in to comment.