WIP: avant de revenir au commit >>> fe7ad2488a
<<< clean
This commit is contained in:
parent
ad8ff7d711
commit
17cd257fb1
|
@ -1,3 +1,14 @@
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
commit 'cleaned' fe7ad2488ab00f25f180e2acaeadaac2332ec3cc
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Linkedin thq&4s5r&CH%6pPAhJt8 jean.sirmai@orange.fr
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
A summary from : https://docs.gtk.org/gtk4/section-list-widget.html 2024-02-02
|
||||
|
||||
Views or list widgets are the widgets that hold and manage the lists. Example: GtkListView
|
||||
|
@ -21,6 +32,7 @@ GListModel, guint position, GtkTreeListRow, GObject item, GListStore, GtkTreeLis
|
|||
GtkColumnView, GtkListView, GtkListItem, GtkSortListModel, GtkFilterListModel, GtkListItemFactory, GtkWidget
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
https://discourse.gnome.org/t/tips-to-initialize-gtk4s-columnview-python/19028
|
||||
factory = Gtk.SignalListItemFactory()
|
||||
factory.connect( 'bind', bindCallback )
|
||||
|
@ -61,6 +73,8 @@ Le résultat de ce code est donc : "Je suis une fonction A". Comme en JavaScript
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
https://github.com/kriptolix/gtk4_python3_exemples/blob/main/ListView/tree_view.py
|
||||
|
||||
https://discourse.gnome.org/t/documentation-by-gtk-list-view-tree/18978 How to set up the tree gtklistview ?
|
||||
kriptolix Diego C Sampaio answer > You will need:
|
||||
|
||||
|
|
|
@ -38,8 +38,7 @@ void on_activate_window_creation (GtkApplication *app, gpointer data)
|
|||
GtkTreeListRow is used by GtkTreeListModel to represent items.\
|
||||
It allows navigating the model as a tree and modify the state of rows.\n\
|
||||
https://docs.gtk.org/gtk4/class.TreeListRow.html\n\
|
||||
assertion 'GTK_IS_TREE_LIST_MODEL (self)' failed (ligne 69)\n\n\
|
||||
https://github.com/kriptolix/gtk4_python3_exemples/blob/main/ListView/tree_view.py\n");
|
||||
assertion 'GTK_IS_TREE_LIST_MODEL (self)' failed (ligne 69)\n");
|
||||
gtk_window_set_title (GTK_WINDOW(that_window), "Ignition !");
|
||||
gtk_window_set_default_size (GTK_WINDOW(that_window), 180, 140);
|
||||
GtkWidget *my_scrolling_thing = gtk_scrolled_window_new ();
|
||||
|
@ -51,7 +50,9 @@ void on_activate_window_creation (GtkApplication *app, gpointer data)
|
|||
//-------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
static void on_setup_cb (GtkSignalListItemFactory *self, GtkListItem *my_list_item, gpointer user_data)
|
||||
/* trying to copy : https://github.com/kriptolix/gtk4_python3_exemples/blob/main/ListView/tree_view.py */
|
||||
/* trying to copy : https://github.com/kriptolix/gtk4_python3_exemples/blob/main/ListView/tree_view.py
|
||||
* kriptolix Fortaleza Diego C Sampaio Universidade Federal do Céara +5585996713935
|
||||
* UNIDADE FORTALEZA: ZAP: (85) 99671-3935 Avenida Santos Dumont, Aldeota */
|
||||
/* def setup(widget, item): */
|
||||
/* """Setup the widget to show in the Gtk.Listview""" */
|
||||
/* label = Gtk.Label() */
|
||||
|
|
Loading…
Reference in New Issue