def gui_add_task(self, task):
label = gtk.Label(task.name)
label.set_alignment(0.0, 0.0)
row = self.task_count + 1
col = 0
# col_left_attach, col_right_attach, row_top_attach, row_bottom_attach
self.tbl_tasks.attach(label, col, col + 1, row, row + 1)
label.show()
col = 1
image = gtk.Image()
image.set_from_stock(gtk.STOCK_APPLY, gtk.ICON_SIZE_MENU)
image.set_alignment(0.0, 0.0)
self.tbl_tasks.attach(image, col, col + 1, row, row + 1)
self.task_images.append(image)
self.task_count += 1
评论列表
文章目录