From 82cc790080793d47133b16d9b4e1b958650c4b46 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 22 Aug 2023 02:47:15 +1200 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c0e0d33..01f290a 100644 --- a/README.md +++ b/README.md @@ -761,9 +761,10 @@ First we can create an object that will hold the data we want for each item in t ```python class Fruit(GObject.Object): - name = GObject.Property(type=str, default="") + name = GObject.Property(type=str) def __init__(self, name): super().__init__() + self.name = name ``` Then we create each object and put them in a ListStore. Then from that ListStore we create a SelectionModel, in this case im using a *SingleSelection*.