Questions tagged [gtktreeview]

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

217 questions
1
vote
2 answers

Copy-Pasteable Text in pygtk's TreeView

I came across this rather unexpected problem. I have a gtk.TreeView with a single text column, that is rendered by gtk.CellRendererText. What I want is that the user can mark the displayed text using the mouse and get it into the clipboard by…
1
vote
2 answers

Gnome 3 Javascript (GJS) - TreeView - Select next/previous item

One month ago I heard about GJS for GNOME 3 and I wanted to try it out. What do I want to make? A simple Media Player for GNOME 3 with GJS. So, the base has been programmed, eg.: Create and connect the ListStore to a TreeView Object OpenFile Dialog…
fubaharu
  • 21
  • 3
1
vote
2 answers

Python PyGOobject treeview: confirm edit after move between cells with Tab key

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 confirmation happens only after pressing Enter key. If I…
Hammeronthenet
  • 132
  • 2
  • 14
1
vote
1 answer

How to get the coordinates of a GtkTreeView row

I'm using a GtkTreeView widget. If I have a row's GtkTreeIter, how can I then get that row's current position (vertical pixel coordinate) within the entire GtkTreeView window? My underlying problem is that I need to get a GtkTreeIter for whatever…
user2062604
  • 247
  • 3
  • 16
1
vote
1 answer

GTK TreeView with ListStore don't display anything. Python and SQLite3 used

I use GTK and Python for developing an application. I want to load TreeView elements (1 column) from SQLite3 database. But something go wrong (without any error)! Here is a whole code: #!/usr/bin/python import sys import sqlite3 as sqlite from…
Bogdan
  • 11
  • 2
1
vote
1 answer

How do I capture the selected row and column in a TreeView in PyGTK?

I have a table created using gtk.TreeView. I want to know which row and column is selected by the user. How is this possible?
elwc
  • 1,197
  • 2
  • 15
  • 25
1
vote
1 answer

How to put a horizontal line (separator) between rows in Gtk::TreeView

I'm writing a program using gtkmm-2.4 GUI package in Linux. How can I put horizontal lines as separators between rows of a TreeView?
Rasoul
  • 3,758
  • 5
  • 26
  • 34
1
vote
1 answer

Word wrap in gtkmm GtkTreeView

I'm writing a program using gtkmm-2.4 GUI package in Linux. How can I set a text column of a TreeView object to perform word wrapping in C++?
Rasoul
  • 3,758
  • 5
  • 26
  • 34
1
vote
2 answers

How to have a complete colored background in a table in GTK+2?

The method I employed is self.table.insert_column_with_attributes(-1, 'Node IP Address', IPAdd, text=0, background=3) But I realized that the gaps between cells, or rather, the borders, do not apply the background color. Is there a good way to…
elwc
  • 1,197
  • 2
  • 15
  • 25
1
vote
1 answer

Disable expanding of all top level nodes of a treeview

How can a gtk+ treeview be configured so that only the top level nodes are visible, and their expansion is disabled? With this configuration there will be no way of seing any child node.
Romildo
  • 545
  • 9
  • 20
1
vote
1 answer

How do I create a treeview with treelist that has lines in GTK?

As far as GTK is concern, the tree created is like this: The code for this tree is obtained from here. What I want to achieve is this: This is from Eclipse. Most programs have the lines for trees as well. Those lines are necessary for me as my…
elwc
  • 1,197
  • 2
  • 15
  • 25
1
vote
1 answer

Add a button to a treeview row

Is it possible to have a button as a cell renderer in a tree view with gtk2? There is no documentation of something like a button cell renderer.
Romildo
  • 545
  • 9
  • 20
1
vote
0 answers

How to make a window to appear just under a cell renderer in a line

I have a program which opens a window under a GtkEntry (sscce code here). When the program runs, this is its window: When I click in the "Open" button, a non-decorated window will open exactly below the entry, and with its left side aligned to the…
brandizzi
  • 26,083
  • 8
  • 103
  • 158
1
vote
1 answer

How to refresh the tree view using python?

I am new to python and gui programming.I am writing a program that will list all the directories in root(/) and all the sub-directories in these directories.I am using treeview to show these directories and sub-directories.To speed up my program i…
Sardeep Lakhera
  • 309
  • 4
  • 15
1
vote
1 answer

How can I show a flat representation of a GtkTreeStore in a GtkTreeView?

I have a TreeStore with objects that I view and manipulate through a GtkTreeView/GtkTreeModel setup. I also have a TreeView showing a TreeModelSort of the TreeStore, which I use for sorting on columns like name and date. The problem is, that the…
john
  • 23
  • 2