def changeTab(self, index):
if index == 0:
self.log_tabWidget.setTabIcon(0, QtGui.QIcon(":/resources/tab_log.png"))
self.log_tabWidget.setTabIcon(1, QtGui.QIcon(":/resources/tab_info_disabled.png"))
self.log_tabWidget.tabBar().setTabTextColor(0, QtGui.QColor("#4f8a10"))
self.log_tabWidget.tabBar().setStyleSheet("QTabBar:tab:selected{ border-color: #4f8a10;} QTabBar:tab:selected:hover{color:#4f8a10;}")
else:
self.log_tabWidget.setTabIcon(0, QtGui.QIcon(":/resources/tab_log_disabled.png"))
self.log_tabWidget.setTabIcon(1, QtGui.QIcon(":/resources/tab_info.png"))
self.log_tabWidget.tabBar().setTabTextColor(1, QtGui.QColor("#00529b"))
self.log_tabWidget.tabBar().setStyleSheet("QTabBar:tab:selected{ border-color: #00529b;} QTabBar:tab:selected:hover{color:#00529b;}")
# Write log
BATS.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录