benchmark.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:epoptes 作者: Epoptes 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号