ribbon_database.py 文件源码

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

项目:gpvdm 作者: roderickmackenzie 项目源码 文件源码
def __init__(self):
        QToolBar.__init__(self)

        self.setToolButtonStyle( Qt.ToolButtonTextUnderIcon)
        self.setIconSize(QSize(42, 42))

        self.materials = QAction(QIcon_load("organic_material"), _("Materials\ndatabase"), self)
        self.materials.triggered.connect(self.callback_view_materials)
        self.addAction(self.materials)

        self.spectra_file = QAction(QIcon_load("spectra_file"), _("Optical\ndatabase"), self)
        self.spectra_file.triggered.connect(self.callback_view_optical)
        self.addAction(self.spectra_file)

        if enable_betafeatures()==True:
            self.tb_import_pvlighthouse = QAction(QIcon_load("sync"), _("Update materials\nfrom PVLighthouse"), self)
            self.tb_import_pvlighthouse.triggered.connect(self.callback_pvlighthouse)
            self.addAction(self.tb_import_pvlighthouse)

            self.tb_import_refractiveindex = QAction(QIcon_load("sync"), _("Update materials\nfrom refractiveindex.info"), self)
            self.tb_import_refractiveindex.triggered.connect(self.callback_refractiveindex)
            self.addAction(self.tb_import_refractiveindex)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号