def _upload_terminated(self, label, colour, tooltip):
"""Stop the timer and hide self when the upload is has terminated."""
self._timer.Stop()
self.Freeze()
status_label = wx.StaticText(self, label=label)
status_label.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD))
status_label.SetForegroundColour(colour)
status_label.SetToolTipString(tooltip)
self._sizer.Add(status_label, flag=wx.EXPAND | wx.RIGHT, border=5)
if self._progress is not None:
self._progress.Destroy()
self.Layout()
self.Thaw()
评论列表
文章目录