当前位置:   article > 正文

python开发UI界面学习.实践1_pyobject画ui

pyobject画ui

界面设计

 1.设计完成界面:

 2.生成对应代码:

  1. from PyQt5 import QtCore, QtGui, QtWidgets
  2. class Ui_MainWindow(object):
  3. def setupUi(self, MainWindow):
  4. MainWindow.setObjectName("MainWindow")
  5. MainWindow.setWindowModality(QtCore.Qt.NonModal)
  6. MainWindow.resize(1090, 632)
  7. font = QtGui.QFont()
  8. font.setBold(False)
  9. font.setWeight(50)
  10. MainWindow.setFont(font)
  11. icon = QtGui.QIcon()
  12. icon.addPixmap(QtGui.QPixmap("MOKO.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  13. MainWindow.setWindowIcon(icon)
  14. self.centralwidget = QtWidgets.QWidget(MainWindow)
  15. self.centralwidget.setObjectName("centralwidget")
  16. self.horizontalLayout_20 = QtWidgets.QHBoxLayout(self.centralwidget)
  17. self.horizontalLayout_20.setObjectName("horizontalLayout_20")
  18. self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
  19. self.tabWidget.setTabletTracking(False)
  20. self.tabWidget.setStyleSheet("background-color: rgb(235, 235, 235);\n"
  21. "")
  22. self.tabWidget.setTabPosition(QtWidgets.QTabWidget.North)
  23. self.tabWidget.setTabShape(QtWidgets.QTabWidget.Triangular)
  24. self.tabWidget.setUsesScrollButtons(True)
  25. self.tabWidget.setTabsClosable(False)
  26. self.tabWidget.setTabBarAutoHide(False)
  27. self.tabWidget.setObjectName("tabWidget")
  28. self.tab_1 = QtWidgets.QWidget()
  29. self.tab_1.setObjectName("tab_1")
  30. self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab_1)
  31. self.verticalLayout_5.setObjectName("verticalLayout_5")
  32. self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
  33. self.horizontalLayout_11.setObjectName("horizontalLayout_11")
  34. self.verticalLayout_3 = QtWidgets.QVBoxLayout()
  35. self.verticalLayout_3.setContentsMargins(-1, 2, -1, -1)
  36. self.verticalLayout_3.setSpacing(7)
  37. self.verticalLayout_3.setObjectName("verticalLayout_3")
  38. self.groupBox = QtWidgets.QGroupBox(self.tab_1)
  39. self.groupBox.setEnabled(True)
  40. self.groupBox.setMinimumSize(QtCore.QSize(0, 0))
  41. self.groupBox.setSizeIncrement(QtCore.QSize(0, 0))
  42. font = QtGui.QFont()
  43. font.setFamily("幼圆")
  44. font.setPointSize(10)
  45. font.setBold(True)
  46. font.setItalic(False)
  47. font.setUnderline(False)
  48. font.setWeight(75)
  49. self.groupBox.setFont(font)
  50. self.groupBox.setMouseTracking(False)
  51. self.groupBox.setTabletTracking(False)
  52. self.groupBox.setFocusPolicy(QtCore.Qt.NoFocus)
  53. self.groupBox.setAcceptDrops(False)
  54. self.groupBox.setLayoutDirection(QtCore.Qt.LeftToRight)
  55. self.groupBox.setStyleSheet("")
  56. self.groupBox.setCheckable(True)
  57. self.groupBox.setChecked(False)
  58. self.groupBox.setObjectName("groupBox")
  59. self.verticalLayout_15 = QtWidgets.QVBoxLayout(self.groupBox)
  60. self.verticalLayout_15.setObjectName("verticalLayout_15")
  61. self.verticalLayout_14 = QtWidgets.QVBoxLayout()
  62. self.verticalLayout_14.setObjectName("verticalLayout_14")
  63. self.horizontalLayout = QtWidgets.QHBoxLayout()
  64. self.horizontalLayout.setObjectName("horizontalLayout")
  65. self.label_2 = QtWidgets.QLabel(self.groupBox)
  66. font = QtGui.QFont()
  67. font.setFamily("幼圆")
  68. font.setPointSize(9)
  69. font.setBold(False)
  70. font.setItalic(False)
  71. font.setUnderline(False)
  72. font.setWeight(50)
  73. self.label_2.setFont(font)
  74. self.label_2.setObjectName("label_2")
  75. self.horizontalLayout.addWidget(self.label_2)
  76. self.lineEdit_MqttTopic = QtWidgets.QLineEdit(self.groupBox)
  77. font = QtGui.QFont()
  78. font.setFamily("SimSun")
  79. font.setPointSize(9)
  80. font.setBold(False)
  81. font.setItalic(False)
  82. font.setUnderline(False)
  83. font.setWeight(50)
  84. self.lineEdit_MqttTopic.setFont(font)
  85. self.lineEdit_MqttTopic.setStyleSheet("background-color: rgb(255, 255, 255);")
  86. self.lineEdit_MqttTopic.setObjectName("lineEdit_MqttTopic")
  87. self.horizontalLayout.addWidget(self.lineEdit_MqttTopic)
  88. self.horizontalLayout.setStretch(0, 1)
  89. self.horizontalLayout.setStretch(1, 2)
  90. self.verticalLayout_14.addLayout(self.horizontalLayout)
  91. self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
  92. self.horizontalLayout_8.setObjectName("horizontalLayout_8")
  93. self.label_14 = QtWidgets.QLabel(self.groupBox)
  94. font = QtGui.QFont()
  95. font.setFamily("幼圆")
  96. font.setPointSize(9)
  97. font.setBold(False)
  98. font.setItalic(False)
  99. font.setUnderline(False)
  100. font.setWeight(50)
  101. self.label_14.setFont(font)
  102. self.label_14.setObjectName("label_14")
  103. self.horizontalLayout_8.addWidget(self.label_14)
  104. self.lineEdit_MqttTopic_5 = QtWidgets.QLineEdit(self.groupBox)
  105. font = QtGui.QFont()
  106. font.setFamily("SimSun")
  107. font.setPointSize(9)
  108. font.setBold(False)
  109. font.setItalic(False)
  110. font.setUnderline(False)
  111. font.setWeight(50)
  112. self.lineEdit_MqttTopic_5.setFont(font)
  113. self.lineEdit_MqttTopic_5.setStyleSheet("background-color: rgb(255, 255, 255);")
  114. self.lineEdit_MqttTopic_5.setObjectName("lineEdit_MqttTopic_5")
  115. self.horizontalLayout_8.addWidget(self.lineEdit_MqttTopic_5)
  116. self.horizontalLayout_8.setStretch(0, 1)
  117. self.horizontalLayout_8.setStretch(1, 2)
  118. self.verticalLayout_14.addLayout(self.horizontalLayout_8)
  119. self.horizontalLayout_33 = QtWidgets.QHBoxLayout()
  120. self.horizontalLayout_33.setObjectName("horizontalLayout_33")
  121. self.label_15 = QtWidgets.QLabel(self.groupBox)
  122. font = QtGui.QFont()
  123. font.setFamily("幼圆")
  124. font.setPointSize(9)
  125. font.setBold(False)
  126. font.setItalic(False)
  127. font.setUnderline(False)
  128. font.setWeight(50)
  129. self.label_15.setFont(font)
  130. self.label_15.setObjectName("label_15")
  131. self.horizontalLayout_33.addWidget(self.label_15)
  132. self.lineEdit_MqttTopic_6 = QtWidgets.QLineEdit(self.groupBox)
  133. font = QtGui.QFont()
  134. font.setFamily("SimSun")
  135. font.setPointSize(9)
  136. font.setBold(False)
  137. font.setItalic(False)
  138. font.setUnderline(False)
  139. font.setWeight(50)
  140. self.lineEdit_MqttTopic_6.setFont(font)
  141. self.lineEdit_MqttTopic_6.setStyleSheet("background-color: rgb(255, 255, 255);")
  142. self.lineEdit_MqttTopic_6.setObjectName("lineEdit_MqttTopic_6")
  143. self.horizontalLayout_33.addWidget(self.lineEdit_MqttTopic_6)
  144. self.horizontalLayout_33.setStretch(0, 1)
  145. self.horizontalLayout_33.setStretch(1, 2)
  146. self.verticalLayout_14.addLayout(self.horizontalLayout_33)
  147. self.verticalLayout_15.addLayout(self.verticalLayout_14)
  148. self.pushButton_3 = QtWidgets.QPushButton(self.groupBox)
  149. self.pushButton_3.setStyleSheet("font: 9pt \"幼圆\";")
  150. self.pushButton_3.setObjectName("pushButton_3")
  151. self.verticalLayout_15.addWidget(self.pushButton_3)
  152. self.verticalLayout_3.addWidget(self.groupBox)
  153. self.groupBox_2 = QtWidgets.QGroupBox(self.tab_1)
  154. font = QtGui.QFont()
  155. font.setFamily("幼圆")
  156. font.setPointSize(10)
  157. font.setBold(True)
  158. font.setWeight(75)
  159. self.groupBox_2.setFont(font)
  160. self.groupBox_2.setCheckable(True)
  161. self.groupBox_2.setChecked(False)
  162. self.groupBox_2.setObjectName("groupBox_2")
  163. self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
  164. self.verticalLayout_2.setObjectName("verticalLayout_2")
  165. self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
  166. self.horizontalLayout_5.setObjectName("horizontalLayout_5")
  167. self.label_3 = QtWidgets.QLabel(self.groupBox_2)
  168. font = QtGui.QFont()
  169. font.setFamily("幼圆")
  170. font.setPointSize(9)
  171. font.setBold(False)
  172. font.setWeight(50)
  173. self.label_3.setFont(font)
  174. self.label_3.setObjectName("label_3")
  175. self.horizontalLayout_5.addWidget(self.label_3)
  176. self.lineEdit_mac_three_axis = QtWidgets.QLineEdit(self.groupBox_2)
  177. font = QtGui.QFont()
  178. font.setFamily("SimSun")
  179. font.setPointSize(9)
  180. font.setBold(False)
  181. font.setWeight(50)
  182. self.lineEdit_mac_three_axis.setFont(font)
  183. self.lineEdit_mac_three_axis.setStyleSheet("background-color: rgb(255, 255, 255);")
  184. self.lineEdit_mac_three_axis.setObjectName("lineEdit_mac_three_axis")
  185. self.horizontalLayout_5.addWidget(self.lineEdit_mac_three_axis)
  186. self.horizontalLayout_5.setStretch(0, 1)
  187. self.horizontalLayout_5.setStretch(1, 2)
  188. self.verticalLayout_2.addLayout(self.horizontalLayout_5)
  189. self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
  190. self.horizontalLayout_6.setObjectName("horizontalLayout_6")
  191. self.label_4 = QtWidgets.QLabel(self.groupBox_2)
  192. font = QtGui.QFont()
  193. font.setFamily("幼圆")
  194. font.setPointSize(9)
  195. font.setBold(False)
  196. font.setWeight(50)
  197. self.label_4.setFont(font)
  198. self.label_4.setObjectName("label_4")
  199. self.horizontalLayout_6.addWidget(self.label_4)
  200. self.lineEdit_notify_three_axis = QtWidgets.QLineEdit(self.groupBox_2)
  201. font = QtGui.QFont()
  202. font.setFamily("SimSun")
  203. font.setPointSize(9)
  204. font.setBold(False)
  205. font.setWeight(50)
  206. self.lineEdit_notify_three_axis.setFont(font)
  207. self.lineEdit_notify_three_axis.setStyleSheet("background-color: rgb(255, 255, 255);")
  208. self.lineEdit_notify_three_axis.setText("")
  209. self.lineEdit_notify_three_axis.setObjectName("lineEdit_notify_three_axis")
  210. self.horizontalLayout_6.addWidget(self.lineEdit_notify_three_axis)
  211. self.horizontalLayout_6.setStretch(0, 1)
  212. self.horizontalLayout_6.setStretch(1, 2)
  213. self.verticalLayout_2.addLayout(self.horizontalLayout_6)
  214. self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
  215. self.horizontalLayout_14.setObjectName("horizontalLayout_14")
  216. self.label_13 = QtWidgets.QLabel(self.groupBox_2)
  217. font = QtGui.QFont()
  218. font.setFamily("幼圆")
  219. font.setPointSize(9)
  220. font.setBold(False)
  221. font.setWeight(50)
  222. self.label_13.setFont(font)
  223. self.label_13.setObjectName("label_13")
  224. self.horizontalLayout_14.addWidget(self.label_13)
  225. self.lineEdit_notify_three_axis_5 = QtWidgets.QLineEdit(self.groupBox_2)
  226. font = QtGui.QFont()
  227. font.setFamily("SimSun")
  228. font.setPointSize(9)
  229. font.setBold(False)
  230. font.setWeight(50)
  231. self.lineEdit_notify_three_axis_5.setFont(font)
  232. self.lineEdit_notify_three_axis_5.setStyleSheet("background-color: rgb(255, 255, 255);")
  233. self.lineEdit_notify_three_axis_5.setText("")
  234. self.lineEdit_notify_three_axis_5.setObjectName("lineEdit_notify_three_axis_5")
  235. self.horizontalLayout_14.addWidget(self.lineEdit_notify_three_axis_5)
  236. self.horizontalLayout_14.setStretch(0, 1)
  237. self.horizontalLayout_14.setStretch(1, 2)
  238. self.verticalLayout_2.addLayout(self.horizontalLayout_14)
  239. self.verticalLayout_3.addWidget(self.groupBox_2)
  240. self.groupBox_3 = QtWidgets.QGroupBox(self.tab_1)
  241. font = QtGui.QFont()
  242. font.setFamily("幼圆")
  243. font.setPointSize(10)
  244. font.setBold(True)
  245. font.setWeight(75)
  246. self.groupBox_3.setFont(font)
  247. self.groupBox_3.setCheckable(True)
  248. self.groupBox_3.setChecked(False)
  249. self.groupBox_3.setObjectName("groupBox_3")
  250. self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.groupBox_3)
  251. self.horizontalLayout_9.setObjectName("horizontalLayout_9")
  252. self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
  253. self.horizontalLayout_2.setObjectName("horizontalLayout_2")
  254. self.label_5 = QtWidgets.QLabel(self.groupBox_3)
  255. font = QtGui.QFont()
  256. font.setFamily("幼圆")
  257. font.setPointSize(9)
  258. font.setBold(False)
  259. font.setWeight(50)
  260. self.label_5.setFont(font)
  261. self.label_5.setObjectName("label_5")
  262. self.horizontalLayout_2.addWidget(self.label_5)
  263. self.lineEdit_mac_blepro = QtWidgets.QLineEdit(self.groupBox_3)
  264. font = QtGui.QFont()
  265. font.setFamily("SimSun")
  266. font.setPointSize(9)
  267. font.setBold(False)
  268. font.setWeight(50)
  269. self.lineEdit_mac_blepro.setFont(font)
  270. self.lineEdit_mac_blepro.setStyleSheet("background-color: rgb(255, 255, 255);")
  271. self.lineEdit_mac_blepro.setObjectName("lineEdit_mac_blepro")
  272. self.horizontalLayout_2.addWidget(self.lineEdit_mac_blepro)
  273. self.horizontalLayout_2.setStretch(0, 1)
  274. self.horizontalLayout_2.setStretch(1, 2)
  275. self.horizontalLayout_9.addLayout(self.horizontalLayout_2)
  276. self.verticalLayout_3.addWidget(self.groupBox_3)
  277. self.groupBox_4 = QtWidgets.QGroupBox(self.tab_1)
  278. self.groupBox_4.setEnabled(True)
  279. self.groupBox_4.setBaseSize(QtCore.QSize(0, 0))
  280. font = QtGui.QFont()
  281. font.setFamily("幼圆")
  282. font.setPointSize(10)
  283. font.setBold(True)
  284. font.setWeight(75)
  285. self.groupBox_4.setFont(font)
  286. self.groupBox_4.setLayoutDirection(QtCore.Qt.LeftToRight)
  287. self.groupBox_4.setAutoFillBackground(False)
  288. self.groupBox_4.setCheckable(True)
  289. self.groupBox_4.setChecked(False)
  290. self.groupBox_4.setObjectName("groupBox_4")
  291. self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.groupBox_4)
  292. self.horizontalLayout_10.setObjectName("horizontalLayout_10")
  293. self.verticalLayout = QtWidgets.QVBoxLayout()
  294. self.verticalLayout.setObjectName("verticalLayout")
  295. self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
  296. self.horizontalLayout_3.setObjectName("horizontalLayout_3")
  297. self.label_7 = QtWidgets.QLabel(self.groupBox_4)
  298. font = QtGui.QFont()
  299. font.setFamily("幼圆")
  300. font.setPointSize(9)
  301. font.setBold(False)
  302. font.setWeight(50)
  303. self.label_7.setFont(font)
  304. self.label_7.setObjectName("label_7")
  305. self.horizontalLayout_3.addWidget(self.label_7)
  306. self.lineEdit_COM = QtWidgets.QLineEdit(self.groupBox_4)
  307. font = QtGui.QFont()
  308. font.setFamily("SimSun")
  309. font.setPointSize(9)
  310. font.setBold(False)
  311. font.setWeight(50)
  312. self.lineEdit_COM.setFont(font)
  313. self.lineEdit_COM.setStyleSheet("background-color: rgb(255, 255, 255);")
  314. self.lineEdit_COM.setObjectName("lineEdit_COM")
  315. self.horizontalLayout_3.addWidget(self.lineEdit_COM)
  316. self.horizontalLayout_3.setStretch(0, 1)
  317. self.horizontalLayout_3.setStretch(1, 2)
  318. self.verticalLayout.addLayout(self.horizontalLayout_3)
  319. self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
  320. self.horizontalLayout_4.setObjectName("horizontalLayout_4")
  321. self.label_8 = QtWidgets.QLabel(self.groupBox_4)
  322. font = QtGui.QFont()
  323. font.setFamily("幼圆")
  324. font.setPointSize(9)
  325. font.setBold(False)
  326. font.setWeight(50)
  327. self.label_8.setFont(font)
  328. self.label_8.setObjectName("label_8")
  329. self.horizontalLayout_4.addWidget(self.label_8)
  330. self.lineEdit_baud_rate = QtWidgets.QLineEdit(self.groupBox_4)
  331. font = QtGui.QFont()
  332. font.setFamily("SimSun")
  333. font.setPointSize(9)
  334. font.setBold(False)
  335. font.setWeight(50)
  336. self.lineEdit_baud_rate.setFont(font)
  337. self.lineEdit_baud_rate.setStyleSheet("background-color: rgb(255, 255, 255);")
  338. self.lineEdit_baud_rate.setText("")
  339. self.lineEdit_baud_rate.setObjectName("lineEdit_baud_rate")
  340. self.horizontalLayout_4.addWidget(self.lineEdit_baud_rate)
  341. self.horizontalLayout_4.setStretch(0, 1)
  342. self.horizontalLayout_4.setStretch(1, 2)
  343. self.verticalLayout.addLayout(self.horizontalLayout_4)
  344. self.verticalLayout.setStretch(0, 2)
  345. self.verticalLayout.setStretch(1, 3)
  346. self.horizontalLayout_10.addLayout(self.verticalLayout)
  347. self.verticalLayout_3.addWidget(self.groupBox_4)
  348. self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
  349. self.horizontalLayout_7.setObjectName("horizontalLayout_7")
  350. spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
  351. self.horizontalLayout_7.addItem(spacerItem)
  352. self.pushButton_4 = QtWidgets.QPushButton(self.tab_1)
  353. font = QtGui.QFont()
  354. font.setPointSize(11)
  355. font.setBold(True)
  356. font.setWeight(75)
  357. font.setStyleStrategy(QtGui.QFont.PreferDefault)
  358. self.pushButton_4.setFont(font)
  359. self.pushButton_4.setToolTipDuration(-1)
  360. self.pushButton_4.setAutoFillBackground(False)
  361. self.pushButton_4.setInputMethodHints(QtCore.Qt.ImhNone)
  362. self.pushButton_4.setCheckable(False)
  363. self.pushButton_4.setObjectName("pushButton_4")
  364. self.horizontalLayout_7.addWidget(self.pushButton_4)
  365. spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
  366. self.horizontalLayout_7.addItem(spacerItem1)
  367. self.pushButton = QtWidgets.QPushButton(self.tab_1)
  368. self.pushButton.setEnabled(False)
  369. font = QtGui.QFont()
  370. font.setPointSize(11)
  371. font.setBold(True)
  372. font.setWeight(75)
  373. self.pushButton.setFont(font)
  374. self.pushButton.setObjectName("pushButton")
  375. self.horizontalLayout_7.addWidget(self.pushButton)
  376. spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
  377. self.horizontalLayout_7.addItem(spacerItem2)
  378. self.verticalLayout_3.addLayout(self.horizontalLayout_7)
  379. self.verticalLayout_3.setStretch(0, 1)
  380. self.verticalLayout_3.setStretch(1, 1)
  381. self.verticalLayout_3.setStretch(2, 1)
  382. self.verticalLayout_3.setStretch(3, 1)
  383. self.verticalLayout_3.setStretch(4, 1)
  384. self.horizontalLayout_11.addLayout(self.verticalLayout_3)
  385. self.groupBox_5 = QtWidgets.QGroupBox(self.tab_1)
  386. font = QtGui.QFont()
  387. font.setPointSize(11)
  388. font.setBold(False)
  389. font.setWeight(50)
  390. self.groupBox_5.setFont(font)
  391. self.groupBox_5.setObjectName("groupBox_5")
  392. self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_5)
  393. self.verticalLayout_4.setContentsMargins(-1, 2, -1, -1)
  394. self.verticalLayout_4.setSpacing(7)
  395. self.verticalLayout_4.setObjectName("verticalLayout_4")
  396. self.textBrowser = QtWidgets.QTextBrowser(self.groupBox_5)
  397. self.textBrowser.setEnabled(True)
  398. font = QtGui.QFont()
  399. font.setStyleStrategy(QtGui.QFont.PreferDefault)
  400. self.textBrowser.setFont(font)
  401. self.textBrowser.setStyleSheet("background-color: rgb(255, 255, 255);")
  402. self.textBrowser.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustIgnored)
  403. self.textBrowser.setOpenExternalLinks(True)
  404. self.textBrowser.setObjectName("textBrowser")
  405. self.verticalLayout_4.addWidget(self.textBrowser)
  406. self.horizontalLayout_11.addWidget(self.groupBox_5)
  407. self.horizontalLayout_11.setStretch(0, 1)
  408. self.horizontalLayout_11.setStretch(1, 2)
  409. self.verticalLayout_5.addLayout(self.horizontalLayout_11)
  410. self.tabWidget.addTab(self.tab_1, "")
  411. self.tab_2 = QtWidgets.QWidget()
  412. self.tab_2.setObjectName("tab_2")
  413. self.horizontalLayout_37 = QtWidgets.QHBoxLayout(self.tab_2)
  414. self.horizontalLayout_37.setObjectName("horizontalLayout_37")
  415. self.horizontalLayout_36 = QtWidgets.QHBoxLayout()
  416. self.horizontalLayout_36.setObjectName("horizontalLayout_36")
  417. self.verticalLayout_17 = QtWidgets.QVBoxLayout()
  418. self.verticalLayout_17.setObjectName("verticalLayout_17")
  419. self.groupBox_7 = QtWidgets.QGroupBox(self.tab_2)
  420. font = QtGui.QFont()
  421. font.setFamily("幼圆")
  422. font.setPointSize(10)
  423. font.setBold(True)
  424. font.setWeight(75)
  425. self.groupBox_7.setFont(font)
  426. self.groupBox_7.setCheckable(True)
  427. self.groupBox_7.setChecked(False)
  428. self.groupBox_7.setObjectName("groupBox_7")
  429. self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_7)
  430. self.verticalLayout_7.setObjectName("verticalLayout_7")
  431. self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
  432. self.horizontalLayout_12.setObjectName("horizontalLayout_12")
  433. self.label_6 = QtWidgets.QLabel(self.groupBox_7)
  434. font = QtGui.QFont()
  435. font.setFamily("幼圆")
  436. font.setPointSize(9)
  437. font.setBold(False)
  438. font.setWeight(50)
  439. self.label_6.setFont(font)
  440. self.label_6.setObjectName("label_6")
  441. self.horizontalLayout_12.addWidget(self.label_6)
  442. self.lineEdit_mac_three_axis_2 = QtWidgets.QLineEdit(self.groupBox_7)
  443. font = QtGui.QFont()
  444. font.setFamily("幼圆")
  445. font.setPointSize(9)
  446. font.setBold(False)
  447. font.setWeight(50)
  448. self.lineEdit_mac_three_axis_2.setFont(font)
  449. self.lineEdit_mac_three_axis_2.setStyleSheet("background-color: rgb(255, 255, 255);")
  450. self.lineEdit_mac_three_axis_2.setObjectName("lineEdit_mac_three_axis_2")
  451. self.horizontalLayout_12.addWidget(self.lineEdit_mac_three_axis_2)
  452. self.horizontalLayout_12.setStretch(0, 4)
  453. self.horizontalLayout_12.setStretch(1, 7)
  454. self.verticalLayout_7.addLayout(self.horizontalLayout_12)
  455. self.horizontalLayout_13 = QtWidgets.QHBoxLayout()
  456. self.horizontalLayout_13.setObjectName("horizontalLayout_13")
  457. self.label_9 = QtWidgets.QLabel(self.groupBox_7)
  458. font = QtGui.QFont()
  459. font.setFamily("幼圆")
  460. font.setPointSize(9)
  461. font.setBold(False)
  462. font.setWeight(50)
  463. self.label_9.setFont(font)
  464. self.label_9.setObjectName("label_9")
  465. self.horizontalLayout_13.addWidget(self.label_9)
  466. self.lineEdit_notify_three_axis_2 = QtWidgets.QLineEdit(self.groupBox_7)
  467. font = QtGui.QFont()
  468. font.setFamily("幼圆")
  469. font.setPointSize(9)
  470. font.setBold(False)
  471. font.setWeight(50)
  472. self.lineEdit_notify_three_axis_2.setFont(font)
  473. self.lineEdit_notify_three_axis_2.setStyleSheet("background-color: rgb(255, 255, 255);")
  474. self.lineEdit_notify_three_axis_2.setText("")
  475. self.lineEdit_notify_three_axis_2.setObjectName("lineEdit_notify_three_axis_2")
  476. self.horizontalLayout_13.addWidget(self.lineEdit_notify_three_axis_2)
  477. self.horizontalLayout_13.setStretch(0, 4)
  478. self.horizontalLayout_13.setStretch(1, 7)
  479. self.verticalLayout_7.addLayout(self.horizontalLayout_13)
  480. self.horizontalLayout_15 = QtWidgets.QHBoxLayout()
  481. self.horizontalLayout_15.setObjectName("horizontalLayout_15")
  482. self.label_12 = QtWidgets.QLabel(self.groupBox_7)
  483. font = QtGui.QFont()
  484. font.setFamily("幼圆")
  485. font.setPointSize(9)
  486. font.setBold(False)
  487. font.setWeight(50)
  488. self.label_12.setFont(font)
  489. self.label_12.setObjectName("label_12")
  490. self.horizontalLayout_15.addWidget(self.label_12)
  491. self.lineEdit_notify_three_axis_4 = QtWidgets.QLineEdit(self.groupBox_7)
  492. font = QtGui.QFont()
  493. font.setFamily("幼圆")
  494. font.setPointSize(9)
  495. font.setBold(False)
  496. font.setWeight(50)
  497. self.lineEdit_notify_three_axis_4.setFont(font)
  498. self.lineEdit_notify_three_axis_4.setStyleSheet("background-color: rgb(255, 255, 255);")
  499. self.lineEdit_notify_three_axis_4.setText("")
  500. self.lineEdit_notify_three_axis_4.setObjectName("lineEdit_notify_three_axis_4")
  501. self.horizontalLayout_15.addWidget(self.lineEdit_notify_three_axis_4)
  502. self.horizontalLayout_15.setStretch(0, 4)
  503. self.horizontalLayout_15.setStretch(1, 7)
  504. self.verticalLayout_7.addLayout(self.horizontalLayout_15)
  505. self.horizontalLayout_16 = QtWidgets.QHBoxLayout()
  506. self.horizontalLayout_16.setObjectName("horizontalLayout_16")
  507. self.label_16 = QtWidgets.QLabel(self.groupBox_7)
  508. font = QtGui.QFont()
  509. font.setFamily("幼圆")
  510. font.setPointSize(9)
  511. font.setBold(False)
  512. font.setWeight(50)
  513. self.label_16.setFont(font)
  514. self.label_16.setObjectName("label_16")
  515. self.horizontalLayout_16.addWidget(self.label_16)
  516. self.lineEdit_notify_three_axis_7 = QtWidgets.QLineEdit(self.groupBox_7)
  517. font = QtGui.QFont()
  518. font.setFamily("幼圆")
  519. font.setPointSize(9)
  520. font.setBold(False)
  521. font.setWeight(50)
  522. self.lineEdit_notify_three_axis_7.setFont(font)
  523. self.lineEdit_notify_three_axis_7.setStyleSheet("background-color: rgb(255, 255, 255);")
  524. self.lineEdit_notify_three_axis_7.setText("")
  525. self.lineEdit_notify_three_axis_7.setObjectName("lineEdit_notify_three_axis_7")
  526. self.horizontalLayout_16.addWidget(self.lineEdit_notify_three_axis_7)
  527. self.horizontalLayout_16.setStretch(0, 4)
  528. self.horizontalLayout_16.setStretch(1, 7)
  529. self.verticalLayout_7.addLayout(self.horizontalLayout_16)
  530. self.verticalLayout_17.addWidget(self.groupBox_7)
  531. self.groupBox_8 = QtWidgets.QGroupBox(self.tab_2)
  532. font = QtGui.QFont()
  533. font.setFamily("幼圆")
  534. font.setPointSize(10)
  535. font.setBold(True)
  536. font.setWeight(75)
  537. self.groupBox_8.setFont(font)
  538. self.groupBox_8.setCheckable(True)
  539. self.groupBox_8.setChecked(False)
  540. self.groupBox_8.setObjectName("groupBox_8")
  541. self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.groupBox_8)
  542. self.verticalLayout_8.setObjectName("verticalLayout_8")
  543. self.horizontalLayout_17 = QtWidgets.QHBoxLayout()
  544. self.horizontalLayout_17.setObjectName("horizontalLayout_17")
  545. self.label_10 = QtWidgets.QLabel(self.groupBox_8)
  546. font = QtGui.QFont()
  547. font.setFamily("幼圆")
  548. font.setPointSize(9)
  549. font.setBold(False)
  550. font.setWeight(50)
  551. self.label_10.setFont(font)
  552. self.label_10.setObjectName("label_10")
  553. self.horizontalLayout_17.addWidget(self.label_10)
  554. self.lineEdit_mac_three_axis_3 = QtWidgets.QLineEdit(self.groupBox_8)
  555. font = QtGui.QFont()
  556. font.setFamily("幼圆")
  557. font.setPointSize(9)
  558. font.setBold(False)
  559. font.setWeight(50)
  560. self.lineEdit_mac_three_axis_3.setFont(font)
  561. self.lineEdit_mac_three_axis_3.setStyleSheet("background-color: rgb(255, 255, 255);")
  562. self.lineEdit_mac_three_axis_3.setObjectName("lineEdit_mac_three_axis_3")
  563. self.horizontalLayout_17.addWidget(self.lineEdit_mac_three_axis_3)
  564. self.horizontalLayout_17.setStretch(0, 4)
  565. self.horizontalLayout_17.setStretch(1, 7)
  566. self.verticalLayout_8.addLayout(self.horizontalLayout_17)
  567. self.horizontalLayout_18 = QtWidgets.QHBoxLayout()
  568. self.horizontalLayout_18.setObjectName("horizontalLayout_18")
  569. self.label_11 = QtWidgets.QLabel(self.groupBox_8)
  570. font = QtGui.QFont()
  571. font.setFamily("幼圆")
  572. font.setPointSize(9)
  573. font.setBold(False)
  574. font.setWeight(50)
  575. self.label_11.setFont(font)
  576. self.label_11.setObjectName("label_11")
  577. self.horizontalLayout_18.addWidget(self.label_11)
  578. self.lineEdit_notify_three_axis_3 = QtWidgets.QLineEdit(self.groupBox_8)
  579. font = QtGui.QFont()
  580. font.setFamily("幼圆")
  581. font.setPointSize(9)
  582. font.setBold(False)
  583. font.setWeight(50)
  584. self.lineEdit_notify_three_axis_3.setFont(font)
  585. self.lineEdit_notify_three_axis_3.setStyleSheet("background-color: rgb(255, 255, 255);")
  586. self.lineEdit_notify_three_axis_3.setText("")
  587. self.lineEdit_notify_three_axis_3.setObjectName("lineEdit_notify_three_axis_3")
  588. self.horizontalLayout_18.addWidget(self.lineEdit_notify_three_axis_3)
  589. self.horizontalLayout_18.setStretch(0, 4)
  590. self.horizontalLayout_18.setStretch(1, 7)
  591. self.verticalLayout_8.addLayout(self.horizontalLayout_18)
  592. self.verticalLayout_17.addWidget(self.groupBox_8)
  593. self.groupBox_11 = QtWidgets.QGroupBox(self.tab_2)
  594. self.groupBox_11.setEnabled(True)
  595. self.groupBox_11.setBaseSize(QtCore.QSize(0, 0))
  596. font = QtGui.QFont()
  597. font.setFamily("幼圆")
  598. font.setPointSize(10)
  599. font.setBold(True)
  600. font.setWeight(75)
  601. self.groupBox_11.setFont(font)
  602. self.groupBox_11.setLayoutDirection(QtCore.Qt.LeftToRight)
  603. self.groupBox_11.setAutoFillBackground(False)
  604. self.groupBox_11.setCheckable(True)
  605. self.groupBox_11.setChecked(False)
  606. self.groupBox_11.setObjectName("groupBox_11")
  607. self.horizontalLayout_22 = QtWidgets.QHBoxLayout(self.groupBox_11)
  608. self.horizontalLayout_22.setObjectName("horizontalLayout_22")
  609. self.verticalLayout_6 = QtWidgets.QVBoxLayout()
  610. self.verticalLayout_6.setObjectName("verticalLayout_6")
  611. self.horizontalLayout_35 = QtWidgets.QHBoxLayout()
  612. self.horizontalLayout_35.setObjectName("horizontalLayout_35")
  613. self.label_22 = QtWidgets.QLabel(self.groupBox_11)
  614. font = QtGui.QFont()
  615. font.setFamily("幼圆")
  616. font.setPointSize(9)
  617. font.setBold(False)
  618. font.setWeight(50)
  619. self.label_22.setFont(font)
  620. self.label_22.setObjectName("label_22")
  621. self.horizontalLayout_35.addWidget(self.label_22)
  622. self.lineEdit_mac_three_axis_4 = QtWidgets.QLineEdit(self.groupBox_11)
  623. font = QtGui.QFont()
  624. font.setFamily("幼圆")
  625. font.setPointSize(9)
  626. font.setBold(False)
  627. font.setWeight(50)
  628. self.lineEdit_mac_three_axis_4.setFont(font)
  629. self.lineEdit_mac_three_axis_4.setStyleSheet("background-color: rgb(255, 255, 255);")
  630. self.lineEdit_mac_three_axis_4.setObjectName("lineEdit_mac_three_axis_4")
  631. self.horizontalLayout_35.addWidget(self.lineEdit_mac_three_axis_4)
  632. self.horizontalLayout_35.setStretch(0, 4)
  633. self.horizontalLayout_35.setStretch(1, 7)
  634. self.verticalLayout_6.addLayout(self.horizontalLayout_35)
  635. self.horizontalLayout_23 = QtWidgets.QHBoxLayout()
  636. self.horizontalLayout_23.setObjectName("horizontalLayout_23")
  637. self.label_20 = QtWidgets.QLabel(self.groupBox_11)
  638. font = QtGui.QFont()
  639. font.setFamily("幼圆")
  640. font.setPointSize(9)
  641. font.setBold(False)
  642. font.setWeight(50)
  643. self.label_20.setFont(font)
  644. self.label_20.setObjectName("label_20")
  645. self.horizontalLayout_23.addWidget(self.label_20)
  646. self.lineEdit_COM_2 = QtWidgets.QLineEdit(self.groupBox_11)
  647. font = QtGui.QFont()
  648. font.setFamily("SimSun")
  649. font.setPointSize(9)
  650. font.setBold(False)
  651. font.setWeight(50)
  652. self.lineEdit_COM_2.setFont(font)
  653. self.lineEdit_COM_2.setStyleSheet("background-color: rgb(255, 255, 255);")
  654. self.lineEdit_COM_2.setObjectName("lineEdit_COM_2")
  655. self.horizontalLayout_23.addWidget(self.lineEdit_COM_2)
  656. self.horizontalLayout_23.setStretch(0, 4)
  657. self.horizontalLayout_23.setStretch(1, 7)
  658. self.verticalLayout_6.addLayout(self.horizontalLayout_23)
  659. self.horizontalLayout_34 = QtWidgets.QHBoxLayout()
  660. self.horizontalLayout_34.setObjectName("horizontalLayout_34")
  661. self.label_21 = QtWidgets.QLabel(self.groupBox_11)
  662. font = QtGui.QFont()
  663. font.setFamily("幼圆")
  664. font.setPointSize(9)
  665. font.setBold(False)
  666. font.setWeight(50)
  667. self.label_21.setFont(font)
  668. self.label_21.setObjectName("label_21")
  669. self.horizontalLayout_34.addWidget(self.label_21)
  670. self.lineEdit_baud_rate_2 = QtWidgets.QLineEdit(self.groupBox_11)
  671. font = QtGui.QFont()
  672. font.setFamily("SimSun")
  673. font.setPointSize(9)
  674. font.setBold(False)
  675. font.setWeight(50)
  676. self.lineEdit_baud_rate_2.setFont(font)
  677. self.lineEdit_baud_rate_2.setStyleSheet("background-color: rgb(255, 255, 255);")
  678. self.lineEdit_baud_rate_2.setText("")
  679. self.lineEdit_baud_rate_2.setObjectName("lineEdit_baud_rate_2")
  680. self.horizontalLayout_34.addWidget(self.lineEdit_baud_rate_2)
  681. self.horizontalLayout_34.setStretch(0, 4)
  682. self.horizontalLayout_34.setStretch(1, 7)
  683. self.verticalLayout_6.addLayout(self.horizontalLayout_34)
  684. self.horizontalLayout_22.addLayout(self.verticalLayout_6)
  685. self.verticalLayout_17.addWidget(self.groupBox_11)
  686. self.horizontalLayout_19 = QtWidgets.QHBoxLayout()
  687. self.horizontalLayout_19.setObjectName("horizontalLayout_19")
  688. spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
  689. self.horizontalLayout_19.addItem(spacerItem3)
  690. self.pushButton_5 = QtWidgets.QPushButton(self.tab_2)
  691. font = QtGui.QFont()
  692. font.setPointSize(11)
  693. font.setBold(True)
  694. font.setWeight(75)
  695. font.setStyleStrategy(QtGui.QFont.PreferDefault)
  696. self.pushButton_5.setFont(font)
  697. self.pushButton_5.setToolTipDuration(-1)
  698. self.pushButton_5.setAutoFillBackground(False)
  699. self.pushButton_5.setInputMethodHints(QtCore.Qt.ImhNone)
  700. self.pushButton_5.setCheckable(False)
  701. self.pushButton_5.setObjectName("pushButton_5")
  702. self.horizontalLayout_19.addWidget(self.pushButton_5)
  703. spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
  704. self.horizontalLayout_19.addItem(spacerItem4)
  705. self.verticalLayout_17.addLayout(self.horizontalLayout_19)
  706. self.horizontalLayout_36.addLayout(self.verticalLayout_17)
  707. self.groupBox_6 = QtWidgets.QGroupBox(self.tab_2)
  708. font = QtGui.QFont()
  709. font.setPointSize(11)
  710. font.setBold(False)
  711. font.setWeight(50)
  712. self.groupBox_6.setFont(font)
  713. self.groupBox_6.setObjectName("groupBox_6")
  714. self.horizontalLayout_21 = QtWidgets.QHBoxLayout(self.groupBox_6)
  715. self.horizontalLayout_21.setContentsMargins(-1, 2, -1, -1)
  716. self.horizontalLayout_21.setObjectName("horizontalLayout_21")
  717. self.textBrowser_2 = QtWidgets.QTextBrowser(self.groupBox_6)
  718. self.textBrowser_2.setStyleSheet("background-color: rgb(255, 255, 255);")
  719. self.textBrowser_2.setTabChangesFocus(False)
  720. self.textBrowser_2.setUndoRedoEnabled(False)
  721. self.textBrowser_2.setOpenExternalLinks(False)
  722. self.textBrowser_2.setObjectName("textBrowser_2")
  723. self.horizontalLayout_21.addWidget(self.textBrowser_2)
  724. self.horizontalLayout_36.addWidget(self.groupBox_6)
  725. self.horizontalLayout_36.setStretch(0, 1)
  726. self.horizontalLayout_36.setStretch(1, 2)
  727. self.horizontalLayout_37.addLayout(self.horizontalLayout_36)
  728. self.tabWidget.addTab(self.tab_2, "")
  729. self.tab = QtWidgets.QWidget()
  730. self.tab.setObjectName("tab")
  731. self.horizontalLayout_38 = QtWidgets.QHBoxLayout(self.tab)
  732. self.horizontalLayout_38.setObjectName("horizontalLayout_38")
  733. self.horizontalLayout_31 = QtWidgets.QHBoxLayout()
  734. self.horizontalLayout_31.setObjectName("horizontalLayout_31")
  735. self.verticalLayout_16 = QtWidgets.QVBoxLayout()
  736. self.verticalLayout_16.setObjectName("verticalLayout_16")
  737. self.groupBox_9 = QtWidgets.QGroupBox(self.tab)
  738. font = QtGui.QFont()
  739. font.setFamily("幼圆")
  740. font.setPointSize(10)
  741. font.setBold(True)
  742. font.setWeight(75)
  743. self.groupBox_9.setFont(font)
  744. self.groupBox_9.setCheckable(True)
  745. self.groupBox_9.setChecked(False)
  746. self.groupBox_9.setObjectName("groupBox_9")
  747. self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.groupBox_9)
  748. self.verticalLayout_9.setObjectName("verticalLayout_9")
  749. self.horizontalLayout_24 = QtWidgets.QHBoxLayout()
  750. self.horizontalLayout_24.setObjectName("horizontalLayout_24")
  751. self.label_17 = QtWidgets.QLabel(self.groupBox_9)
  752. font = QtGui.QFont()
  753. font.setFamily("幼圆")
  754. font.setPointSize(9)
  755. font.setBold(False)
  756. font.setItalic(False)
  757. font.setUnderline(False)
  758. font.setWeight(50)
  759. self.label_17.setFont(font)
  760. self.label_17.setObjectName("label_17")
  761. self.horizontalLayout_24.addWidget(self.label_17)
  762. self.lineEdit_MqttTopic_2 = QtWidgets.QLineEdit(self.groupBox_9)
  763. font = QtGui.QFont()
  764. font.setFamily("幼圆")
  765. font.setPointSize(9)
  766. font.setBold(False)
  767. font.setItalic(False)
  768. font.setUnderline(False)
  769. font.setWeight(50)
  770. self.lineEdit_MqttTopic_2.setFont(font)
  771. self.lineEdit_MqttTopic_2.setStyleSheet("background-color: rgb(255, 255, 255);")
  772. self.lineEdit_MqttTopic_2.setObjectName("lineEdit_MqttTopic_2")
  773. self.horizontalLayout_24.addWidget(self.lineEdit_MqttTopic_2)
  774. self.horizontalLayout_24.setStretch(0, 1)
  775. self.horizontalLayout_24.setStretch(1, 2)
  776. self.verticalLayout_9.addLayout(self.horizontalLayout_24)
  777. self.verticalLayout_16.addWidget(self.groupBox_9)
  778. self.groupBox_12 = QtWidgets.QGroupBox(self.tab)
  779. font = QtGui.QFont()
  780. font.setFamily("幼圆")
  781. font.setPointSize(10)
  782. font.setBold(True)
  783. font.setWeight(75)
  784. self.groupBox_12.setFont(font)
  785. self.groupBox_12.setCheckable(True)
  786. self.groupBox_12.setChecked(False)
  787. self.groupBox_12.setObjectName("groupBox_12")
  788. self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.groupBox_12)
  789. self.verticalLayout_10.setObjectName("verticalLayout_10")
  790. self.horizontalLayout_25 = QtWidgets.QHBoxLayout()
  791. self.horizontalLayout_25.setObjectName("horizontalLayout_25")
  792. self.label_18 = QtWidgets.QLabel(self.groupBox_12)
  793. font = QtGui.QFont()
  794. font.setFamily("幼圆")
  795. font.setPointSize(9)
  796. font.setBold(False)
  797. font.setItalic(False)
  798. font.setUnderline(False)
  799. font.setWeight(50)
  800. self.label_18.setFont(font)
  801. self.label_18.setObjectName("label_18")
  802. self.horizontalLayout_25.addWidget(self.label_18)
  803. self.lineEdit_MqttTopic_3 = QtWidgets.QLineEdit(self.groupBox_12)
  804. font = QtGui.QFont()
  805. font.setFamily("幼圆")
  806. font.setPointSize(9)
  807. font.setBold(False)
  808. font.setItalic(False)
  809. font.setUnderline(False)
  810. font.setWeight(50)
  811. self.lineEdit_MqttTopic_3.setFont(font)
  812. self.lineEdit_MqttTopic_3.setStyleSheet("background-color: rgb(255, 255, 255);")
  813. self.lineEdit_MqttTopic_3.setObjectName("lineEdit_MqttTopic_3")
  814. self.horizontalLayout_25.addWidget(self.lineEdit_MqttTopic_3)
  815. self.horizontalLayout_25.setStretch(0, 1)
  816. self.horizontalLayout_25.setStretch(1, 2)
  817. self.verticalLayout_10.addLayout(self.horizontalLayout_25)
  818. self.verticalLayout_16.addWidget(self.groupBox_12)
  819. self.groupBox_13 = QtWidgets.QGroupBox(self.tab)
  820. font = QtGui.QFont()
  821. font.setFamily("幼圆")
  822. font.setPointSize(10)
  823. font.setBold(True)
  824. font.setWeight(75)
  825. self.groupBox_13.setFont(font)
  826. self.groupBox_13.setCheckable(True)
  827. self.groupBox_13.setChecked(False)
  828. self.groupBox_13.setObjectName("groupBox_13")
  829. self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.groupBox_13)
  830. self.verticalLayout_11.setObjectName("verticalLayout_11")
  831. self.horizontalLayout_26 = QtWidgets.QHBoxLayout()
  832. self.horizontalLayout_26.setObjectName("horizontalLayout_26")
  833. self.label_19 = QtWidgets.QLabel(self.groupBox_13)
  834. font = QtGui.QFont()
  835. font.setFamily("幼圆")
  836. font.setPointSize(9)
  837. font.setBold(False)
  838. font.setItalic(False)
  839. font.setUnderline(False)
  840. font.setWeight(50)
  841. self.label_19.setFont(font)
  842. self.label_19.setObjectName("label_19")
  843. self.horizontalLayout_26.addWidget(self.label_19)
  844. self.lineEdit_MqttTopic_4 = QtWidgets.QLineEdit(self.groupBox_13)
  845. font = QtGui.QFont()
  846. font.setFamily("幼圆")
  847. font.setPointSize(9)
  848. font.setBold(False)
  849. font.setItalic(False)
  850. font.setUnderline(False)
  851. font.setWeight(50)
  852. self.lineEdit_MqttTopic_4.setFont(font)
  853. self.lineEdit_MqttTopic_4.setStyleSheet("background-color: rgb(255, 255, 255);")
  854. self.lineEdit_MqttTopic_4.setObjectName("lineEdit_MqttTopic_4")
  855. self.horizontalLayout_26.addWidget(self.lineEdit_MqttTopic_4)
  856. self.horizontalLayout_26.setStretch(0, 1)
  857. self.horizontalLayout_26.setStretch(1, 2)
  858. self.verticalLayout_11.addLayout(self.horizontalLayout_26)
  859. self.verticalLayout_16.addWidget(self.groupBox_13)
  860. self.groupBox_14 = QtWidgets.QGroupBox(self.tab)
  861. font = QtGui.QFont()
  862. font.setFamily("幼圆")
  863. font.setPointSize(10)
  864. font.setBold(True)
  865. font.setWeight(75)
  866. self.groupBox_14.setFont(font)
  867. self.groupBox_14.setCheckable(True)
  868. self.groupBox_14.setChecked(False)
  869. self.groupBox_14.setObjectName("groupBox_14")
  870. self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.groupBox_14)
  871. self.verticalLayout_12.setObjectName("verticalLayout_12")
  872. self.horizontalLayout_27 = QtWidgets.QHBoxLayout()
  873. self.horizontalLayout_27.setObjectName("horizontalLayout_27")
  874. self.label_51 = QtWidgets.QLabel(self.groupBox_14)
  875. font = QtGui.QFont()
  876. font.setFamily("幼圆")
  877. font.setPointSize(9)
  878. font.setBold(False)
  879. font.setWeight(50)
  880. self.label_51.setFont(font)
  881. self.label_51.setObjectName("label_51")
  882. self.horizontalLayout_27.addWidget(self.label_51)
  883. self.lineEdit_mac_three_axis_11 = QtWidgets.QLineEdit(self.groupBox_14)
  884. font = QtGui.QFont()
  885. font.setFamily("幼圆")
  886. font.setPointSize(9)
  887. font.setBold(False)
  888. font.setWeight(50)
  889. self.lineEdit_mac_three_axis_11.setFont(font)
  890. self.lineEdit_mac_three_axis_11.setStyleSheet("background-color: rgb(255, 255, 255);")
  891. self.lineEdit_mac_three_axis_11.setObjectName("lineEdit_mac_three_axis_11")
  892. self.horizontalLayout_27.addWidget(self.lineEdit_mac_three_axis_11)
  893. self.horizontalLayout_27.setStretch(0, 1)
  894. self.horizontalLayout_27.setStretch(1, 2)
  895. self.verticalLayout_12.addLayout(self.horizontalLayout_27)
  896. self.verticalLayout_16.addWidget(self.groupBox_14)
  897. self.groupBox_15 = QtWidgets.QGroupBox(self.tab)
  898. font = QtGui.QFont()
  899. font.setFamily("幼圆")
  900. font.setPointSize(10)
  901. font.setBold(True)
  902. font.setWeight(75)
  903. self.groupBox_15.setFont(font)
  904. self.groupBox_15.setCheckable(True)
  905. self.groupBox_15.setChecked(False)
  906. self.groupBox_15.setObjectName("groupBox_15")
  907. self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.groupBox_15)
  908. self.verticalLayout_13.setObjectName("verticalLayout_13")
  909. self.horizontalLayout_30 = QtWidgets.QHBoxLayout()
  910. self.horizontalLayout_30.setObjectName("horizontalLayout_30")
  911. self.label_52 = QtWidgets.QLabel(self.groupBox_15)
  912. font = QtGui.QFont()
  913. font.setFamily("幼圆")
  914. font.setPointSize(9)
  915. font.setBold(False)
  916. font.setWeight(50)
  917. self.label_52.setFont(font)
  918. self.label_52.setObjectName("label_52")
  919. self.horizontalLayout_30.addWidget(self.label_52)
  920. self.lineEdit_mac_three_axis_12 = QtWidgets.QLineEdit(self.groupBox_15)
  921. font = QtGui.QFont()
  922. font.setFamily("幼圆")
  923. font.setPointSize(9)
  924. font.setBold(False)
  925. font.setWeight(50)
  926. self.lineEdit_mac_three_axis_12.setFont(font)
  927. self.lineEdit_mac_three_axis_12.setStyleSheet("background-color: rgb(255, 255, 255);")
  928. self.lineEdit_mac_three_axis_12.setObjectName("lineEdit_mac_three_axis_12")
  929. self.horizontalLayout_30.addWidget(self.lineEdit_mac_three_axis_12)
  930. self.horizontalLayout_30.setStretch(0, 1)
  931. self.horizontalLayout_30.setStretch(1, 2)
  932. self.verticalLayout_13.addLayout(self.horizontalLayout_30)
  933. self.verticalLayout_16.addWidget(self.groupBox_15)
  934. self.horizontalLayout_28 = QtWidgets.QHBoxLayout()
  935. self.horizontalLayout_28.setObjectName("horizontalLayout_28")
  936. spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
  937. self.horizontalLayout_28.addItem(spacerItem5)
  938. self.pushButton_10 = QtWidgets.QPushButton(self.tab)
  939. font = QtGui.QFont()
  940. font.setPointSize(11)
  941. font.setBold(True)
  942. font.setWeight(75)
  943. font.setStyleStrategy(QtGui.QFont.PreferDefault)
  944. self.pushButton_10.setFont(font)
  945. self.pushButton_10.setToolTipDuration(-1)
  946. self.pushButton_10.setAutoFillBackground(False)
  947. self.pushButton_10.setInputMethodHints(QtCore.Qt.ImhNone)
  948. self.pushButton_10.setCheckable(False)
  949. self.pushButton_10.setObjectName("pushButton_10")
  950. self.horizontalLayout_28.addWidget(self.pushButton_10)
  951. spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
  952. self.horizontalLayout_28.addItem(spacerItem6)
  953. self.pushButton_2 = QtWidgets.QPushButton(self.tab)
  954. self.pushButton_2.setEnabled(False)
  955. font = QtGui.QFont()
  956. font.setPointSize(11)
  957. font.setBold(True)
  958. font.setWeight(75)
  959. self.pushButton_2.setFont(font)
  960. self.pushButton_2.setObjectName("pushButton_2")
  961. self.horizontalLayout_28.addWidget(self.pushButton_2)
  962. spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
  963. self.horizontalLayout_28.addItem(spacerItem7)
  964. self.verticalLayout_16.addLayout(self.horizontalLayout_28)
  965. self.horizontalLayout_31.addLayout(self.verticalLayout_16)
  966. self.groupBox_10 = QtWidgets.QGroupBox(self.tab)
  967. font = QtGui.QFont()
  968. font.setPointSize(11)
  969. font.setBold(False)
  970. font.setWeight(50)
  971. self.groupBox_10.setFont(font)
  972. self.groupBox_10.setObjectName("groupBox_10")
  973. self.horizontalLayout_29 = QtWidgets.QHBoxLayout(self.groupBox_10)
  974. self.horizontalLayout_29.setContentsMargins(-1, 2, -1, -1)
  975. self.horizontalLayout_29.setSpacing(7)
  976. self.horizontalLayout_29.setObjectName("horizontalLayout_29")
  977. self.textBrowser_3 = QtWidgets.QTextBrowser(self.groupBox_10)
  978. self.textBrowser_3.setStyleSheet("background-color: rgb(255, 255, 255);")
  979. self.textBrowser_3.setOpenExternalLinks(False)
  980. self.textBrowser_3.setObjectName("textBrowser_3")
  981. self.horizontalLayout_29.addWidget(self.textBrowser_3)
  982. self.horizontalLayout_31.addWidget(self.groupBox_10)
  983. self.horizontalLayout_31.setStretch(0, 1)
  984. self.horizontalLayout_31.setStretch(1, 2)
  985. self.horizontalLayout_38.addLayout(self.horizontalLayout_31)
  986. self.tabWidget.addTab(self.tab, "")
  987. self.tab_9 = QtWidgets.QWidget()
  988. self.tab_9.setObjectName("tab_9")
  989. self.verticalLayout_18 = QtWidgets.QVBoxLayout(self.tab_9)
  990. self.verticalLayout_18.setObjectName("verticalLayout_18")
  991. self.textEdit = QtWidgets.QTextEdit(self.tab_9)
  992. self.textEdit.setWhatsThis("")
  993. self.textEdit.setInputMethodHints(QtCore.Qt.ImhNone)
  994. self.textEdit.setUndoRedoEnabled(True)
  995. self.textEdit.setPlaceholderText("")
  996. self.textEdit.setObjectName("textEdit")
  997. self.verticalLayout_18.addWidget(self.textEdit)
  998. self.tabWidget.addTab(self.tab_9, "")
  999. self.horizontalLayout_20.addWidget(self.tabWidget)
  1000. MainWindow.setCentralWidget(self.centralwidget)
  1001. self.statusbar = QtWidgets.QStatusBar(MainWindow)
  1002. self.statusbar.setObjectName("statusbar")
  1003. MainWindow.setStatusBar(self.statusbar)
  1004. self.retranslateUi(MainWindow)
  1005. self.tabWidget.setCurrentIndex(0)
  1006. QtCore.QMetaObject.connectSlotsByName(MainWindow)
  1007. def retranslateUi(self, MainWindow):
  1008. _translate = QtCore.QCoreApplication.translate
  1009. MainWindow.setWindowTitle(_translate("MainWindow", "测试上位机"))
  1010. self.groupBox.setTitle(_translate("MainWindow", "丢包+广播精度"))
  1011. self.label_2.setText(_translate("MainWindow", "MQTT订阅主题:"))
  1012. self.lineEdit_MqttTopic.setPlaceholderText(_translate("MainWindow", "/gw/scanpub/0ccf89666047"))
  1013. self.label_14.setText(_translate("MainWindow", "设备广播间隔:"))
  1014. self.lineEdit_MqttTopic_5.setPlaceholderText(_translate("MainWindow", "如100,单位ms"))
  1015. self.label_15.setText(_translate("MainWindow", "广播偏差标准:"))
  1016. self.lineEdit_MqttTopic_6.setPlaceholderText(_translate("MainWindow", "如10,单位ms"))
  1017. self.pushButton_3.setText(_translate("MainWindow", "Adv+RSSI生成图表"))
  1018. self.groupBox_2.setTitle(_translate("MainWindow", "三轴采样率"))
  1019. self.label_3.setText(_translate("MainWindow", "设备MAC地址:"))
  1020. self.lineEdit_mac_three_axis.setPlaceholderText(_translate("MainWindow", "112233445566"))
  1021. self.label_4.setText(_translate("MainWindow", "三轴监听服务:"))
  1022. self.lineEdit_notify_three_axis.setPlaceholderText(_translate("MainWindow", "0000AA04-0000-1000-8000-00805f9b34fb"))
  1023. self.label_13.setText(_translate("MainWindow", "监听时长:"))
  1024. self.lineEdit_notify_three_axis_5.setPlaceholderText(_translate("MainWindow", "如60,单位s"))
  1025. self.groupBox_3.setTitle(_translate("MainWindow", "蓝牙协议"))
  1026. self.label_5.setText(_translate("MainWindow", "设备MAC地址:"))
  1027. self.lineEdit_mac_blepro.setPlaceholderText(_translate("MainWindow", "112233445566"))
  1028. self.groupBox_4.setTitle(_translate("MainWindow", "串口协议"))
  1029. self.label_7.setText(_translate("MainWindow", "串口选择:"))
  1030. self.lineEdit_COM.setPlaceholderText(_translate("MainWindow", "COM7"))
  1031. self.label_8.setText(_translate("MainWindow", "波特率:"))
  1032. self.lineEdit_baud_rate.setPlaceholderText(_translate("MainWindow", "9600/115200....."))
  1033. self.pushButton_4.setText(_translate("MainWindow", "开始测试"))
  1034. self.pushButton.setText(_translate("MainWindow", "停止"))
  1035. self.groupBox_5.setTitle(_translate("MainWindow", "日志"))
  1036. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_1), _translate("MainWindow", "丢包+采样率+蓝牙+串口"))
  1037. self.groupBox_7.setTitle(_translate("MainWindow", "断开类型功能验证"))
  1038. self.label_6.setText(_translate("MainWindow", "设备MAC地址:"))
  1039. self.lineEdit_mac_three_axis_2.setPlaceholderText(_translate("MainWindow", "112233445566"))
  1040. self.label_9.setText(_translate("MainWindow", "读写与反馈服务:"))
  1041. self.lineEdit_notify_three_axis_2.setPlaceholderText(_translate("MainWindow", "0000AA01-0000-1000-8000-00805f9b34fb"))
  1042. self.label_12.setText(_translate("MainWindow", "断开返回服务:"))
  1043. self.lineEdit_notify_three_axis_4.setPlaceholderText(_translate("MainWindow", "0000AA02-0000-1000-8000-00805f9b34fb"))
  1044. self.label_16.setText(_translate("MainWindow", "密码自定义服务:"))
  1045. self.lineEdit_notify_three_axis_7.setPlaceholderText(_translate("MainWindow", "0000AA03-0000-1000-8000-00805f9b34fb"))
  1046. self.groupBox_8.setTitle(_translate("MainWindow", "密码服务功能验证"))
  1047. self.label_10.setText(_translate("MainWindow", "设备MAC地址:"))
  1048. self.lineEdit_mac_three_axis_3.setPlaceholderText(_translate("MainWindow", "112233445566"))
  1049. self.label_11.setText(_translate("MainWindow", "密码自定义服务:"))
  1050. self.lineEdit_notify_three_axis_3.setPlaceholderText(_translate("MainWindow", "0000AA04-0000-1000-8000-00805f9b34fb"))
  1051. self.groupBox_11.setTitle(_translate("MainWindow", "功耗自动化"))
  1052. self.label_22.setText(_translate("MainWindow", "设备MAC地址:"))
  1053. self.lineEdit_mac_three_axis_4.setPlaceholderText(_translate("MainWindow", "112233445566"))
  1054. self.label_20.setText(_translate("MainWindow", "串口选择:"))
  1055. self.lineEdit_COM_2.setPlaceholderText(_translate("MainWindow", "COM7"))
  1056. self.label_21.setText(_translate("MainWindow", "波特率:"))
  1057. self.lineEdit_baud_rate_2.setPlaceholderText(_translate("MainWindow", "9600/115200....."))
  1058. self.pushButton_5.setText(_translate("MainWindow", "开始测试"))
  1059. self.groupBox_6.setTitle(_translate("MainWindow", "日志"))
  1060. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "功能性测试"))
  1061. self.groupBox_9.setTitle(_translate("MainWindow", "BXP-A-C广播解析"))
  1062. self.label_17.setText(_translate("MainWindow", "MQTT订阅主题:"))
  1063. self.lineEdit_MqttTopic_2.setPlaceholderText(_translate("MainWindow", "/gw/scanpub/0ccf89666047"))
  1064. self.groupBox_12.setTitle(_translate("MainWindow", "高压釜消毒时间解析"))
  1065. self.label_18.setText(_translate("MainWindow", "MQTT订阅主题:"))
  1066. self.lineEdit_MqttTopic_3.setPlaceholderText(_translate("MainWindow", "/gw/scanpub/0ccf89666047"))
  1067. self.groupBox_13.setTitle(_translate("MainWindow", "网关上报包中广播总数量"))
  1068. self.label_19.setText(_translate("MainWindow", "MQTT订阅主题:"))
  1069. self.lineEdit_MqttTopic_4.setPlaceholderText(_translate("MainWindow", "/gw/scanpub/0ccf89666047"))
  1070. self.groupBox_14.setTitle(_translate("MainWindow", "Beacon原始数据"))
  1071. self.label_51.setText(_translate("MainWindow", "设备MAC地址:"))
  1072. self.lineEdit_mac_three_axis_11.setPlaceholderText(_translate("MainWindow", "112233445566"))
  1073. self.groupBox_15.setTitle(_translate("MainWindow", "TOF距离"))
  1074. self.label_52.setText(_translate("MainWindow", "设备MAC地址:"))
  1075. self.lineEdit_mac_three_axis_12.setPlaceholderText(_translate("MainWindow", "112233445566"))
  1076. self.pushButton_10.setText(_translate("MainWindow", "开始测试"))
  1077. self.pushButton_2.setText(_translate("MainWindow", "停止"))
  1078. self.groupBox_10.setTitle(_translate("MainWindow", "日志"))
  1079. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "广播解析"))
  1080. self.textEdit.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
  1081. "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
  1082. "p, li { white-space: pre-wrap; }\n"
  1083. "</style></head><body style=\" font-family:\'SimSun\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
  1084. "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">注意点:</span></p>\n"
  1085. "<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
  1086. "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">1.本上位机有些功能涉及到配合网关使用,网关配合操作如下:</p>\n"
  1087. "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">①网关mqtt服务器需修改为:47.104.172.169:1883,上报时间需设置为0s,Message Format选JSON(Local time)</p>\n"
  1088. "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">②要验证丢包率时,需关闭beacon回应包或开启没有回应包的通道或网关Active Scanning选项关闭,不验证丢包率可忽略此条注意点</p>\n"
  1089. "<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
  1090. "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">2.兼容此上位机脚本链接地址:<a href=\"https://47.104.186.170/svn/Product/测试资源/1.测试组资料/测试工具/Scripts\"><span style=\" text-decoration: underline; color:#0000ff;\">https://47.104.186.170/svn/Product/测试资源/1.测试组资料/测试工具/Scripts</span></a></p>\n"
  1091. "<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0000ff;\"><br /></p>\n"
  1092. "<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0000ff;\"><br /></p></body></html>"))
  1093. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_9), _translate("MainWindow", "使用说明"))

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/在线问答5/article/detail/980635
推荐阅读
相关标签
  

闽ICP备14008679号