comparison libervia/tui/status.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents b620a8e882e1
children
comparison
equal deleted inserted replaced
4269:64a85ce8be70 4270:0d7bb4df2343
49 self.host.current_profile 49 self.host.current_profile
50 ): # FIXME: manage multi-profiles 50 ): # FIXME: manage multi-profiles
51 return 51 return
52 options = [commonConst.PRESENCE[presence] for presence in commonConst.PRESENCE] 52 options = [commonConst.PRESENCE[presence] for presence in commonConst.PRESENCE]
53 list_widget = sat_widgets.GenericList( 53 list_widget = sat_widgets.GenericList(
54 options=options, option_type=sat_widgets.ClickableText, on_click=self.on_change 54 options=options,
55 option_type=sat_widgets.ClickableText,
56 on_click=self.on_change,
55 ) 57 )
56 decorated = sat_widgets.LabelLine( 58 decorated = sat_widgets.LabelLine(
57 list_widget, sat_widgets.SurroundedText(_("Set your presence")) 59 list_widget, sat_widgets.SurroundedText(_("Set your presence"))
58 ) 60 )
59 self.host.show_pop_up(decorated) 61 self.host.show_pop_up(decorated)