7 class GroupedCheckStateController(ControllerBase):
15 self._menu_handler.setCheckState(entry, MenuHandler.UNCHECKED)
18 state = self._menu_handler.getCheckState(entry)
19 if state == MenuHandler.NO_CHECKBOX:
21 elif state == MenuHandler.CHECKED:
22 self._menu_handler.setCheckState(entry, MenuHandler.UNCHECKED)
24 self._menu_handler.setCheckState(entry, MenuHandler.CHECKED)
26 for k, v
in self._group_list.items():
27 if v == target_gr
and k != entry:
28 self._menu_handler.setCheckState(k, MenuHandler.UNCHECKED)
29 self._menu_handler.reApply(self.
_server)
30 self._server.applyChanges()
def __init__(self, server, menu_handler)
def update_check_state(self, entry)
def add_group(self, group, entry)