BATS.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:BATS-Bayesian-Adaptive-Trial-Simulator 作者: ContaTP 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号