Shortcut To Switch Desktops Page

def get_shortcut(self, shortcut_id): for shortcut in self.shortcuts: if shortcut.shortcut_id == shortcut_id: return shortcut return None

def delete_shortcut(self, shortcut_id): self.shortcuts = [shortcut for shortcut in self.shortcuts if shortcut.shortcut_id != shortcut_id] shortcut to switch desktops

def create_shortcut(self, desktop_id, shortcut_key): shortcut = Shortcut(desktop_id, shortcut_key) self.shortcuts.append(shortcut) return shortcut def get_shortcut(self, shortcut_id): for shortcut in self