def _sample_sheet_error(self, sample_sheet=None, error=None):
"""Show the invalid sample sheets panel whenever a sample sheet error
is raised.
Args:
sample_sheet: the sample sheet that's got the error
error: the validation error
"""
if not self._invalid_sheets_panel.IsShown():
self.Freeze()
# clear out the other panels that might already be added
self._sizer.Clear(deleteWindows=True)
# add the sheets panel to the sizer and show it
self._sizer.Add(self._invalid_sheets_panel, flag=wx.EXPAND, proportion=1)
self._invalid_sheets_panel.Show()
self.Layout()
self.Thaw()
评论列表
文章目录