Questions tagged [gtktreeview]

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

217 questions
1
vote
1 answer

How to get the height of the gtktreeview header?

I've looked in the gtk source code and the header height is private. I've tried something but it didn't work as wanted (the heightWithHeader is 1?!) Glib::RefPtr pWindow =…
Ionut Anghelcovici
1
vote
1 answer

Is the GTKMM set_value_vfunc function a lie?

I've been attempting to modify the contents of a custom tree view that inherits from TreeModel and TreeSortable. However, the virtual function set_value_impl contains only an assert. When I tried to look for example implementations, they all quote…
1
vote
2 answers

Cannot get scroll bar to work PyGTK treeview

First let me start off by saying I read on here a lot and I have googled around for the answer but have not been able to turn one up. Basically I am trying to add a scroll bar to add to my vbox window. I know its simply something I am not…
Stratus
  • 39
  • 1
  • 5
1
vote
1 answer

Why does my GtkTreeView update fire only after the gtkitem event finishes?

I have a gtktree with columns and values. I also have a popupmenu with one gtkmenuitem: 'Refresh'. The refresh event does two things: repopulate my gtktree preforms a query. The query is not immediate, it takes about 5 seconds. Why I can see…
Paul
  • 147
  • 1
  • 2
  • 5
1
vote
3 answers

Change the font in a GtkTreeView

How can I change the font of a leaf in my gtktreeview? I'd like set the font bold for a particular leaf
Paul
  • 147
  • 1
  • 2
  • 5
1
vote
1 answer

Show directories and files using GtkTreeView

Having the following base code for walking a directory I would like to fill a GtkTreeView with the directory and files information to the user: import os for (path, dirs, files) in os.walk("/etc"): print path, dirs, files C code is also welcome…
João Pinto
  • 5,521
  • 5
  • 21
  • 35
1
vote
0 answers

Does GTK TreeView have a way to cancel drag-and-drop within the "drag begin" event?

I have searched the web and found a similar question, but the answer was disabling drag and drop in the first place. But I want to cancel the drag-and-drop after it has started within the "drag begin" event, without releasing the mouse button. Is…
Damn Vegetables
  • 11,484
  • 13
  • 80
  • 135
1
vote
1 answer

Python GTK3 - Programtically selecting a node in TreeView after search?

I have a class-function that iterates through a Gtk.TreeStore searching for a child-node. If a matching node is found, I want to change the selection to that node. My function returns an iterator. I suspect this is the root-case of the problem,…
Kingsley
  • 14,398
  • 5
  • 31
  • 53
1
vote
1 answer

Gtk Tree View columns size to view

I'm a newbie to Gtk3 but I can't find how to do what I want anywhere. I'm trying to get a tree view representing article citations. Desired outcome: columns are resizable no horizontal scrollbar columns take only as much space as needed, they don't…
Ahmad B
  • 117
  • 7
1
vote
1 answer

Puting Gtk.Label in Gtk.TreeView row

I try to put markuped text (potentially containing italic, bold, color) in a Gtk.TreeView column, using the following example: #!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import os import gi gi.require_version('Gtk', '3.0') from…
fauve
  • 226
  • 1
  • 10
1
vote
1 answer

GTK3 C program push button in GTKScrolled Window with GTKTreeView with GTKListStore to scroll row into view

I ported a program to GTK3 in C language and everything works perfect except one thing. Say the TreeView that only shows 10 rows at a time, but is populated with 100 rows, the other rows out of view of course with tree view set to Single select rows…
blackedpi
  • 21
  • 4
1
vote
1 answer

Custom Gtk.CellRenderer with a Toggle cycling between True, None (displayed as inconsistent) and False, python GTK 3

I need to write a custom Gtk.CellRenderer (let's call it CellRendererToogleWithNone) that behaves similar to Gtk.CellRendererToggle, but instead of only supporting True and False I also want it to support None which should be displayed as…
evolution
  • 593
  • 6
  • 20
1
vote
1 answer

PyGTK: Modifying GTKTreeView gridline color

I am trying to change the default color (black) of the gridlines in a GTKTreeView widget. Using gtk+ 2 and latest pygtk. Any help is appreciated - I do hope this is possible.
Eric Chen
  • 3,562
  • 7
  • 39
  • 58
1
vote
1 answer

Sending treeview information from button_press_event in pygtk

I am writing an pygtk app that uses a treeview, which has a connection to button_press_event. What I can't figure out is how to pass the information about the treeview (specifically which row is clicked) to a gtk.Menu or another method. If I used…
Jonno_FTW
  • 8,601
  • 7
  • 58
  • 90
1
vote
1 answer

Not getting desired path with gtk_tree_view_get_path_at_pos ()

I have an application for which the user can open context menus inside a tree view. To get the current path after a right mouse click I use gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (treeview), event_button->x, event_button->y, &path, NULL, NULL,…
GTK 1.2.6 fanboy
  • 839
  • 1
  • 5
  • 20