python - Python3 Gtk3+: How to hide a cell of a row -


i have searched whole internet this, found nothing helpful. beginning think impossible do, must have had requirement of type.

my app:

  • i use treestore list parents (folders) , childs (files);
  • minimizing column list, have name, path (hidden column), size (relevant childs - easy masked parent since of type str()), progress bar (i want displayed - showed in treeview childs, not parents).

why need functionality:

  • i want application show progress bar each file treestore have defined;
  • being treestore, files have parent (folder);
  • i don't want display progress bar folder, since useless point of view , bad.

i have researched options/functions available couldn't find 1 specific cell specific row.

the functions have found come close need (but still unusable) are:

gtk.cellrenderer.set_visible(cellrendererprogress, false) - makes whole cellrenderer invisible;

gtk.treeviewcolumn.set_visible(false) - makes whole column invisible;

setting "none" value column "progress" still display empty progress bar, else raise error.

i have thought of how accomplish bypassing impossibility, couldn't find answer. out of ideas.

you should make hidden column in tree store telling whether show progress bar in each row or not. bind column visibility of cell renderer, this:

progress_bar_tree_view_column.add_attribute(progress_bar_renderer, 'visible',     number_of_my_hidden_column) 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -