def on_btn_startBenchmark_clicked(self, widget):
seconds = int(self.get('seconds_adjustment').get_value())
# Half time for upload speed and half for download
self.start_benchmark(seconds/2)
self.timeleft = seconds
self.get('seconds_spinbox').set_sensitive(False)
self.get('hbox_buttons').set_visible(False)
self.get('time_left_label').set_text(_("Benchmark finishing in %d seconds...") % self.timeleft)
self.countdown_event = gobject.timeout_add(1000, self.update_time_left)
self.get('hbox_status').set_visible(True)
评论列表
文章目录