parent
c7b1a23441
commit
218d752920
@ -39,13 +39,12 @@ from gi.repository import Gtk
|
|||||||
class AttrModel(Gtk.ListStore):
|
class AttrModel(Gtk.ListStore):
|
||||||
|
|
||||||
def __init__(self, attr_list, db):
|
def __init__(self, attr_list, db):
|
||||||
Gtk.ListStore.__init__(self, str, str, bool, bool, object)
|
Gtk.ListStore.__init__(self, str, str, bool, object)
|
||||||
self.db = db
|
self.db = db
|
||||||
for attr in attr_list:
|
for attr in attr_list:
|
||||||
self.append(row=[
|
self.append(row=[
|
||||||
str(attr.get_type()),
|
str(attr.get_type()),
|
||||||
attr.get_value(),
|
attr.get_value(),
|
||||||
attr.has_citations(),
|
|
||||||
attr.get_privacy(),
|
attr.get_privacy(),
|
||||||
attr,
|
attr,
|
||||||
])
|
])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user