Skip to content

Commit 9fe64ac

Browse files
committed
Removed double GUI code
1 parent 6c2fb3c commit 9fe64ac

1 file changed

Lines changed: 0 additions & 45 deletions

File tree

erdetect/_erdetect.py

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -684,48 +684,3 @@ def process_subset(bids_subset_data_path, output_dir, preproc_prioritize_speed=F
684684

685685
def log_indented_line(caption, text):
686686
logging.info(caption.ljust(LOGGING_CAPTION_INDENT_LENGTH, ' ') + text)
687-
688-
def open_gui():
689-
"""
690-
691-
"""
692-
693-
# Python might not be configured for tk, so by importing it only here, the
694-
# rest (functions and command-line wrapper) can run without trouble
695-
import tkinter as tk
696-
from tkinter import filedialog
697-
698-
# defaults
699-
window_height = 500
700-
window_width = 640
701-
702-
703-
# open window
704-
win = tk.Tk()
705-
win.title('Evoked Response detection')
706-
win.geometry("{}x{}+{}+{}".format(window_width, window_height,
707-
int((win.winfo_screenwidth() / 2) - (window_width / 2)),
708-
int((win.winfo_screenheight() / 2) - (window_height / 2))))
709-
win.resizable(False, False)
710-
711-
# window variables
712-
input_browse = tk.StringVar()
713-
714-
# callbacks
715-
def input_browse_callback():
716-
folder_selected = filedialog.askdirectory(title='Open BIDS root directory', initialdir='~')
717-
if folder_selected is not None and folder_selected != '':
718-
input_browse.set(folder_selected)
719-
720-
# elements
721-
lbl_input_browse = tk.Label(win, text="BIDS input directory:")
722-
lbl_input_browse.place(x=20, y=15)
723-
txt_input_browse = tk.Entry(win, textvariable=input_browse, width=60)
724-
txt_input_browse.place(x=20, y=40)
725-
btn_input_browse = tk.Button(win, text="Browse", command=input_browse_callback)
726-
btn_input_browse.place(x=20, y=70)
727-
728-
729-
# open window
730-
win.mainloop()
731-
exit()

0 commit comments

Comments
 (0)