def __init__(self, window):
"""
Provides the List Box with chapters index and navigation based around them
:param window: Main application window reference, serves as communication hub
"""
super(Gtk.ListBox, self).__init__()
self.__window = window
# Only one chapter can be selected at a time
# set_current_chapter() method relies on this
self.set_selection_mode(Gtk.SelectionMode.SINGLE)
self.connect('row_activated', self.__on_listbox_row_activated)
self.__populate_listbox()
评论列表
文章目录