|
|
|
@ -8,7 +8,7 @@ import subprocess
|
|
|
|
|
import qtawesome
|
|
|
|
|
|
|
|
|
|
from PyQt5.QtWidgets import QApplication, QPushButton, QMainWindow, QDockWidget, QWidget, QHBoxLayout, QStackedWidget\
|
|
|
|
|
,QVBoxLayout, QProgressBar, QLabel
|
|
|
|
|
,QVBoxLayout, QProgressBar, QLabel, QButtonGroup
|
|
|
|
|
from PyQt5.QtCore import Qt, QTimer, QSize
|
|
|
|
|
from PyQt5.QtGui import QIcon, QWindow, QPixmap
|
|
|
|
|
from utils.DBModels.BaseModel import *
|
|
|
|
@ -128,6 +128,7 @@ class MainWindow(QWidget):
|
|
|
|
|
self.switchTouchBtn.clicked.connect(self.switchTouchMode)
|
|
|
|
|
self.switchTouchBtn.setCheckable(True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 创建按钮
|
|
|
|
|
self.minimizeButton = QPushButton(QIcon(':/static/min.png'), "")
|
|
|
|
|
self.minimizeButton.setObjectName('minButton')
|
|
|
|
@ -294,15 +295,15 @@ class MainWindow(QWidget):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def switchDeviceParManageWidget(self):
|
|
|
|
|
if self.deviceParameterManageBtn.isChecked():
|
|
|
|
|
self.stackWidget.setCurrentIndex(2)
|
|
|
|
|
self.deviceParameterManageBtn.setText('变量读写')
|
|
|
|
|
self.deviceParameterManageBtn.setIcon(qtawesome.icon('fa.pencil-square-o', color='#1fbb6f'))
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
self.stackWidget.setCurrentIndex(0)
|
|
|
|
|
self.deviceParameterManageBtn.setText('设备参数管理')
|
|
|
|
|
self.deviceParameterManageBtn.setIcon(qtawesome.icon('fa.gears', color='#1fbb6f'))
|
|
|
|
|
# if self.deviceParameterManageBtn.isChecked():
|
|
|
|
|
self.stackWidget.setCurrentIndex(2)
|
|
|
|
|
# self.deviceParameterManageBtn.setText('变量读写')
|
|
|
|
|
self.deviceParameterManageBtn.setIcon(qtawesome.icon('fa.pencil-square-o', color='#1fbb6f'))
|
|
|
|
|
|
|
|
|
|
# else:
|
|
|
|
|
# self.stackWidget.setCurrentIndex(0)
|
|
|
|
|
# self.deviceParameterManageBtn.setText('设备参数管理')
|
|
|
|
|
# self.deviceParameterManageBtn.setIcon(qtawesome.icon('fa.gears', color='#1fbb6f'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def showLowerWidget(self, process):
|
|
|
|
|