bookmarks-indicator.py 文件源码

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

项目:bookmarks-indicator 作者: antoniocoratelli 项目源码 文件源码
def append_dummy(self, widget):
        '''
        Insert a dummy separator in the submenu of a folder item.
        Thanks to this function item representing folders always have an arrow,
        and it is possible to expand the folder content only when the user
        actually hovers the item.
        '''
        submenu = gtk.Menu()
        self.append_separator(submenu)
        widget.set_submenu(submenu)
        return submenu
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号