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
bookmarks-indicator.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录