GtkTreeView is a widget for displaying both trees and lists. It is part of the GTK library.
Questions tagged [gtktreeview]
217 questions
4
votes
1 answer
GTK# Treeview - how to sort child nodes
I have a Gtk.TreeView with child nodes like this image (I have covered up text for employer proprietary reasons):
Sorting by the "Title" column (clicking on the column header) sorts by the 3 parent nodes, when I really just want it to sort all the…

Tara
- 831
- 2
- 8
- 20
4
votes
1 answer
PyGTK TreeView showing blank rows from ListStore
I'm trying to show several rows from database in a TreeView but all I am getting are some dummy rows as you can see in the image below.
class SettingsDialog(gtk.Dialog):
def __init__(self):
gtk.Dialog.__init__(self, "Server Settings",…

halfdan
- 33,545
- 8
- 78
- 87
4
votes
0 answers
GtkTreeView hook interactive-search dialog
Is there a way to hook the interactive-search dialog in such a way that I handle what happens when the user types text in it? I want to hook it so I can implement interactive filtering instead of searching.
I'll use GtkTreeModelFilter over a…

sashoalm
- 75,001
- 122
- 434
- 781
4
votes
2 answers
Prevent Treeview selection loss on drag and drop
I have a gtk.Treeview setup as a drag source:
self.drag_source_set(gtk.gdk.BUTTON1_MASK, targets, gtk.gdk.ACTION_COPY)
and it's TreeSelection is set to SELECT_MULTIPLE.
But everytime I try to drag a multi row selection, the cursor jumps to the…

XORcist
- 4,288
- 24
- 32
4
votes
1 answer
Detect when column in gtk.treeview is resized
What signal can I catch to detect when a column changes size in a gtk.TreeView? I can't seem to find it in the docs.

Claudiu
- 224,032
- 165
- 485
- 680
4
votes
1 answer
PyGtk - TreeView and selected row
I have a TreeView and when I click in it, i receive the error:
Traceback (most recent call last):
File "pyparty.py", line 76, in get_selected_user
self.selected_user = tree_model.get_value(tree_iter, 0)
TypeError: iter must be a…

raj
- 101
- 1
- 4
4
votes
3 answers
Drag drop support for a GtkTreeView where the model is filtered and sorted
As the title suggests, I have a gtk.TreeView whose model is sorted and filtered. According to the documentation: "Drag and drop reordering of rows only works with unsorted stores.". The only other information given relates to using external sources,…

Jon
- 9,815
- 9
- 46
- 67
4
votes
1 answer
How do I create a multi-level TreeView using F#?
I would like to display a directory structure using Gtk# widgets through F#, but I'm having a hard time figuring out how to translate TreeViews into F#. Say I had a directory structure that looks like this:
Directory1
SubDirectory1
…

TwentyMiles
- 4,063
- 3
- 30
- 37
4
votes
1 answer
Python - Gtk.TreeView with Gtk.ListStore get selected index
i want to store items in a gtk-list and i decided to use the Gtk TreeView as List. Because i am quite new to python and gtk i want to store my elements as string representation in the TreeView and in a seperate python-list the according objects.
So…

schaeferpp
- 109
- 10
4
votes
1 answer
How to make a column with a string and pixbuf in GtkTreeview?
I'm working in a app with Gtk+2 and i need to implement a File treeview.
the actual code it's:
public FileTree() {
store = new TreeStore(2,typeof(string),typeof(string));
this.change_dir( "/dir/path" );
set_model( store );
//…

Matias
- 265
- 3
- 11
4
votes
1 answer
Python GTK3 Treeview Move Selection up or down
How do I move a selection up or down in a Treeview?
The idea is that I can have an up and down buttons to move the selection up a row or down a row.
My Treeview is using a ListStore. Not sure if that matters.

Samuel Taylor
- 1,181
- 2
- 14
- 25
3
votes
1 answer
adding items to treeview in PyGObject
I have a GUI created in Glade, and I would like to populate the treeview widget. Here is the relevant part of my code
def __init__(self):
.....
self.fill_store()
self.add_column(self.widget('treeview_preview'))
…

v923z
- 1,237
- 5
- 15
- 25
3
votes
2 answers
How to update TreeModel after moving subtree
I have a custom GenericTreeModel, that works just fine. Now I want the user to be able to rearrange the nodes using drag and drop, so I move a node to its new parent in the data model.
However then, the TreeModel wants to be notified using methods…

rumpel
- 7,870
- 2
- 38
- 39
3
votes
2 answers
How to get notified when a treeview (liststore) row is selected?
How can I connect to a signal of a Gtk.TreeView so that I am notified when a row is selected? Currently I am connecting to the row_activated signal but this requires a double click on the row and I want to be notified on a single click.
Example…

david4dev
- 4,854
- 2
- 28
- 35
3
votes
1 answer
Getting the checkboxes toggling in a GtkTreeView
I am using a treeview with checkboxes. I want the user to be able to click a checkbox and it will add that item to a favourites list. But currently I cannot get the boxes to toggle at all. Here's my code:
def draw_columns(self,treeview):
…

Jonno_FTW
- 8,601
- 7
- 58
- 90