I have searched the whole internet for this, but found nothing helpful. I am beginning to think that this is impossible to do, but someone must have had a requirement of this type.
My app:
Why I need this functionality:
I have researched all the options/functions available but couldn't find one that will do this only for a specific cell from a specific row.
The only functions I have found are that come close to what I need (but are still unusable) are:
Gtk.CellRenderer.set_visible(CellRendererProgress, False) - but this makes the whole cellrenderer invisible;
Gtk.TreeViewColumn.set_visible(False) - makes the whole column invisible;
setting "None" as value for column "Progress" will still display an empty progress bar, anything else will raise an error.
I have thought of how I could accomplish this by bypassing this impossibility, but I couldn't find an answer. I am out of ideas.
You should make a hidden column in the tree store telling whether to show the progress bar in each row or not. Then bind that column to the visibility of the cell renderer, something like this:
progress_bar_tree_view_column.add_attribute(progress_bar_renderer, 'visible',
NUMBER_OF_MY_HIDDEN_COLUMN)