chapters_list.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:Ebook-Viewer 作者: michaldaniel 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号