def initActions(self): self.no.clicked.connect(self.endRehash) self.yes.clicked.connect(self.beginRehash) self.reading.returnPressed.connect(self.checkAnswer) self.reading.textChanged.connect(self.convertToKana) clickable(self.mark).connect(self.continueReview) self.filter = Filter(self) self.mark.installEventFilter(self.filter) clickable(self.summary).connect(self.endRehash)
def initActions(self): self.buttonAdd.clicked.connect(self.showInput) self.buttonInactive.clicked.connect(self.showInactiveConfirmation) self.buttonInflect.clicked.connect(self.showInflectOptions) self.addExample.clicked.connect(self.checkAndAddExample) self.confirmInactive.clicked.connect(self.setInactiveAndClose) self.findExamples.clicked.connect(self.findExamplesUsingJishoClient) self.copyToManual.clicked.connect(self.copyToManualInput) clickable(self.infoLabel).connect(self.copyToClipboard) self.filter = Filter(self) self.infoLabel.setAttribute(Qt.WA_Hover, True) self.infoLabel.installEventFilter(self.filter)