receiver: show GESTURE2 specs on the panel

This commit is contained in:
Vinícius 2020-08-30 14:50:41 -03:00 committed by Peter F. Patel-Schneider
parent b3751913b2
commit aa067b2774
1 changed files with 7 additions and 0 deletions

View File

@ -559,6 +559,13 @@ def _update_details(button):
flag_names = ('(%s)' % _('none'), ) if flag_bits == 0 else _hidpp10.NOTIFICATION_FLAG.flag_names(flag_bits)
yield (_('Notifications'), ('\n%15s' % ' ').join(flag_names))
if hasattr(device, 'gestures'):
specs = device.gestures.specs
if specs:
yield ('Gesture specs', '')
for s in specs.values():
yield (' %s' % s.spec, s.value)
def _set_details(text):
_details._text.set_markup(text)