-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOPETIA.py
41 lines (32 loc) · 1.32 KB
/
OPETIA.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from tkinter import *
from tkinter import ttk, filedialog, messagebox
import os
import myfunctions
import webbrowser
import time
import threading
import subprocess
root = Tk()
root.geometry("245x445+500+250")
root.resizable(False, False)
root.title("OPETIA")
# ___Commands
def btn_mricrogl_command():
subprocess.run(['./MRIcroGL/MRIcroGL'], shell = True, check = True)
def btn_nifti_organizer_command():
os.system('python3.8 NIFTI_organizer.py')
def btn_stage1_command():
os.system('python3.8 structural_process.py')
def btn_stage2_command():
os.system('python3.8 pet_process.py')
def btn_stage3_command():
os.system('python3.8 ROI_analysis.py')
# ___GUI
frame1 = Frame(root, relief=SUNKEN, bd=2)
frame1.place(x=5, y=5, width=235, height=435)
Button(frame1, text='MRIcroGL', command=btn_mricrogl_command).place(x=5, y=5, width=220, height=80)
Button(frame1, text='NIFTI organizer', command=btn_nifti_organizer_command).place(x=5, y=90, width=220, height=80)
Button(frame1, text='Structural image pre-processing', command=btn_stage1_command).place(x=5, y=175, width=220, height=80)
Button(frame1, text='PET image pre-processing', command=btn_stage2_command).place(x=5, y=260, width=220, height=80)
Button(frame1, text='ROI analysis', command=btn_stage3_command).place(x=5, y=345, width=220, height=80)
root.mainloop()