GUI.py 文件源码

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

项目:alignment_calculator 作者: andersas 项目源码 文件源码
def list_molecules(self):
        result = [];
        try:
            if (not os.path.exists(self.moleculeConfigFile)):
                raise RuntimeError("Could not load molecules from the file: "+self.moleculeConfigFile);
            parser = configparser.ConfigParser();
            parser.read(self.moleculeConfigFile);
            result = parser.sections();
        except Exception as e:
            self.noMoleculesWarningMsg = str(e);
            timer = PyQt5.QtCore.QTimer(self);
            timer.timeout.connect(self.noMoleculesWarning);
            timer.setSingleShot(True)
            timer.start(0);

        return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号