freely re sizable GtkTreeView columns



Hi

I'm writing my first GTK app with pygobject. I'm struggling with the
resizing of treeview columns.  The data in one column are quite long
strings (filepaths) and I want to be able to dynamically resize the
column to something smaller then the length of the strings.

I'm creating the columns like this

        column = Gtk.TreeViewColumn('id', renderer, text=0)
        column.set_resizable(True)

But then the min column size is the length of the longest string in the
column. It would be nice if I could also resize the column to something
smaller.

best Max




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]