Mercurial > libervia-web
comparison src/browser/sat_browser/libervia_widget.py @ 652:0262fee86375 frontends_multi_profiles
browser_side: MicroblogPanel.accepted_groups (set of unicode) is now built from QuickWidget.targets (set of tuple of unicode)
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 27 Feb 2015 01:11:34 +0100 |
parents | 7e3cdc39c3e7 |
children | 40c72f3b7638 |
comparison
equal
deleted
inserted
replaced
651:2df91d0308ac | 652:0262fee86375 |
---|---|
561 def doAttachChildren(self): | 561 def doAttachChildren(self): |
562 # We need to force the use of a panel subclass method here, else | 562 # We need to force the use of a panel subclass method here, else |
563 # the event will not propagate to children | 563 # the event will not propagate to children |
564 VerticalPanel.doAttachChildren(self) | 564 VerticalPanel.doAttachChildren(self) |
565 | 565 |
566 def matchEntity(self, item): | |
567 """Check if this widget corresponds to the given entity. | |
568 | |
569 This method should be overwritten by child classes. | |
570 @return: True if the widget matches the entity""" | |
571 raise NotImplementedError | |
572 | |
573 def addMenus(self, menu_bar): | 566 def addMenus(self, menu_bar): |
574 """Add menus to the header. | 567 """Add menus to the header. |
575 | 568 |
576 This method can be overwritten by child classes. | 569 This method can be overwritten by child classes. |
577 @param menu_bar (GenericMenuBar): menu bar of the widget's header | 570 @param menu_bar (GenericMenuBar): menu bar of the widget's header |