Questions tagged [gtktreeview]

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

217 questions
0
votes
1 answer

Toggle TreeView row selection individually with each click

I'm using PyGTK 2.0's TreeView backed by a ListStore to create a table of selectable items. I need to select and deselect individual rows by single clicking anywhere on the row. Clicking a row should toggle the highlight and the value of a checkbox…
Travis Christian
  • 2,412
  • 2
  • 24
  • 41
0
votes
1 answer

pygtk assertion fail when using a generator to thread and callback to add elements to a treeview due to treeviewiter parent

Using the Generator class from http://unpythonic.blogspot.com/2007/08/using-threads-in-pygtk.html, the following code makes my program fail: import gtk import gobject from GeneratorTask import GeneratorTask GeneratorTask(self.get_playlist,…
Adam M-W
  • 3,509
  • 9
  • 49
  • 69
0
votes
1 answer

Get the width of a TreeViewColumn that would like to be if it were autosized

Is there a way to get the width, in pixels, that a gtk.TreeViewColumn would want to be if the sizing mode was set as gtk.TREE_VIEW_COLUMN_AUTOSIZE, even if it's currently gtk.TREE_VIEW_COLUMN_FIXED?
Claudiu
  • 224,032
  • 165
  • 485
  • 680
0
votes
2 answers

Add gtk.TreeView columns to a size group

I want to stack two treeviews on each other and have the columns be aligned. I figured the way to do this would be to use a gtk.SizeGroup somehow. However, gtk.TreeViewColumn is not a widget... how can I do this?
Claudiu
  • 224,032
  • 165
  • 485
  • 680
0
votes
1 answer

Capture the text while editing a GtkCellRendererCombo

I have a simple question. I am using a GtkTreeView, where one column is displayed as GtkCellRendererCombo. The user can either freely edit the text of the cell, or choose for it a value from the combo. The problem is that once the user chooses a…
madmurphy
  • 1,451
  • 11
  • 20
0
votes
1 answer

PyGTK - Adding Rows to gtk.TreeStore

After following the official tutorial here: tutorial I'm still having issues adding rows/creating a TreeIter object. Here's what my code looks like: builder = gtk.Builder() self.treeview = builder.get_object("treeview") self.treestore =…
Drew
  • 2,583
  • 5
  • 36
  • 54
0
votes
1 answer

Why does my GtkTreeView sort func receive a row with None in it?

I've set up a gtk.TreeView with a gtk.TreeStore. One column contains formatted dollar amounts, and I've set up sorting by that column as follows: def sortmon(model, i1, i2): v1 = model[i1][COL_MONEY] v2 = model[i2][COL_MONEY] …
Claudiu
  • 224,032
  • 165
  • 485
  • 680
0
votes
1 answer

PyGTK TreeColumns all exact duplicates

I wrote a simple PyGTK script to show some basic process information in a TreeView: import gtk import os import pwd import grp class ProcParser: """ Parses the status file of a particular process """ def __init__(self, fname): …
new123456
  • 873
  • 1
  • 12
  • 21
0
votes
2 answers

trouble setting up GtkTreeViews in PyGtk

I've got some code in a class that extends gtk.TreeView, and this is the init method. I want to create a tree view that has 3 columns. A toggle button, a label, and a drop down box that the user can type stuff into. The code below works, except that…
Chris H
  • 6,433
  • 5
  • 33
  • 51
0
votes
1 answer

Dragging rows within a tree and from another tree

Is it possible to create such GtkTreeView to be able: To reorder rows of that tree by DND; To drop rows from another tree to that tree. GTK+ manual says about "reorderable" property: The reordering is implemented by setting up the tree view as…
0
votes
1 answer

GtkTreeView current row text underline

How can I underline only text (not entire row) in GtkTreeView? GtkTreeView row:selected { border-bottom: 5px solid #ffffff; } gives me this: when I want this:
themylogin
  • 222
  • 1
  • 10
0
votes
1 answer

Header Widget in Gtk.TreeViewColumn

There is a Treeview with several TreeViewColumns. Because the default font-size is to big for my usage, I need to set the font-size in the TreeViewColumn Header. I tried to following: tvc = Gtk.TreeViewColumn() tvcl =…
HappyHacking
  • 878
  • 1
  • 12
  • 28
0
votes
1 answer

TreeView in GTK# updating the columns in ListStore

So I have a TreeView in GTK# and I preload it with an empty TreeModelSort (no columns.) At runtime I let the users select the columns they'd like to add and when the button is clicked I create a new ListStore with these columns, from that I create a…
Daniel Wardin
  • 1,840
  • 26
  • 48
0
votes
1 answer

Disable the interactive-search popup of GtkTreeView

Typing Ctrl-F on a GtkTreeView enables a popup where a search-term can be inserted. I want to disable this popup, since I want to use Ctrl-F for another purpose. Also, the amount of data displayed is quite large, so typing something in the popup…
Sahib
  • 223
  • 1
  • 10
0
votes
1 answer

GTK+ 3: Restore TreeViewColumn widths without making them behave as if manually sized

I have a TreeView whose columns are all expandable with fixed-mode sizing. I would like to restore the widths of the columns when the user restarts the app. It seems that calling set_fixed_size is the way to do this, but: If I set only the widths…
phu
  • 1,199
  • 2
  • 10
  • 20