def _upload_started(self):
"""Update the display when the upload is started.
This method will add the progress bar to the display when the upload
started topic is recieved.
"""
logging.info("Upload started for sample {}".format(self._sample.get_id()))
pub.unsubscribe(self._upload_started, self._sample.upload_started_topic)
self.Freeze()
self._status_label.Destroy()
self._progress = wx.Gauge(self, range=100, size=(100, 20))
self._sizer.Add(self._progress)
self.Layout()
self.Thaw()
self._timer.Start(1000)
评论列表
文章目录