gtktreeview Questions

6

Solved

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 vadjus...
Iz asked 7/3, 2011 at 11:11

3

Solved

How to get index of current selected row in Gtk.TreeView in Python ?
Anitraaniweta asked 10/7, 2012 at 5:59

5

Solved

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 bac...
Theodor asked 23/6, 2010 at 5:58

1

Solved

I am using a Gtk.TreeView with a Gtk.TreeStore as a model for hierarchical data. As an example, let's take a music database organized into three levels: artist/album/title. I would like to filter t...
Gaygaya asked 7/5, 2019 at 20:5

3

Solved

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 = ...
Pique asked 7/3, 2011 at 18:41

2

Solved

After searching for a long time I found a solution (pretty simple) to move between cells of a treeview grid using Tab key and mantaining cells in edit mode. Now I've got a problem: cell edit confi...
Stinson asked 19/3, 2013 at 11:7

3

Solved

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 tre...
Hovey asked 29/11, 2010 at 20:27

0

I am using Python 3 and Gtk+ 3. I have a list of colors stored in a Gtk.ListStore. I want to display these colors as Gtk.ColorButton with a Gtk.CellRenderer so that the users would be able to view ...
Langsdon asked 22/12, 2014 at 3:37

1

Solved

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 whe...
Beefburger asked 21/4, 2014 at 14:45

1

Solved

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...
Shearin asked 22/1, 2013 at 6:39

3

Solved

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 d...
Chartreuse asked 9/2, 2011 at 1:1

1

Solved

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 whi...
Sharynshashlik asked 24/6, 2012 at 15:38

1

Solved

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...
Strongwilled asked 30/3, 2012 at 14:54

1

Solved

I want to make some rows in my TreeView bold, and some not as I append them to TreeView, later on, I want to unbold rows on click. What is the easiest way to do this?
Lover asked 13/12, 2011 at 15:0

1

Solved

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?
Disaccord asked 29/10, 2011 at 9:22

1

Solved

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, whi...
Bluestone asked 22/8, 2011 at 12:30

3

Solved

I have a list L of objects of my class A. This class implements __str__/__repr__, so each object has it's own string representation (not necessary unique). I have a GUI in pygtk, where I have a Tre...
Calcaneus asked 19/7, 2011 at 18:24

1

One can use gtk.TreeViewColumn.set_resizable(True) to make column manually resizeable... except the last column -- it always occupies the available space. While it's sensible in most cases, I use...
Purree asked 23/7, 2011 at 8:45

1

Solved

I have a PyGtk treeview with a couple of columns. During runtime i add constantly new rows. Each cell contains a string. Normaly, i would use a gtk.CellRenderer for each row, but I want to set the ...
Noggin asked 2/3, 2011 at 17:43

1

Solved

I am using a TreeView with a ListStore as model. When the user clicks on a row I want to take some action but not using the values in the cells, but using the data I created the row from... Curren...
Yesteryear asked 22/12, 2010 at 16:21

1

Solved

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 ...
Accouterment asked 2/9, 2010 at 17:1

1

Solved

I want to detect whenever the selection of my gtk.TreeView changes and, when it does, to call a function w/ this information. The only way I've found to do it so far is to attach to all these signa...
Hyperspace asked 16/9, 2010 at 23:10

1

Solved

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-int...
Withrow asked 26/8, 2010 at 16:27

1

Solved

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 (inse...
Nerveracking asked 23/8, 2010 at 13:0

1

Solved

I've been learning to use TreeViews, and these two types are often used for accessing a particular row of a tree. I don't really understand the difference between the two. My code is working--I con...
Balsamic asked 13/2, 2010 at 2:19

© 2022 - 2024 — McMap. All rights reserved.