19 selection_list = SelectionList(*selections, id=
"session_select_list")
20 selection_list.border_title =
"Select Sessions to toggle object on/off in"
23 yield Button(
"Apply", id=
"apply")
24 yield Button(
"Close", id=
"cancel")
28 if event.button.id ==
"apply":
29 selection_list = self.query_one(
"#session_select_list").selected
32 selected_sessions = [(s, s
in selection_list)
for s
in self.
_sessions]
36 menu = self.app.get_screen(
"main").query_one(
"SelectionPanel")
37 menu.save_menu_state()
38 menu.refresh(recompose=
True)
39 menu.restore_menu_state()
41 self.app.screen.dismiss(result=
"cancel")