pyqt5 QFrame pressed event code example Example: QAction pressed pyqt5 self.qaction.triggered.connect(self.function)