def __init__(self, parent=None, default_post_process=""):
wx.Panel.__init__(self, parent)
self._sizer = wx.BoxSizer(wx.HORIZONTAL)
task_label = wx.StaticText(self, label="Task to run on successful upload")
task_label.SetToolTipString("Post-processing job to run after a run has been successfully uploaded to IRIDA.")
self._sizer.Add(task_label, flag=wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, border=5, proportion=0)
task = wx.TextCtrl(self)
task.Bind(wx.EVT_KILL_FOCUS, lambda evt: send_message(SettingsDialog.field_changed_topic, field_name="completion_cmd", field_value=task.GetValue()))
task.SetValue(default_post_process)
self._sizer.Add(task, flag=wx.EXPAND, proportion=1)
self.SetSizerAndFit(self._sizer)
self.Layout()
评论列表
文章目录