comparison src/browser/sat_browser/main_panel.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 c2f22ca12e23
comparison
equal deleted inserted replaced
689:a6adefddcb0a 690:76a67d04c63e
180 @param presence (unicode): the new presence is a value in ('', 'chat', 'away', 'dnd', 'xa') 180 @param presence (unicode): the new presence is a value in ('', 'chat', 'away', 'dnd', 'xa')
181 """ 181 """
182 self.host.bridge.call('setStatus', None, presence, self.parent_panel.status_panel.status) 182 self.host.bridge.call('setStatus', None, presence, self.parent_panel.status_panel.status)
183 183
184 @classmethod 184 @classmethod
185 def getCategoryHTML(cls, menu_name_i18n, type_): 185 def getCategoryHTML(cls, category):
186 return menu_name_i18n 186 """Build the html to be used for displaying a category item.
187
188 @param category (quick_menus.MenuCategory): category to add
189 @return unicode: HTML to display
190 """
191 return category
187 192
188 193
189 class PresenceStatusPanel(HorizontalPanel, ClickHandler): 194 class PresenceStatusPanel(HorizontalPanel, ClickHandler):
190 195
191 def __init__(self, host, presence="", status=""): 196 def __init__(self, host, presence="", status=""):