code
stringlengths
3
6.57k
TextBox(self, label="Input file")
wx.Button(self, id=wx.ID_ANY, label="Run")
button_run.Bind(wx.EVT_BUTTON, self.on_button_run)
self.column_center.Add(self.hbox_filein.hbox, 0, wx.EXPAND|wx.ALL, 5)
self.column_center.Add(button_run, 0, wx.ALL, 5)
on_button_run(self, event)
self.hbox_filein.get_file_name()
self.log_to_window(msg, level="ERROR")
ErrorDialog(frame, msg=msg)
error_dialog.Show()
os.path.basename(fname_input)
base_name.split(os.extsep, 1)
format(fname, fext)
format(fname_input, fname_out)
self.call_sct_command(cmd_line)
Image(fname_out)
overlayList.append(image)
displayCtx.getOpts(image)
TabPanelVertLB(SCTPanel)
__init__(self, parent)
super(TabPanelVertLB, self)
__init__(parent=parent, id_=wx.ID_ANY)
TextBox(self, label="Input image")
TextBox(self, label="Input segmentation")
wx.Button(self, id=wx.ID_ANY, label="Run")
button_run.Bind(wx.EVT_BUTTON, self.on_button_run)
self.column_center.Add(self.hbox_im.hbox, 0, wx.EXPAND|wx.ALL, 5)
self.column_center.Add(self.hbox_seg.hbox, 0, wx.EXPAND|wx.ALL, 5)
self.column_center.Add(self.rbox_contrast, 0, wx.ALL, 5)
self.column_center.Add(button_run, 0, wx.ALL, 5)
on_button_run(self, event)
self.hbox_im.textctrl.GetValue()
self.hbox_seg.textctrl.GetValue()
self.hbox_im.get_file_name()
self.log_to_window(msg, level="ERROR")
ErrorDialog(frame, msg=msg)
error_dialog.Show()
self.hbox_seg.get_file_name()
self.log_to_window(msg, level="ERROR")
ErrorDialog(frame, msg=msg)
error_dialog.Show()
self.rbox_contrast.GetStringSelection()
os.path.basename(fname_seg)
base_name.split(os.extsep, 1)
format(fname, fext)
format(fname_im, fname_seg, contrast)
self.call_sct_command(cmd_line)
Image(fname_out)
overlayList.append(image)
displayCtx.getOpts(image)
TabPanelRegisterToTemplate(SCTPanel)
label(s)
__init__(self, parent)
super(TabPanelRegisterToTemplate, self)
__init__(parent=parent, id_=wx.ID_ANY)
TextBox(self, label="Input image")
TextBox(self, label="Input segmentation")
TextBox(self, label="Input labels")
wx.Button(self, id=wx.ID_ANY, label="Run")
button_run.Bind(wx.EVT_BUTTON, self.on_button_run)
self.column_center.Add(self.hbox_im.hbox, 0, wx.EXPAND|wx.ALL, 5)
self.column_center.Add(self.hbox_seg.hbox, 0, wx.EXPAND|wx.ALL, 5)
self.column_center.Add(self.hbox_label.hbox, 0, wx.EXPAND|wx.ALL, 5)
self.column_center.Add(self.rbox_contrast, 0, wx.ALL, 5)
self.column_center.Add(button_run, 0, wx.ALL, 5)
on_button_run(self, event)
self.hbox_im.textctrl.GetValue()
self.hbox_seg.textctrl.GetValue()
self.hbox_label.textctrl.GetValue()
self.hbox_im.textctrl.GetValue()
self.hbox_seg.textctrl.GetValue()
self.hbox_im.get_file_name()
self.log_to_window(msg, level="ERROR")
ErrorDialog(frame, msg=msg)
error_dialog.Show()
self.hbox_seg.get_file_name()
self.log_to_window(msg, level="ERROR")
ErrorDialog(frame, msg=msg)
error_dialog.Show()
self.hbox_label.get_file_name()
self.log_to_window(msg, level="ERROR")
ErrorDialog(frame, msg=msg)
error_dialog.Show()
self.rbox_contrast.GetStringSelection()
format(fname_im, fname_seg, fname_label, contrast)
self.call_sct_command(cmd_line)
os.path.basename(fname_im)
base_name.split(os.extsep, 1)
format(contrast, fext)
Image(fname_out)
overlayList.append(image)
displayCtx.getOpts(image)
run_main()
aui_manager.GetManagedWindow()
wx.MessageDialog(window, 'Spinal Cord Toolbox (SCT)
Terminal (not by clicking on the App)
dlg.ShowModal()
dlg.Destroy()
aui.AuiNotebook(parent=window)
TabPanelPropSeg(parent=notebook)