Re: Python3, GObject objects & models
- From: Marius Gedminas <marius gedmin as>
- To: gtk-app-devel-list gnome org
- Subject: Re: Python3, GObject objects & models
- Date: Wed, 19 Dec 2018 11:43:21 +0200
On Tue, Dec 18, 2018 at 01:01:45PM -0500, Adam Tauno Williams wrote:
I have created, and registered, a custom GObject type [an object]. I
can place that type into a ListModel: aka model =
Gtk.ListModel(MyClass).
One of the advantages of creating a GObject is the whole property
system - - - and most notably change signals.
What I have not been able to find is how to connect/map something like
a Gtk.CellRendererText to a property, such that having a type in a
model has some advantage [vs. a model like (int, str, str)]. ???
I think you have to use Gtk.TreeViewColumn.set_cell_data_func(), but I
also fail to see any advantages you'd get of doing that instead of using
plain data types in the model.
Marius Gedminas
--
Remember the... the... uhh.....
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]