Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_widgets.py @ 1310:9ca93ecdeea5 frontends_multi_profiles
quick_frontend: fixes hash setting for QuickWidget
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 06 Feb 2015 22:28:00 +0100 |
parents | d0d5ba3b4d64 |
children | 9e904f8a094e |
comparison
equal
deleted
inserted
replaced
1309:d0d5ba3b4d64 | 1310:9ca93ecdeea5 |
---|---|
193 # XXX: keep up-to-date if new special kwargs are added (i.e.: delete these keys here) | 193 # XXX: keep up-to-date if new special kwargs are added (i.e.: delete these keys here) |
194 new_kwargs['on_new_widget'] = None | 194 new_kwargs['on_new_widget'] = None |
195 new_kwargs['on_existing_widget'] = C.WIDGET_RAISE | 195 new_kwargs['on_existing_widget'] = C.WIDGET_RAISE |
196 hash_idx = 1 | 196 hash_idx = 1 |
197 while True: | 197 while True: |
198 new_kwargs['force_hash'] = hash_ + "_new_instance_{}".format(hash_idx) | 198 new_kwargs['force_hash'] = "{}_new_instance_{}".format(hash_, hash_idx) |
199 try: | 199 try: |
200 widget = self.getOrCreateWidget(class_, target, *args, **new_kwargs) | 200 widget = self.getOrCreateWidget(class_, target, *args, **new_kwargs) |
201 except WidgetAlreadyExistsError: | 201 except WidgetAlreadyExistsError: |
202 hash_idx += 1 | 202 hash_idx += 1 |
203 else: | 203 else: |