|
|
@ -116,8 +116,8 @@ class MainWindow(QMainWindow):
|
|
|
|
widgetArea = QWidget()
|
|
|
|
widgetArea = QWidget()
|
|
|
|
widgetArea.setLayout(areaLayout2)
|
|
|
|
widgetArea.setLayout(areaLayout2)
|
|
|
|
|
|
|
|
|
|
|
|
newbtn = QPushButton('New')
|
|
|
|
newbtn = QPushButton('添加通道')
|
|
|
|
delbth = QPushButton('删除')
|
|
|
|
delbth = QPushButton('删除通道')
|
|
|
|
|
|
|
|
|
|
|
|
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
|
|
|
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
|
|
|
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
|
|
|
|
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
|
|
|
@ -272,9 +272,11 @@ class MainWindow(QMainWindow):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def startProtocol(self):
|
|
|
|
def startProtocol(self):
|
|
|
|
# self.area.getallAreaValue(self.sub_windows)
|
|
|
|
if self.areaLabel:
|
|
|
|
thread = MyThread(self.area)
|
|
|
|
print(1)
|
|
|
|
thread.start()
|
|
|
|
else:
|
|
|
|
|
|
|
|
print(2)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def closeEvent(self, event):
|
|
|
|
def closeEvent(self, event):
|
|
|
|