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
评论列表
文章目录