def _add_run(self, run):
"""Update the display to add a new `RunPanel`.
When the `DirectoryScannerTopics.run_discovered` topic is received, add
the run to the display.
Args:
run: the run to add to the display.
"""
logging.info("Adding run [{}]".format(run.sample_sheet_dir))
self._discovered_runs.append(run)
run_panel = RunPanel(self, run, self._api)
pub.subscribe(self._upload_failed, run.upload_failed_topic)
self.Freeze()
self._run_sizer.Add(run_panel, flag=wx.EXPAND, proportion=1)
self.Layout()
self.Thaw()
评论列表
文章目录