emre
emre

Reputation: 65

Creating tables in Gtk

I want to create tables (yes, tables, like in excel), that have rows and columns. I couldn't find much about it on the internet due to the lack of resources about Gtk. (Or it's probably my bad)

How can I create basic tables in Gtk?

Upvotes: 2

Views: 3191

Answers (2)

Colin D
Colin D

Reputation: 3109

In GTK4, there is Gtk::ColumnView https://docs.gtk.org/gtk4/class.ColumnView.html

I created a demo for using the column view here in rust, but the concepts may be portable to python https://github.com/gtk-rs/gtk4-rs/pull/1111

Example screenshot

enter image description here

Upvotes: 1

fastrizwaan
fastrizwaan

Reputation: 290

The Treeview container allows all excel like sheet functions like sorting, selecting, filtering etc.

Treeview Tutorial

Upvotes: 1

Related Questions