comparison frontends/src/quick_frontend/quick_widgets.py @ 1307:9512590dc3d7 frontends_multi_profiles

quick_ frontend (quick widgets): added explanation in docstring for non special keywords in getOrCreateWidget
author Goffi <goffi@goffi.org>
date Fri, 06 Feb 2015 20:09:01 +0100
parents 1a61b18703c4
children f079e6ed1e69
comparison
equal deleted inserted replaced
1306:789e86a8919d 1307:9512590dc3d7
110 if 'on_existing_widget' is present it can have the following values: 110 if 'on_existing_widget' is present it can have the following values:
111 C.WIDGET_KEEP [default]: return the existing widget 111 C.WIDGET_KEEP [default]: return the existing widget
112 C.WIDGET_RAISE: raise WidgetAlreadyExistsError 112 C.WIDGET_RAISE: raise WidgetAlreadyExistsError
113 C.WIDGET_RECREATE: create a new widget *WITH A NEW HASH* 113 C.WIDGET_RECREATE: create a new widget *WITH A NEW HASH*
114 if 'force_hash' is present, the hash given in value will be used instead of the one returned by class_.getWidgetHash 114 if 'force_hash' is present, the hash given in value will be used instead of the one returned by class_.getWidgetHash
115 other keys will be used to instanciate class_ if the case happen (e.g. if type_ is present and class_ is a QuickChat subclass,
116 it will be used to create a new QuickChat instance).
115 @return: a class_ instance, either new or already existing 117 @return: a class_ instance, either new or already existing
116 """ 118 """
117 cls = self.getRealClass(class_) 119 cls = self.getRealClass(class_)
118 120
119 ## arguments management ## 121 ## arguments management ##