GtkTreeView is a widget for displaying both trees and lists. It is part of the GTK library.
Questions tagged [gtktreeview]
217 questions
0
votes
2 answers
Gtk Sharp - Treeview nodes will not expand sometimes
Sorry in advance for the vague conditions in which the problem below occurs. It is very intermittent, and I have not pinned down a consistent set of steps that reproduce it yet. (Which is why I'm asking for some general or common things that might…

Tara
- 831
- 2
- 8
- 20
0
votes
2 answers
How to assign “hidden data” to Gtk.TreeView row in order to catch them with Gtk.TreeView.connect("row-activated")?
In Python, I have a class person witch contain firstName and lastName and also country attributes (actually their is much more other data, but I simplify it for the example).
So, I generate a table witch should only show firstName and lastName (the…

fauve
- 226
- 1
- 10
0
votes
1 answer
Which signal does a GtkTreeview emit on column edit?
Which signal does a GtkTreeView emit when an editable column is edited? I want to catch edits with a callback function.

Tim
- 13,904
- 10
- 69
- 101
0
votes
1 answer
Pass parameters from ComboBox to GTKTreeView in C
In C Language, how is it possible to pass the values in ComboBox to GtkTreeView? We have tried this code, but we do not know where to write the ids of ComboBox. What signals should be used in ComboBox?
void on_btn_car_order_clicked(GtkButton…
0
votes
1 answer
PyGtk3 - Creating a Gtk.TreeView column header with an icon?
I've got a Gtk.ListStore(int, str) set to a Gtk.Treeview. From this Gtk.ListStore, I just display the str that represents the name of store items.
# Create store and set it to the model
self.__treeview_store = Gtk.ListStore(int, str) # (Sample_ID,…

deko
- 463
- 1
- 6
- 17
0
votes
1 answer
Python: Changing the select colour in a GtkTreeview
I want to disable the selection colour at a treeview. So I want to set the selected color to white with modify_base. I found this solution, but it doesn't work. This is my code:
import gi
from gi.repository import Gdk, Gtk
gi.require_version('Gtk',…

ikreb
- 2,133
- 1
- 16
- 35
0
votes
1 answer
Python Gtk: How to get blink a row in a Treeview
I have a button and I want that the selected row blinks. Someone should click the blink button and then click event to_blinkstart a Thread _blink which change the values of the 3-6 str elements at MyTreeStore.
import threading
import time
class…

ikreb
- 2,133
- 1
- 16
- 35
0
votes
0 answers
Update row in gtk_tree_view
I try only to update periodically the value in the first row of a (single column) GtkTreeView but the RAM consumption keeps growing!
Simplified excerpt :
static GtkListStore* liststore;
...
gboolean first_row_updater_timeout(gpointer user_data…

WorkingClassHero
- 27
- 4
0
votes
1 answer
gtkmm tree like one in win32
I try to implement tree like in windows explorer using gtkmm3.
My problem is that to add icon I add a column for it, so it look strange 1 :
* The tree triangle and dot line is on the left
* All text label is aligned on there row on the right.
*…

WCdr
- 185
- 4
- 12
0
votes
2 answers
Spinner in a PyGObject Gtk.TreeView does not spin
It is not clear for me how to use Gtk.SpinnerCellRenderer in a Gtk.TreeView with a Gtk.ListStore as model.
In this example the spinner is shown but it is inactive. It doesn't spin.
#!/usr/bin/env python3
import random
import…

buhtz
- 10,774
- 18
- 76
- 149
0
votes
1 answer
Treeview jumps to top on selecting or editing item
In my GTK3 window I have a Treeview with many items, so I have make it scrollable. I'm using a Scrolledwindow for that:
self.codes = Gtk.Treeview()
codeswindow = Gtk.ScrolledWindow()
codeswindow.add_with_viewport(self.codes)
codeswindow.show()
When…

chrwahl
- 8,675
- 2
- 20
- 30
0
votes
1 answer
Showing a file choosing dialog for a tree view column that contains paths
I'm trying to show a GtkFileChooserDialog when a GtkTreeView column that contains paths is edited.
I've come up with 2 possible ways to implement this:
Hook the "editing-started" signal on the GtkCellRendererText that shows the path. However this…

Matt Joiner
- 112,946
- 110
- 377
- 526
0
votes
1 answer
Gtk+3 How to set cursor on a Gtk.TreeView row?
I'm using Python3 and Gtk+3.
When I add a new row to my Gtk.TreeView, these are always appended at the end.
I want whenever I add a new row to set the cursor on it.
I know I have to use the "set_cursor()" function, or at least I think so. However,…

deko
- 463
- 1
- 6
- 17
0
votes
1 answer
why row dont update in tree view with calling gtk_list_store_set function
Every second the content of the table in the gtk is updated,But after a while table content remains unchanged until the mouse moves on the table. The amount that changes in table is buf variable, which is of the type of time.
store =…
0
votes
1 answer
Python Gtk3 : Get number of filtered rows in a Treeview
I want to get the number of rows in a Treeview , after Filter has been applied . I tried using len(Gtk.ListStore) and Gtk.Liststore.iter_n_children() after filtering the rows but both of these functions returned Total number of rows that were there…

Pawan Sharma
- 1,842
- 1
- 14
- 18