Questions tagged [gtktreeview]

GtkTreeView is a widget for displaying both trees and lists. It is part of the GTK library.

217 questions
40
votes
1 answer

GLib-CRITICAL **: Source ID XXX was not found when attempting to remove it

I made a treeview with a treestore as model. The window is shown as expected, but when I click in the "+" to expand the items, I get this message: GLib-CRITICAL **: Source ID 221 was not found when attempting to remove it Here is my code: #include…
Joel
  • 1,805
  • 1
  • 22
  • 22
23
votes
6 answers

How to auto-scroll a gtk.scrolledwindow?

I have a treeview-widget inside a ScrolledWindow, which is populated during runtime. I want the ScrolledWindow to auto-scroll to the end of the list. I "solved" the problem, by adjusting the vadjustment of the ScrolledWindow, everytime a row is…
Fookatchu
  • 7,125
  • 5
  • 28
  • 26
16
votes
1 answer

How to get value from selected item in treeview in PyGTK?

I'm learning PyGtk. I have a simple treeview with 1 column, I get items for that treeview from list. How to get value of selected item in treeview?
shiii
  • 175
  • 1
  • 1
  • 5
16
votes
3 answers

Glade treeview liststore data not visible, can't imagine why

I've got 99% 44/100 of everything working. I have a glade file, I use gtkbuilder to render it and voila it comes up. Everything except the data in my treeview liststore. I notice by default the tree view is not visible, and setting that to true…
stu
  • 8,461
  • 18
  • 74
  • 112
15
votes
1 answer

How can I make a GtkTreeView work with a vertical scrollbar in Glade3?

I'm using glade 3, to create TreeView and successfully added row as algorithm done, but I had a little issue because treeview will add new row, thus my "GUI" will getting longer to the below, how could I add the scrollbar for this TreeView? in order…
capede
  • 945
  • 1
  • 13
  • 26
13
votes
1 answer

Python + GTK: How to set a selected row on gtk.treeview

I'm trying to do a keyboard command. When I insert S+some_number+Return I need call a function that will see this number on a column on Gtk.Treeview and set that row has selected. How can I do that?
Irish Wolf
  • 211
  • 2
  • 13
10
votes
1 answer

How to show column headers in a GtkTreeView inside a gtk.ScrolledWindow?

I have a problem with Gtk.Treeview indide a Gtk.ScrolledWindow. I have a large amount of data, which doesnt fit inside my normal window geometrics, so i put my Treeview inside a ScrolledWindow, which seems to be the normal way. The problem with this…
Fookatchu
  • 7,125
  • 5
  • 28
  • 26
10
votes
1 answer

GTK+ 3.0: How to use a Gtk.TreeStore with custom model items?

I'm trying to develop a GTK application in Python and I'm really stuck with the correct usage of a gtk.TreeStore. My main problem: I've already parsed some JSON and I have my own data structure which ist basically a Python list and two kinds of…
f4lco
  • 3,728
  • 5
  • 28
  • 53
9
votes
5 answers

Changing the selected item colour in a GtkTreeview using python

I have a dialog which contains a pygtk.treeview for listing tasks by priority. Each row has the background colour set based on that priority, so for example the highest priority has a light red background. The row selection color is not so easy to…
Jon
  • 9,815
  • 9
  • 46
  • 67
9
votes
3 answers

Gtk.Treeview get current row index in Python

How to get index of current selected row in Gtk.TreeView in Python ?
deni123
  • 103
  • 1
  • 3
8
votes
3 answers

PyGTK Entry widget in TreeViewColumn header

How can I make a gtk.Entry widget focusable or editable within a gtk.TreeViewColumn header/title? I've tried this: # Create tree-view. treeview = gtk.TreeView() #... # Create column. renderer = gtk.CellRendererText() column =…
Uyghur Lives Matter
  • 18,820
  • 42
  • 108
  • 144
8
votes
1 answer

_really_ disable GtkTreeView searching

How do I really disable gtk treeview interactive search? The docs say to set_enable_search(False), but if I do this, CTRL+F still causes an annoying search pop-up to appear. Connecting to start-interactive-search and returning True doesn't work…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
8
votes
1 answer

How to expand all items in a GtkTreeView at start

Can any one tell me how to set tree view attribute so that all tree items can show up by default? The first image shows what I get and the second image shows what I would like to get automatically, that is, to expand the GtkTreeView without clicking…
YS Wang
  • 177
  • 13
7
votes
3 answers

gtk treeview: place image buttons on rows

For each row in my treeview, I want 4 image buttons next to each other. They will act like radio buttons, with only one being activateable at a time. Each button has an 'on' and 'off' image. How do I do this? I figured out how to put images there,…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
7
votes
1 answer

GtkTreeView insert/update performance penalty because of sorting

I'm having performance problems when inserting many rows into a GTK treeview (using PyGTK) - or when modifying many rows. The problem is that the model seems to get resorted after each change (insert/modification). This causes the GUI to hang for…
AndiDog
  • 68,631
  • 21
  • 159
  • 205
1
2 3
14 15