def set_model(self, model):
# the set_cell_data_func() calls here are a workaround for bug
# LP: #986186 - once that is fixed upstream we can revert this
# and remove the entire "set_model" again
self._column.set_cell_data_func(self._renderer, None)
Gtk.TreeView.set_model(self, model)
self._column.set_cell_data_func(
self._renderer, self._cell_data_func_cb)
评论列表
文章目录