(self)
Add hotkeys to editor
Add hotkeys to editor
Add hotkeys to editor
def setupButtons(self):
    """Add hotkeys to editor"""
    t = QShortcut(QKeySequence(PASTE_HOTKEY), self.parentWindow)
    t.activated.connect(self.pasteWithoutLinebreaks)
    t = QShortcut(QKeySequence(EDIT_SELECTION_HOTKEY), self.parentWindow)
    t.activated.connect(self.removeLinebreaksInSelection)
def setupButtons ( self ) : t = QShortcut ( QKeySequence ( PASTE_HOTKEY ) , self . parentWindow ) t . activated . connect ( self . pasteWithoutLinebreaks ) t = QShortcut ( QKeySequence ( EDIT_SELECTION_HOTKEY ) , self . parentWindow ) t . activated . connect ( self . removeLinebreaksInSelection )