Все вопросы: [gtktreeview]
5 вопросов
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 sort mechanism only sorts the root nodes, even if...
How to change a GtkTreeView style in Python?
I have an app written in python that presents some of its data in a tree view. By default, the tree view is a floaty white affair with little floaty triangles to expand the nodes. Is it possible to change this style to be more like a Windows explorer tree view? Specifically, I'd like to have ver...
Как поймать клики в Gtk.TreeView?
Я пытаюсь поймать событие двойного щелчка в пустой области TreeView, чтобы создать новый узел. К сожалению, стандартный способ не работает. Я пробовал прикрепить ButtonPressEvent как к TreeView, так и к ScrolledWindow, в котором размещен T.V. Я не получаю обратных вызовов своей функции. Как я...
Как получить высоту заголовка gtktreeview?
Я просмотрел исходный код gtk, и высота заголовка является частной. Я пробовал что-то, но это не сработало, как хотелось (heightWithHeader равно 1 ?!) Glib::RefPtr<Gdk::Window> pWindow = treeView.get_bin_window(); treeView.set_headers_visible(true); pWindow->get_size(width, heightWi...
Размер столбца в GtkTreeViews
Как установить горизонтальный размер определенного столбца в GtkTreeView? У меня есть 4 столбца в моем TreeView, а последний расширяется на остальную часть свободного пространства. Как я могу настроить первый или второй столбец для расширения на свободном пространстве, чтобы установить фиксирова...