Beispiel #1
0
 def build_widgets(self):
     d = {'typename': 'FileEditField', 'name': 'MRIScansTxt', 'value': ''}
     self.fmriscanstxt = field.create(d)
     d = {
         'typename':
         'ComboboxField',
         'name':
         'ModalFile',
         'value':
         'T1.nii.gz',
         'values': [
             'T1.nii.gz', 'T2.nii.gz', 'BOLD.nii.gz', 'pBOLD.nii.gz',
             'DWI.nii.gz', 'DWI.bval', 'DWI.bvec'
         ]
     }
     self.fmodal = field.create(d)
     d = {'typename': 'FolderField', 'name': 'OutMainFolder', 'value': '.'}
     self.foutfolder = field.create(d)
     wmriscanstxt = self.fmriscanstxt.build_widget(self.mainframe)
     wmodal = self.fmodal.build_widget(self.mainframe)
     woutfolder = self.foutfolder.build_widget(self.mainframe)
     wrun = tktools.button(self.mainframe, 'Run', self.cb_run)
     wrun_NAS = tktools.button(self.mainframe, 'Copy', self.cb_copy)
     wmriscanstxt.pack()
     wmodal.pack()
     woutfolder.pack()
     wrun.pack()
     wrun_NAS.pack()
Beispiel #2
0
	def build_widgets(self):
		d = {'typename': 'FileEditField', 'name': 'JobConfig', 'value': ''}
		self.fjob = field.create(d)
		d = {'typename': 'FolderField', 'name': 'Folder', 'value': '.'}
		self.ffolder = field.create(d)
		wjob = self.fjob.build_widget(self.mainframe)
		wfolder = self.ffolder.build_widget(self.mainframe)
		wrun = tktools.button(self.mainframe, 'Run', self.cb_runjob)
		wjob.pack()
		wfolder.pack()
		wrun.pack()
Beispiel #3
0
 def build_widgets(self):
     d = {'typename': 'FileEditField', 'name': 'ParaConfig', 'value': ''}
     self.fpara = field.create(d)
     d = {'typename': 'StringField', 'name': 'ProjectPathVar', 'value': '.'}
     self.fpath = field.create(d)
     wpara = self.fpara.build_widget(self.mainframe)
     wpath = self.fpath.build_widget(self.mainframe)
     wrun = tktools.button(self.mainframe, 'Run', self.cb_run)
     wpara.pack()
     wpath.pack()
     wrun.pack()
Beispiel #4
0
 def build_widgets(self):
     d = {'typename': 'FileEditField', 'name': 'MRIScansTxt', 'value': ''}
     self.fmriscanstxt = field.create(d)
     d = {'typename': 'BoolField', 'name': 'ConvertDicom', 'value': True}
     self.fconvertdicom = field.create(d)
     wmriscanstxt = self.fmriscanstxt.build_widget(self.mainframe)
     wconvertdicom = self.fconvertdicom.build_widget(self.mainframe)
     wrun = tktools.button(self.mainframe, 'Run', self.cb_run)
     wmriscanstxt.pack()
     wconvertdicom.pack()
     wrun.pack()
Beispiel #5
0
def import_(d):
    return field.create(d)