MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / __init__

Method __init__

bleachbit/GuiTreeModels.py:154–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

152 """Model holds information to be displayed in the tree view"""
153
154 def __init__(self):
155 self.tree_store = Gtk.TreeStore(
156 GObject.TYPE_STRING, GObject.TYPE_BOOLEAN, GObject.TYPE_PYOBJECT, GObject.TYPE_STRING, GObject.TYPE_STRING)
157 if not self.tree_store:
158 raise Exception("cannot create tree store")
159 self.row_changed_handler_id = None
160 self.refresh_rows()
161 self.tree_store.set_sort_func(3, self.sort_func)
162 self.tree_store.set_sort_column_id(3, Gtk.SortType.ASCENDING)
163
164 def get_model(self):
165 """Return the tree store"""

Callers

nothing calls this directly

Calls 1

refresh_rowsMethod · 0.95

Tested by

no test coverage detected