class RAction(): def __init__(self, label: str, action=None, shortcut: str = None, icon_from_theme: str = None, icon_file: str = None, checkable: bool = False, checked: bool = False ): super(RAction, self).__init__() self.label = label self.action = action self.shortcut = shortcut self.icon_from_theme = icon_from_theme self.icon_file = icon_file self.checkable = checkable self.checked = checked def set_action(self, action): self.action = action def set_icon_from_theme(self, icon_from_theme: str): self.icon_from_theme = icon_from_theme def set_icon_file(self, icon_file: str): self.icon_file = icon_file def set_shortcut(self, shortcut: str): self.shortcut = shortcut def set_checkable(self, checkable: bool): self.checkable = checkable def set_checked(self, checked: bool): self.checked = checked