def add_to_grid(self, grid: Gtk.Grid):
if self.tenant:
raise Exception('Already added to a grid')
tenant = self.tenant = GridRowTenant(grid)
base = 0
if tenant.base_row > 0:
tenant.attach(Gtk.Separator(visible=True, hexpand=True), width=FINISHED_JOB_COLUMNS)
base += 1
tenant.attach(self.title_box, top=base)
tenant.attach(self.finish_box, top=base, left=1)
tenant.attach(self.buttons, top=base, left=2)
tenant.attach(self.extra, top=base+1, width=FINISHED_JOB_COLUMNS)
grid.get_toplevel().register_interest_in_sources(on_update_callback=self.on_source_update)
评论列表
文章目录