Questions tagged [gtktreeview]

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

217 questions
3
votes
0 answers

Glade : disparity when trying to remove a row of a liststore

I am building an app using Glade and Gtk. I have a treeview. In Glade I configured this treeview so that its model would be a GtkListstore called liststore. This liststore has two columns of type gcharray. I use pyinotify to detect when a usb media…
M.Brbr
  • 83
  • 7
3
votes
2 answers

PyGTK how to "load-on-demand" data to TreeView

I'm using PyGTK TreeView (as list) for my data. Is there any way to load more data on demand by going throu the list. For example: I have database table where is 200 000 records. At application start- loads 200 records from table. when i scroll…
Lixas
  • 6,938
  • 2
  • 25
  • 42
3
votes
2 answers

Column-Size on GtkTreeViews

How can I set the horizontal size of a specific column on a GtkTreeView? I have 4 columns on my TreeView and the last one expands on the rest of the free space. How can I set the first or second column to be expanded on the free space to set a fixed…
f00860
  • 3,486
  • 7
  • 41
  • 59
3
votes
1 answer

GTK TreeView styling

Short version: What CSS selector can be used to style the background of a GTK TreeView header? Long version: I've tried treeview header, treeview header .button, .button, button, label, GtkTreeView header, header and * as selectors for the header…
Tom
  • 7,269
  • 1
  • 42
  • 69
3
votes
1 answer

Autosize Python Gtk3 TreeViewColumn but make them resizable

I try to change the width of the columns. When I set them to autosize the having all a good size, but I cannot make them smaller. Then I set the columns to fixed size but now the horizontal scrollbar no longer appears. So maybe it is possible to…
oxidworks
  • 1,563
  • 1
  • 14
  • 37
3
votes
1 answer

Get original row number from .get_model() and .get_path() after TreeView was resorted

So I have this TreeView/TreeStore, which I fill with data from a list. My application uses only said list as reference data. The TreeStore is just constructed for display. And the TreeView can be resorted by tipping the column headers. Because…
mario
  • 144,265
  • 20
  • 237
  • 291
3
votes
1 answer

Set cellrenderertext foreground color when a row is highlighted

When I have a gtk.CellRendererText, I can associate its foreground color with one of the tree store's columns, and set the foreground-set attribute to True, to change the color of the text in that column. However, when the row with the colored…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
3
votes
2 answers

Cannot toggle check boxes in tree view

I'm having a simple dialog with a table with 2 columns, one of which is a check box. I have added a GtkCellRendererToggle but that one is not clickable. I have added a onToggle-function which is never called, it seems. The cell renderer is…
kaidentity
  • 609
  • 4
  • 10
  • 26
3
votes
2 answers

In Gtk, how do I search a ListStore for the row containing a particular value?

I have a ListStore modeling a list of Tags. This list may change apart from the ListStore. What I'd like to do is listen to the TagRemoved event in my TagList class, and remove the Tag from the ListStore when the event is triggered. However, I can't…
Matthew
  • 28,056
  • 26
  • 104
  • 170
3
votes
0 answers

GtkTreeViewColumn resizing based on contents

So it turns out that we'd like to use fixed height mode, because it's faster and it doesn't constantly try to update the treeview — we saw a significant decrease in CPU use with a table that, unfortunately, may contain a few thousand rows and some…
Ralesk
  • 31
  • 1
  • 4
3
votes
2 answers

How to make a Gtk+ widget inside a GtkScrolledWindow to expand when packed into a GtkPane?

I have a program which shows two GtkTreeViews packed inside a GtkPaned (sscce: here): gtk_paned_add1(GTK_PANED(paned), tree_view1); gtk_paned_add2(GTK_PANED(paned), tree_view2); The result is the following: However, the tables can become bigger,…
brandizzi
  • 26,083
  • 8
  • 103
  • 158
3
votes
3 answers

How to populate a new entry in a GtkTreeview (using Haskell & Glade)

this is how I currently initialize the Tree view from the glade file (Removed the uninteresting parts) tree_view <- xmlGetWidget xml castToTreeView "tree_view" To make it easy, how could I add a new entry to the tree_view using the text from an…
user1415426
  • 255
  • 1
  • 2
  • 5
3
votes
2 answers

Gtk.Treeview deselect row via signals and code

I'm using PyGObject but I think this is a question that could be adapted to all GTK, so if someone know how to do it using C or anything should work in python also. I have two treeview, Active and Inactive, I load data from a Sqlite database and I…
andyinno
  • 1,021
  • 2
  • 9
  • 24
2
votes
0 answers

gtk#, TreeView, CellRendererSpin: Spin buttons not visible & Custom CellRenderers

I am trying to use a spin button within my TreeView. It as added like this: Gtk.TreeViewColumn adjustColumn = new Gtk.TreeViewColumn(); adjustColumn.Title = ""; Gtk.CellRendererSpin adjustCell = new Gtk.CellRendererSpin(); adjustCell.Digits =…
TheSHEEEP
  • 2,961
  • 2
  • 31
  • 57
2
votes
1 answer

GtkTreeView treestore memory allocation

I have a custom gtk.treeview wrapper class that manages its own liststore. The class has its own method that clears the liststore's data and overwrites it with new data. For the purpose of testing memory consumption,the treeview just displays 50,000…
Wes
  • 954
  • 13
  • 25