def _upload_completed(self, sample=None):
"""Stop the timer and hide self when the upload is complete."""
logging.info("Upload complete for sample {}".format(self._sample.get_id()))
pub.unsubscribe(self._upload_completed, self._sample.upload_completed_topic)
pub.unsubscribe(self._upload_progress, self._sample.upload_progress_topic)
self._upload_terminated(label=u"?", colour=wx.Colour(51, 204, 51),
tooltip="{} is completed uploading.".format(self._sample.get_id()))
评论列表
文章目录