comparison src/browser/sat_browser/base_widget.py @ 690:76a67d04c63e

browser_side: improve comments for menus-related methods
author souliane <souliane@mailoo.org>
date Thu, 09 Apr 2015 11:40:53 +0200
parents 9877607c719a
children f8a7a046ff9c
comparison
equal deleted inserted replaced
689:a6adefddcb0a 690:76a67d04c63e
61 menu_category = quick_menus.MenuCategory("plugins", extra={'icon':'plugins'}) 61 menu_category = quick_menus.MenuCategory("plugins", extra={'icon':'plugins'})
62 self.addCategory(menu_category, sub_menu) 62 self.addCategory(menu_category, sub_menu)
63 63
64 @classmethod 64 @classmethod
65 def getCategoryHTML(cls, category): 65 def getCategoryHTML(cls, category):
66 """Build the html to be used for displaying a category item.
67
68 @param category (quick_menus.MenuCategory): category to add
69 @return unicode: HTML to display
70 """
66 return cls.ITEM_TPL % category.icon 71 return cls.ITEM_TPL % category.icon