self.ui.pitchSlider.valueChanged[int].connect(self.changePitch)
self.ui.rollSlider.valueChanged[int].connect(self.changeRoll)
self.ui.yawSlider.valueChanged[int].connect(self.changeYaw)
+ self.ui.actionExit.triggered.connect(self.close)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
<height>23</height>
</rect>
</property>
+ <widget class="QMenu" name="menuFile">
+ <property name="title">
+ <string>File</string>
+ </property>
+ <addaction name="actionExit"/>
+ </widget>
+ <widget class="QMenu" name="menuDevices">
+ <property name="title">
+ <string>Devices</string>
+ </property>
+ </widget>
+ <addaction name="menuFile"/>
+ <addaction name="menuDevices"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
+ <action name="actionExit">
+ <property name="text">
+ <string>Exit</string>
+ </property>
+ </action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
# Form implementation generated from reading ui file 'qtosd.ui'
#
-# Created: Tue Jun 2 19:36:00 2015
+# Created: Sun Jun 7 18:35:37 2015
# by: PyQt5 UI code generator 5.3.2
#
# WARNING! All changes made in this file will be lost!
self.menuBar = QtWidgets.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 400, 23))
self.menuBar.setObjectName("menuBar")
+ self.menuFile = QtWidgets.QMenu(self.menuBar)
+ self.menuFile.setObjectName("menuFile")
+ self.menuDevices = QtWidgets.QMenu(self.menuBar)
+ self.menuDevices.setObjectName("menuDevices")
MainWindow.setMenuBar(self.menuBar)
self.mainToolBar = QtWidgets.QToolBar(MainWindow)
self.mainToolBar.setObjectName("mainToolBar")
self.statusBar = QtWidgets.QStatusBar(MainWindow)
self.statusBar.setObjectName("statusBar")
MainWindow.setStatusBar(self.statusBar)
+ self.actionExit = QtWidgets.QAction(MainWindow)
+ self.actionExit.setObjectName("actionExit")
+ self.menuFile.addAction(self.actionExit)
+ self.menuBar.addAction(self.menuFile.menuAction())
+ self.menuBar.addAction(self.menuDevices.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
+ self.menuFile.setTitle(_translate("MainWindow", "File"))
+ self.menuDevices.setTitle(_translate("MainWindow", "Devices"))
+ self.actionExit.setText(_translate("MainWindow", "Exit"))
if __name__ == "__main__":