running_job.py 文件源码

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

项目:apart-gtk 作者: alexheretic 项目源码 文件源码
def add_to_grid(self, grid: Gtk.Grid):
        if self.tenant:
            raise Exception('Already added to a grid')

        tenant = self.tenant = GridRowTenant(grid)
        tenant_top = 0
        if tenant.base_row > 0:
            tenant.attach(Gtk.Separator(visible=True), width=RUNNING_JOB_COLUMNS)
            tenant_top += 1

        tenant.attach(self.title_box, top=tenant_top)
        tenant.attach(self.cancel_btn, left=1, top=tenant_top)
        tenant.attach(self.progress_bar, top=tenant_top + 1, width=RUNNING_JOB_COLUMNS)
        tenant.attach(self.stats, top=tenant_top + 2, width=RUNNING_JOB_COLUMNS)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号