comparison frontends/src/quick_frontend/quick_widgets.py @ 1309:d0d5ba3b4d64 frontends_multi_profiles

quick frontend(quick widgets): fixed bad condition test in previous commit
author Goffi <goffi@goffi.org>
date Fri, 06 Feb 2015 20:46:14 +0100
parents f079e6ed1e69
children 9ca93ecdeea5
comparison
equal deleted inserted replaced
1308:f079e6ed1e69 1309:d0d5ba3b4d64
174 assert on_new_widget is None 174 assert on_new_widget is None
175 else: 175 else:
176 # the widget already exists 176 # the widget already exists
177 if on_existing_widget == C.WIDGET_KEEP: 177 if on_existing_widget == C.WIDGET_KEEP:
178 pass 178 pass
179 if on_existing_widget == C.WIDGET_RAISE: 179 elif on_existing_widget == C.WIDGET_RAISE:
180 raise WidgetAlreadyExistsError(hash_) 180 raise WidgetAlreadyExistsError(hash_)
181 elif on_existing_widget == C.WIDGET_RECREATE: 181 elif on_existing_widget == C.WIDGET_RECREATE:
182 # we use getOrCreateWidget to recreate the new widget 182 # we use getOrCreateWidget to recreate the new widget
183 # /!\ we use args and kwargs and not _args and _kwargs because we need the original args 183 # /!\ we use args and kwargs and not _args and _kwargs because we need the original args
184 # we need to get rid of kwargs special options 184 # we need to get rid of kwargs special options