comparison sat_frontends/quick_frontend/quick_widgets.py @ 3112:91891a108d6f

quick frontend (widgets): added "widget_hash" helper property
author Goffi <goffi@goffi.org>
date Fri, 17 Jan 2020 15:26:44 +0100
parents 07aac71ea31f
children 060ac43627fc
comparison
equal deleted inserted replaced
3111:5d3b6efac044 3112:91891a108d6f
371 371
372 A random target is returned when several targets are available 372 A random target is returned when several targets are available
373 """ 373 """
374 return next(iter(self.targets)) 374 return next(iter(self.targets))
375 375
376 @property
377 def widget_hash(self):
378 """Return quick widget hash"""
379 return self.getWidgetHash(self.target, self.profiles)
380
376 # synchronisation state 381 # synchronisation state
377 382
378 @property 383 @property
379 def sync(self): 384 def sync(self):
380 return self._sync 385 return self._sync