⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wxpychemapp.py

📁 PyChem是用Python语言编写的多元变量分析软件。它包括一个前端图形界面用于管理和保存试验数据
💻 PY
字号:
#!/usr/bin/env python
#Boa:App:BoaApp

"""
A GUI application for chemometric analysis

Includes:
    -Storage and management of experimental data
    -Partial least squares regression (PLS1)
    -Principal components analysis
    -Discriminant analysis
    -Cluster analysis
    -Feature or variable selection by genetic algorithm search

$Id: wxPyChemApp.py Copyright (C) 2005  Roger Jarvis

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

"""

from wxPython.wx import *

import wxPyChemShell, wxPyChemSplash, time

modules ={'FitFun': [0, '', 'FitFun.py'],
 'PAChelp': [0, '', 'PAChelp.hhp'],
 'chemometrics': [0, '', 'chemometrics.py'],
 'fileIO': [0, '', 'fileIO.py'],
 'genetic': [0, '', 'genetic.py'],
 'process': [0, '', 'process.py'],
 'wxExportDialog': [0, '', 'wxExportDialog.py'],
 'wxImportConfirmDialog': [0, '', 'wxImportConfirmDialog.py'],
 'wxImportDialog': [0, '', 'wxImportDialog.py'],
 'wxImportMetaDataDialog': [0, '', 'wxImportMetaDataDialog.py'],
 'wxPlotFrame': [0, '', 'wxPlotFrame.py'],
 'wxPlotPropertiesDialog': [0, '', 'wxPlotPropertiesDialog.py'],
 'wxPyChemShell': [1, 'Main frame of Application', 'wxPyChemShell.py'],
 'wxPyChemSplash': [0, '', 'wxPyChemSplash.py'],
 'wxPyPlot': [0, '', 'wxPyPlot.py']}

class BoaApp(wxApp):
    def OnInit(self):
        wxInitAllImageHandlers()
        #show splash screen
        splash = wxPyChemSplash.create(None)
        splash.Show()
        wxYield()
        self.SetTopWindow(splash)
        time.sleep(3)
        self.main = wxPyChemShell.create(None)
        self.main.Show()
        self.SetTopWindow(self.main)
        splash.Destroy()
        return True
    
def main():
    application = BoaApp(0)
    application.MainLoop()
    
if __name__ == '__main__':
    main()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -