self.ui.yawSlider.valueChanged[int].connect(self.changeYaw)
self.ui.actionExit.triggered.connect(self.close)
+ def keyPressEvent(self, event):
+ if event.key() == Qt.Key_J:
+ self.osd.setRoll(self.osd.user_roll + 2)
+ event.accept()
+ elif event.key() == Qt.Key_L:
+ self.osd.setRoll(self.osd.user_roll - 2)
+ event.accept()
+ elif event.key() == Qt.Key_I:
+ self.osd.setPitch(self.osd.user_pitch + 2)
+ event.accept()
+ elif event.key() == Qt.Key_K:
+ self.osd.setPitch(self.osd.user_pitch - 2)
+ event.accept()
+ elif event.key() == Qt.Key_Q:
+ self.close()
+
+ def keyReleaseEvent(self, event):
+ return
+
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))