|
|
|
@ -116,8 +116,8 @@ class MainWindow(QMainWindow):
|
|
|
|
|
widgetArea = QWidget()
|
|
|
|
|
widgetArea.setLayout(areaLayout2)
|
|
|
|
|
|
|
|
|
|
newbtn = QPushButton('New')
|
|
|
|
|
delbth = QPushButton('删除')
|
|
|
|
|
newbtn = QPushButton('添加通道')
|
|
|
|
|
delbth = QPushButton('删除通道')
|
|
|
|
|
|
|
|
|
|
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
|
|
|
|
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
|
|
|
|
@ -243,7 +243,7 @@ class MainWindow(QMainWindow):
|
|
|
|
|
print(rowAndColumn)
|
|
|
|
|
row = rowAndColumn[0]
|
|
|
|
|
column = rowAndColumn[1]
|
|
|
|
|
print(row,column)
|
|
|
|
|
print(row, column)
|
|
|
|
|
if column == 0:
|
|
|
|
|
for i in range(4):
|
|
|
|
|
widget = areaLayout.itemAtPosition(row, i).widget()
|
|
|
|
@ -272,9 +272,11 @@ class MainWindow(QMainWindow):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def startProtocol(self):
|
|
|
|
|
# self.area.getallAreaValue(self.sub_windows)
|
|
|
|
|
thread = MyThread(self.area)
|
|
|
|
|
thread.start()
|
|
|
|
|
if self.areaLabel:
|
|
|
|
|
print(1)
|
|
|
|
|
else:
|
|
|
|
|
print(2)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def closeEvent(self, event):
|
|
|
|
|