def addPlot(self, data, dataLabels = None, title = None, xAxisTitle = None, yAxisTitle = None): if len(data) != 0: subPlot = MPL_Widget() subPlot.addPicker() if title != None: subPlot.setWindowTitle(title) subPlot.canvas.plotTitle = title ax1 = subPlot.canvas.ax if xAxisTitle != None: subPlot.canvas.xtitle = xAxisTitle if yAxisTitle != None: subPlot.canvas.ytitle = yAxisTitle if dataLabels != None: subPlot.dataLabels = dataLabels ax1.plot(data, '-o', color = '#ff0000', alpha = 0.6, picker = 5) else: ax1.plot(data, '-o', color = '#ff0000', alpha = 0.6) subPlot.setData(N.arange(len(data)), data) subPlot.canvas.format_labels() subPlot.show() self.openPlotList.append(subPlot)
def __init__(self, data = None, parent = None): '''data is a multidimensional numpy array and parent is the calling window''' QtGui.QWidget.__init__(self, parent) self.setAttribute(QtCore.Qt.WA_DeleteOnClose) self.setWindowTitle('PCA Plot') self.resize(800, 400) self.pcaPlot = MPL_Widget(self) self.scores = None self.loading = None self.explanation = None if data != None: self.data = data self.executePCA() self.initializePlot() layout = QtGui.QVBoxLayout(self) layout.addWidget(self.pcaPlot) self.setLayout(layout) self.show()
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1089, 865) MainWindow.setMinimumSize(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setFamily("Arial") font.setWeight(50) font.setBold(False) MainWindow.setFont(font) icon = QtGui.QIcon() icon.addFile(":/new/prefix1/icons/games.png") MainWindow.setWindowIcon(icon) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.vboxlayout = QtGui.QVBoxLayout(self.centralwidget) self.vboxlayout.setObjectName("vboxlayout") self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setObjectName("hboxlayout") self.mainTabWidget = QtGui.QTabWidget(self.centralwidget) self.mainTabWidget.setObjectName("mainTabWidget") self.sqlTab = QtGui.QWidget() self.sqlTab.setObjectName("sqlTab") self.vboxlayout1 = QtGui.QVBoxLayout(self.sqlTab) self.vboxlayout1.setObjectName("vboxlayout1") self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setObjectName("hboxlayout1") self.vboxlayout2 = QtGui.QVBoxLayout() self.vboxlayout2.setObjectName("vboxlayout2") self.label_2 = QtGui.QLabel(self.sqlTab) self.label_2.setObjectName("label_2") self.vboxlayout2.addWidget(self.label_2) self.queryTblList = QtGui.QListWidget(self.sqlTab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.queryTblList.sizePolicy().hasHeightForWidth()) self.queryTblList.setSizePolicy(sizePolicy) self.queryTblList.setMaximumSize(QtCore.QSize(200, 16777215)) self.queryTblList.setResizeMode(QtGui.QListView.Adjust) self.queryTblList.setObjectName("queryTblList") self.vboxlayout2.addWidget(self.queryTblList) self.hboxlayout1.addLayout(self.vboxlayout2) self.vboxlayout3 = QtGui.QVBoxLayout() self.vboxlayout3.setObjectName("vboxlayout3") self.label_3 = QtGui.QLabel(self.sqlTab) self.label_3.setObjectName("label_3") self.vboxlayout3.addWidget(self.label_3) self.queryFieldList = QtGui.QListWidget(self.sqlTab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.queryFieldList.sizePolicy().hasHeightForWidth()) self.queryFieldList.setSizePolicy(sizePolicy) self.queryFieldList.setMaximumSize(QtCore.QSize(200, 16777215)) self.queryFieldList.setResizeMode(QtGui.QListView.Adjust) self.queryFieldList.setObjectName("queryFieldList") self.vboxlayout3.addWidget(self.queryFieldList) self.hboxlayout1.addLayout(self.vboxlayout3) self.vboxlayout4 = QtGui.QVBoxLayout() self.vboxlayout4.setObjectName("vboxlayout4") self.label = QtGui.QLabel(self.sqlTab) self.label.setObjectName("label") self.vboxlayout4.addWidget(self.label) self.sqlQueryString = QtGui.QTextEdit(self.sqlTab) self.sqlQueryString.setObjectName("sqlQueryString") self.vboxlayout4.addWidget(self.sqlQueryString) self.hboxlayout1.addLayout(self.vboxlayout4) self.vboxlayout1.addLayout(self.hboxlayout1) self.label_10 = QtGui.QLabel(self.sqlTab) self.label_10.setObjectName("label_10") self.vboxlayout1.addWidget(self.label_10) self.outTableWidget = CustomTable(self.sqlTab) self.outTableWidget.setRowCount(10) self.outTableWidget.setColumnCount(10) self.outTableWidget.setObjectName("outTableWidget") self.outTableWidget.setColumnCount(10) self.outTableWidget.setRowCount(10) self.vboxlayout1.addWidget(self.outTableWidget) self.hboxlayout2 = QtGui.QHBoxLayout() self.hboxlayout2.setObjectName("hboxlayout2") spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout2.addItem(spacerItem) self.dbExecuteQuery = QtGui.QPushButton(self.sqlTab) self.dbExecuteQuery.setMaximumSize(QtCore.QSize(200, 16777215)) self.dbExecuteQuery.setObjectName("dbExecuteQuery") self.hboxlayout2.addWidget(self.dbExecuteQuery) self.viewQueryBtn = QtGui.QPushButton(self.sqlTab) self.viewQueryBtn.setMaximumSize(QtCore.QSize(200, 16777215)) self.viewQueryBtn.setObjectName("viewQueryBtn") self.hboxlayout2.addWidget(self.viewQueryBtn) self.dbCommitQuery = QtGui.QPushButton(self.sqlTab) self.dbCommitQuery.setMaximumSize(QtCore.QSize(200, 16777215)) self.dbCommitQuery.setObjectName("dbCommitQuery") self.hboxlayout2.addWidget(self.dbCommitQuery) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout2.addItem(spacerItem1) self.vboxlayout1.addLayout(self.hboxlayout2) self.label_7 = QtGui.QLabel(self.sqlTab) self.label_7.setObjectName("label_7") self.vboxlayout1.addWidget(self.label_7) self.sqlErrorMessage = QtGui.QLineEdit(self.sqlTab) self.sqlErrorMessage.setObjectName("sqlErrorMessage") self.vboxlayout1.addWidget(self.sqlErrorMessage) self.hboxlayout3 = QtGui.QHBoxLayout() self.hboxlayout3.setObjectName("hboxlayout3") self.openDBButton = QtGui.QPushButton(self.sqlTab) self.openDBButton.setObjectName("openDBButton") self.hboxlayout3.addWidget(self.openDBButton) self.curDBpathname = QtGui.QLineEdit(self.sqlTab) self.curDBpathname.setReadOnly(True) self.curDBpathname.setObjectName("curDBpathname") self.hboxlayout3.addWidget(self.curDBpathname) self.dbConnectedBtn = QtGui.QPushButton(self.sqlTab) self.dbConnectedBtn.setEnabled(True) self.dbConnectedBtn.setAutoFillBackground(False) icon1 = QtGui.QIcon() icon1.addFile(":/new/prefix1/icons/ok.png") self.dbConnectedBtn.setIcon(icon1) self.dbConnectedBtn.setIconSize(QtCore.QSize(20, 20)) self.dbConnectedBtn.setObjectName("dbConnectedBtn") self.hboxlayout3.addWidget(self.dbConnectedBtn) self.vboxlayout1.addLayout(self.hboxlayout3) self.hboxlayout4 = QtGui.QHBoxLayout() self.hboxlayout4.setObjectName("hboxlayout4") self.gridlayout = QtGui.QGridLayout() self.gridlayout.setObjectName("gridlayout") self.useMemDB_CB = QtGui.QCheckBox(self.sqlTab) self.useMemDB_CB.setChecked(True) self.useMemDB_CB.setObjectName("useMemDB_CB") self.gridlayout.addWidget(self.useMemDB_CB, 0, 0, 1, 1) self.dumpDBBtn = QtGui.QPushButton(self.sqlTab) self.dumpDBBtn.setObjectName("dumpDBBtn") self.gridlayout.addWidget(self.dumpDBBtn, 0, 1, 1, 1) self.autoNameTblCB = QtGui.QCheckBox(self.sqlTab) self.autoNameTblCB.setChecked(True) self.autoNameTblCB.setObjectName("autoNameTblCB") self.gridlayout.addWidget(self.autoNameTblCB, 1, 0, 1, 1) self.rstDBButton = QtGui.QPushButton(self.sqlTab) self.rstDBButton.setObjectName("rstDBButton") self.gridlayout.addWidget(self.rstDBButton, 1, 1, 1, 1) self.appendNewFilesCB = QtGui.QCheckBox(self.sqlTab) self.appendNewFilesCB.setChecked(True) self.appendNewFilesCB.setObjectName("appendNewFilesCB") self.gridlayout.addWidget(self.appendNewFilesCB, 2, 0, 1, 2) self.hboxlayout4.addLayout(self.gridlayout) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout4.addItem(spacerItem2) self.vboxlayout1.addLayout(self.hboxlayout4) self.mainTabWidget.addTab(self.sqlTab, "") self.plotTab = QtGui.QWidget() self.plotTab.setObjectName("plotTab") self.hboxlayout5 = QtGui.QHBoxLayout(self.plotTab) self.hboxlayout5.setObjectName("hboxlayout5") self.plotWidget = MPL_Widget(self.plotTab) self.plotWidget.setObjectName("plotWidget") self.hboxlayout5.addWidget(self.plotWidget) self.mainTabWidget.addTab(self.plotTab, "") self.configTab = QtGui.QWidget() self.configTab.setObjectName("configTab") self.vboxlayout5 = QtGui.QVBoxLayout(self.configTab) self.vboxlayout5.setObjectName("vboxlayout5") self.hboxlayout6 = QtGui.QHBoxLayout() self.hboxlayout6.setObjectName("hboxlayout6") self.vboxlayout6 = QtGui.QVBoxLayout() self.vboxlayout6.setObjectName("vboxlayout6") self.label_4 = QtGui.QLabel(self.configTab) self.label_4.setObjectName("label_4") self.vboxlayout6.addWidget(self.label_4) self.db_TableList = QtGui.QListWidget(self.configTab) self.db_TableList.setObjectName("db_TableList") self.vboxlayout6.addWidget(self.db_TableList) self.hboxlayout6.addLayout(self.vboxlayout6) self.vboxlayout7 = QtGui.QVBoxLayout() self.vboxlayout7.setObjectName("vboxlayout7") self.label_5 = QtGui.QLabel(self.configTab) self.label_5.setObjectName("label_5") self.vboxlayout7.addWidget(self.label_5) self.db_XCols = QtGui.QListWidget(self.configTab) self.db_XCols.setObjectName("db_XCols") self.vboxlayout7.addWidget(self.db_XCols) self.hboxlayout6.addLayout(self.vboxlayout7) self.vboxlayout8 = QtGui.QVBoxLayout() self.vboxlayout8.setObjectName("vboxlayout8") self.label_6 = QtGui.QLabel(self.configTab) self.label_6.setObjectName("label_6") self.vboxlayout8.addWidget(self.label_6) self.db_YCols = QtGui.QListWidget(self.configTab) self.db_YCols.setObjectName("db_YCols") self.vboxlayout8.addWidget(self.db_YCols) self.hboxlayout6.addLayout(self.vboxlayout8) self.vboxlayout5.addLayout(self.hboxlayout6) self.hboxlayout7 = QtGui.QHBoxLayout() self.hboxlayout7.setObjectName("hboxlayout7") spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout7.addItem(spacerItem3) self.gridlayout1 = QtGui.QGridLayout() self.gridlayout1.setObjectName("gridlayout1") self.label_8 = QtGui.QLabel(self.configTab) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridlayout1.addWidget(self.label_8, 0, 0, 1, 1) self.sizeModSpinBox = QtGui.QDoubleSpinBox(self.configTab) self.sizeModSpinBox.setMinimum(0.0) self.sizeModSpinBox.setSingleStep(0.5) self.sizeModSpinBox.setProperty("value", QtCore.QVariant(1.5)) self.sizeModSpinBox.setObjectName("sizeModSpinBox") self.gridlayout1.addWidget(self.sizeModSpinBox, 0, 1, 1, 1) self.label_9 = QtGui.QLabel(self.configTab) self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridlayout1.addWidget(self.label_9, 1, 0, 1, 1) self.sizeArrayComboB = QtGui.QComboBox(self.configTab) self.sizeArrayComboB.setObjectName("sizeArrayComboB") self.gridlayout1.addWidget(self.sizeArrayComboB, 1, 1, 1, 1) self.hboxlayout8 = QtGui.QHBoxLayout() self.hboxlayout8.setObjectName("hboxlayout8") self.cb_logx = QtGui.QCheckBox(self.configTab) self.cb_logx.setObjectName("cb_logx") self.hboxlayout8.addWidget(self.cb_logx) self.cb_logy = QtGui.QCheckBox(self.configTab) self.cb_logy.setObjectName("cb_logy") self.hboxlayout8.addWidget(self.cb_logy) self.gridlayout1.addLayout(self.hboxlayout8, 2, 1, 1, 1) self.updatePlotBtn = QtGui.QPushButton(self.configTab) self.updatePlotBtn.setObjectName("updatePlotBtn") self.gridlayout1.addWidget(self.updatePlotBtn, 3, 1, 1, 1) self.clearPlotCB = QtGui.QCheckBox(self.configTab) self.clearPlotCB.setChecked(True) self.clearPlotCB.setObjectName("clearPlotCB") self.gridlayout1.addWidget(self.clearPlotCB, 4, 1, 1, 1) self.clearPlotBtn = QtGui.QPushButton(self.configTab) self.clearPlotBtn.setObjectName("clearPlotBtn") self.gridlayout1.addWidget(self.clearPlotBtn, 5, 1, 1, 1) self.showLegendCB = QtGui.QCheckBox(self.configTab) self.showLegendCB.setChecked(True) self.showLegendCB.setObjectName("showLegendCB") self.gridlayout1.addWidget(self.showLegendCB, 6, 1, 1, 2) spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridlayout1.addItem(spacerItem4, 7, 0, 1, 3) self.hboxlayout7.addLayout(self.gridlayout1) self.vboxlayout5.addLayout(self.hboxlayout7) self.mainTabWidget.addTab(self.configTab, "") self.hboxlayout.addWidget(self.mainTabWidget) self.SelectInfoWidget = QtGui.QTableWidget(self.centralwidget) self.SelectInfoWidget.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.SelectInfoWidget.sizePolicy().hasHeightForWidth()) self.SelectInfoWidget.setSizePolicy(sizePolicy) self.SelectInfoWidget.setRowCount(13) self.SelectInfoWidget.setColumnCount(2) self.SelectInfoWidget.setObjectName("SelectInfoWidget") self.SelectInfoWidget.setColumnCount(2) self.SelectInfoWidget.setRowCount(13) self.hboxlayout.addWidget(self.SelectInfoWidget) self.vboxlayout.addLayout(self.hboxlayout) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1089, 22)) font = QtGui.QFont() font.setFamily("Arial") font.setWeight(50) font.setBold(False) self.menubar.setFont(font) self.menubar.setObjectName("menubar") self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menu_Edit = QtGui.QMenu(self.menubar) self.menu_Edit.setObjectName("menu_Edit") self.menu_Tools = QtGui.QMenu(self.menubar) self.menu_Tools.setObjectName("menu_Tools") self.menu_Help = QtGui.QMenu(self.menubar) self.menu_Help.setObjectName("menu_Help") self.menuData = QtGui.QMenu(self.menubar) self.menuData.setObjectName("menuData") MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.toolBar = QtGui.QToolBar(MainWindow) self.toolBar.setEnabled(True) self.toolBar.setMinimumSize(QtCore.QSize(12, 25)) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) self.action_Edit = QtGui.QAction(MainWindow) self.action_Edit.setObjectName("action_Edit") self.action_Tools = QtGui.QAction(MainWindow) icon2 = QtGui.QIcon() icon2.addFile(":/new/prefix1/icons/Service Manager.png") self.action_Tools.setIcon(icon2) self.action_Tools.setObjectName("action_Tools") self.actionFileOpen = QtGui.QAction(MainWindow) icon3 = QtGui.QIcon() icon3.addFile(":/new/prefix1/icons/fileopen.png") self.actionFileOpen.setIcon(icon3) self.actionFileOpen.setObjectName("actionFileOpen") self.actionFileSave = QtGui.QAction(MainWindow) icon4 = QtGui.QIcon() icon4.addFile(":/new/prefix1/icons/filesave2.png") self.actionFileSave.setIcon(icon4) self.actionFileSave.setObjectName("actionFileSave") self.actionFileSaveAs = QtGui.QAction(MainWindow) icon5 = QtGui.QIcon() icon5.addFile(":/new/prefix1/icons/filesaveas.png") self.actionFileSaveAs.setIcon(icon5) self.actionFileSaveAs.setObjectName("actionFileSaveAs") self.actionNewFile = QtGui.QAction(MainWindow) icon6 = QtGui.QIcon() icon6.addFile(":/new/prefix1/icons/filenew.png") self.actionNewFile.setIcon(icon6) self.actionNewFile.setObjectName("actionNewFile") self.actionTools = QtGui.QAction(MainWindow) self.actionTools.setIcon(icon2) self.actionTools.setObjectName("actionTools") self.action_getSelection = QtGui.QAction(MainWindow) icon7 = QtGui.QIcon() icon7.addFile(":/new/prefix1/icons/kspread_ksp.png") self.action_getSelection.setIcon(icon7) self.action_getSelection.setObjectName("action_getSelection") self.actionClear = QtGui.QAction(MainWindow) icon8 = QtGui.QIcon() icon8.addFile(":/new/prefix1/icons/cleanlarge.png") self.actionClear.setIcon(icon8) self.actionClear.setObjectName("actionClear") self.action_New = QtGui.QAction(MainWindow) self.action_New.setIcon(icon6) self.action_New.setObjectName("action_New") self.action_Open = QtGui.QAction(MainWindow) self.action_Open.setIcon(icon3) self.action_Open.setObjectName("action_Open") self.action_Save = QtGui.QAction(MainWindow) self.action_Save.setIcon(icon4) self.action_Save.setObjectName("action_Save") self.actionSave_As = QtGui.QAction(MainWindow) self.actionSave_As.setIcon(icon5) self.actionSave_As.setObjectName("actionSave_As") self.action_Exit = QtGui.QAction(MainWindow) icon9 = QtGui.QIcon() icon9.addFile(":/new/prefix1/icons/exit.png") self.action_Exit.setIcon(icon9) self.action_Exit.setObjectName("action_Exit") self.action_Clear = QtGui.QAction(MainWindow) self.action_Clear.setIcon(icon8) self.action_Clear.setObjectName("action_Clear") self.action_Table_Selection = QtGui.QAction(MainWindow) self.action_Table_Selection.setIcon(icon7) self.action_Table_Selection.setObjectName("action_Table_Selection") self.action_Cut = QtGui.QAction(MainWindow) icon10 = QtGui.QIcon() icon10.addFile(":/new/prefix1/icons/editcut.png") self.action_Cut.setIcon(icon10) self.action_Cut.setObjectName("action_Cut") self.action_Paste = QtGui.QAction(MainWindow) icon11 = QtGui.QIcon() icon11.addFile(":/new/prefix1/icons/editpaste.png") self.action_Paste.setIcon(icon11) self.action_Paste.setObjectName("action_Paste") self.actionRunScript = QtGui.QAction(MainWindow) icon12 = QtGui.QIcon() icon12.addFile(":/new/prefix1/icons/software-development.png") self.actionRunScript.setIcon(icon12) self.actionRunScript.setObjectName("actionRunScript") self.actionAbout = QtGui.QAction(MainWindow) icon13 = QtGui.QIcon() icon13.addFile(":/new/prefix1/icons/help.png") self.actionAbout.setIcon(icon13) self.actionAbout.setObjectName("actionAbout") self.actionPlot = QtGui.QAction(MainWindow) icon14 = QtGui.QIcon() icon14.addFile( ":/new/prefix1/icons/120px-Icon_Mathematical_Plot.svg.png") self.actionPlot.setIcon(icon14) self.actionPlot.setObjectName("actionPlot") self.actionDelete = QtGui.QAction(MainWindow) icon15 = QtGui.QIcon() icon15.addFile(":/new/prefix1/icons/xkill.png") self.actionDelete.setIcon(icon15) self.actionDelete.setObjectName("actionDelete") self.actionDeleteAll = QtGui.QAction(MainWindow) self.actionDeleteAll.setIcon(icon15) self.actionDeleteAll.setObjectName("actionDeleteAll") self.actionPlotItem = QtGui.QAction(MainWindow) self.actionPlotItem.setIcon(icon14) self.actionPlotItem.setObjectName("actionPlotItem") self.actionHints = QtGui.QAction(MainWindow) self.actionHints.setObjectName("actionHints") self.actionLoad_Folder = QtGui.QAction(MainWindow) icon16 = QtGui.QIcon() icon16.addFile(":/new/prefix1/icons/fileimport.png") self.actionLoad_Folder.setIcon(icon16) self.actionLoad_Folder.setObjectName("actionLoad_Folder") self.actionSave_All_Tables = QtGui.QAction(MainWindow) icon17 = QtGui.QIcon() icon17.addFile(":/new/prefix1/icons/kchart_chrt.png") self.actionSave_All_Tables.setIcon(icon17) self.actionSave_All_Tables.setObjectName("actionSave_All_Tables") self.actionCopy_Current_Database = QtGui.QAction(MainWindow) self.actionCopy_Current_Database.setIcon(icon11) self.actionCopy_Current_Database.setObjectName( "actionCopy_Current_Database") self.menuFile.addAction(self.action_Open) self.menuFile.addAction(self.actionLoad_Folder) self.menuFile.addAction(self.action_Save) self.menuFile.addAction(self.action_Exit) self.menu_Edit.addAction(self.action_Cut) self.menu_Edit.addAction(self.action_Paste) self.menu_Tools.addAction(self.actionSave_All_Tables) self.menu_Tools.addAction(self.actionCopy_Current_Database) self.menu_Help.addAction(self.actionAbout) self.menu_Help.addAction(self.actionHints) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menu_Edit.menuAction()) self.menubar.addAction(self.menu_Tools.menuAction()) self.menubar.addAction(self.menuData.menuAction()) self.menubar.addAction(self.menu_Help.menuAction()) self.toolBar.addAction(self.actionFileOpen) self.toolBar.addAction(self.action_Save) self.toolBar.addAction(self.actionRunScript) self.toolBar.addAction(self.actionTools) self.retranslateUi(MainWindow) self.mainTabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def addPlot(self, data, dataLabels=None, title=None, xAxisTitle=None, yAxisTitle=None): if len(data) != 0: subPlot = MPL_Widget() subPlot.addPicker() if title != None: subPlot.setWindowTitle(title) subPlot.canvas.plotTitle = title ax1 = subPlot.canvas.ax if xAxisTitle != None: subPlot.canvas.xtitle = xAxisTitle if yAxisTitle != None: subPlot.canvas.ytitle = yAxisTitle if dataLabels != None: subPlot.dataLabels = dataLabels ax1.plot(data, '-o', color='#ff0000', alpha=0.6, picker=5) else: ax1.plot(data, '-o', color='#ff0000', alpha=0.6) subPlot.setData(N.arange(len(data)), data) subPlot.canvas.format_labels() subPlot.show() self.openPlotList.append(subPlot)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1150, 754) MainWindow.setMinimumSize(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setFamily("Arial") font.setWeight(50) font.setBold(False) MainWindow.setFont(font) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("images/games.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout_2.setObjectName("verticalLayout_2") self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setObjectName("hboxlayout") self.mainTabWidget = QtGui.QTabWidget(self.centralwidget) self.mainTabWidget.setObjectName("mainTabWidget") self.calcTab = QtGui.QWidget() self.calcTab.setObjectName("calcTab") self.verticalLayout_8 = QtGui.QVBoxLayout(self.calcTab) self.verticalLayout_8.setObjectName("verticalLayout_8") self.verticalLayout_7 = QtGui.QVBoxLayout() self.verticalLayout_7.setObjectName("verticalLayout_7") self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.formulaA_CB = QtGui.QCheckBox(self.calcTab) self.formulaA_CB.setChecked(True) self.formulaA_CB.setObjectName("formulaA_CB") self.horizontalLayout_2.addWidget(self.formulaA_CB) self.formulaInputA = QtGui.QLineEdit(self.calcTab) self.formulaInputA.setObjectName("formulaInputA") self.horizontalLayout_2.addWidget(self.formulaInputA) self.calcFormulaA_Btn = QtGui.QToolButton(self.calcTab) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("images/Retro Question Block.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.calcFormulaA_Btn.setIcon(icon1) self.calcFormulaA_Btn.setIconSize(QtCore.QSize(20, 20)) self.calcFormulaA_Btn.setObjectName("calcFormulaA_Btn") self.horizontalLayout_2.addWidget(self.calcFormulaA_Btn) self.formulaA_MW_LE = QtGui.QLineEdit(self.calcTab) self.formulaA_MW_LE.setReadOnly(True) self.formulaA_MW_LE.setObjectName("formulaA_MW_LE") self.horizontalLayout_2.addWidget(self.formulaA_MW_LE) self.label = QtGui.QLabel(self.calcTab) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.line = QtGui.QFrame(self.calcTab) self.line.setFrameShape(QtGui.QFrame.VLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName("line") self.horizontalLayout_2.addWidget(self.line) self.label_7 = QtGui.QLabel(self.calcTab) self.label_7.setObjectName("label_7") self.horizontalLayout_2.addWidget(self.label_7) self.chargeA = QtGui.QSpinBox(self.calcTab) self.chargeA.setMinimum(-99) self.chargeA.setObjectName("chargeA") self.horizontalLayout_2.addWidget(self.chargeA) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.formulaB_CB = QtGui.QCheckBox(self.calcTab) self.formulaB_CB.setChecked(True) self.formulaB_CB.setObjectName("formulaB_CB") self.horizontalLayout_4.addWidget(self.formulaB_CB) self.formulaInputB = QtGui.QLineEdit(self.calcTab) self.formulaInputB.setObjectName("formulaInputB") self.horizontalLayout_4.addWidget(self.formulaInputB) self.calcFormulaB_Btn = QtGui.QToolButton(self.calcTab) self.calcFormulaB_Btn.setIcon(icon1) self.calcFormulaB_Btn.setIconSize(QtCore.QSize(20, 20)) self.calcFormulaB_Btn.setObjectName("calcFormulaB_Btn") self.horizontalLayout_4.addWidget(self.calcFormulaB_Btn) self.formulaB_MW_LE = QtGui.QLineEdit(self.calcTab) self.formulaB_MW_LE.setReadOnly(True) self.formulaB_MW_LE.setObjectName("formulaB_MW_LE") self.horizontalLayout_4.addWidget(self.formulaB_MW_LE) self.label_2 = QtGui.QLabel(self.calcTab) self.label_2.setObjectName("label_2") self.horizontalLayout_4.addWidget(self.label_2) self.line_2 = QtGui.QFrame(self.calcTab) self.line_2.setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName("line_2") self.horizontalLayout_4.addWidget(self.line_2) self.label_10 = QtGui.QLabel(self.calcTab) self.label_10.setObjectName("label_10") self.horizontalLayout_4.addWidget(self.label_10) self.chargeB = QtGui.QSpinBox(self.calcTab) self.chargeB.setMinimum(-99) self.chargeB.setObjectName("chargeB") self.horizontalLayout_4.addWidget(self.chargeB) self.verticalLayout_3.addLayout(self.horizontalLayout_4) self.verticalLayout_7.addLayout(self.verticalLayout_3) self.plotWidget = MPL_Widget(self.calcTab) self.plotWidget.setObjectName("plotWidget") self.verticalLayout_7.addWidget(self.plotWidget) self.verticalLayout_8.addLayout(self.verticalLayout_7) self.mainTabWidget.addTab(self.calcTab, "") self.periodTab = QtGui.QWidget() self.periodTab.setObjectName("periodTab") self.elemTableWidget = QtGui.QTableWidget(self.periodTab) self.elemTableWidget.setEnabled(True) self.elemTableWidget.setGeometry(QtCore.QRect(730, 10, 256, 584)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.elemTableWidget.sizePolicy().hasHeightForWidth()) self.elemTableWidget.setSizePolicy(sizePolicy) self.elemTableWidget.setShowGrid(False) self.elemTableWidget.setRowCount(13) self.elemTableWidget.setColumnCount(2) self.elemTableWidget.setObjectName("elemTableWidget") self.elemTableWidget.setColumnCount(2) self.elemTableWidget.setRowCount(13) self.mainTabWidget.addTab(self.periodTab, "") self.configTab = QtGui.QWidget() self.configTab.setObjectName("configTab") self.horizontalLayout_6 = QtGui.QHBoxLayout(self.configTab) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.label_4 = QtGui.QLabel(self.configTab) self.label_4.setObjectName("label_4") self.verticalLayout_4.addWidget(self.label_4) self.plotTypeList = QtGui.QListWidget(self.configTab) self.plotTypeList.setObjectName("plotTypeList") self.verticalLayout_4.addWidget(self.plotTypeList) self.horizontalLayout_5.addLayout(self.verticalLayout_4) self.gridlayout = QtGui.QGridLayout() self.gridlayout.setObjectName("gridlayout") self.updatePlotBtn = QtGui.QPushButton(self.configTab) self.updatePlotBtn.setEnabled(True) self.updatePlotBtn.setObjectName("updatePlotBtn") self.gridlayout.addWidget(self.updatePlotBtn, 3, 0, 1, 1) self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setObjectName("hboxlayout1") self.cb_logx = QtGui.QCheckBox(self.configTab) self.cb_logx.setEnabled(False) self.cb_logx.setObjectName("cb_logx") self.hboxlayout1.addWidget(self.cb_logx) self.cb_logy = QtGui.QCheckBox(self.configTab) self.cb_logy.setEnabled(False) self.cb_logy.setObjectName("cb_logy") self.hboxlayout1.addWidget(self.cb_logy) self.gridlayout.addLayout(self.hboxlayout1, 2, 0, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_8 = QtGui.QLabel(self.configTab) self.label_8.setEnabled(False) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.horizontalLayout_3.addWidget(self.label_8) self.sizeModSpinBox = QtGui.QDoubleSpinBox(self.configTab) self.sizeModSpinBox.setEnabled(False) self.sizeModSpinBox.setMinimum(0.0) self.sizeModSpinBox.setSingleStep(0.5) self.sizeModSpinBox.setProperty("value", QtCore.QVariant(1.5)) self.sizeModSpinBox.setObjectName("sizeModSpinBox") self.horizontalLayout_3.addWidget(self.sizeModSpinBox) self.gridlayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_3 = QtGui.QLabel(self.configTab) self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) self.isoResCalc_SB = QtGui.QDoubleSpinBox(self.configTab) self.isoResCalc_SB.setDecimals(1) self.isoResCalc_SB.setMinimum(10.0) self.isoResCalc_SB.setMaximum(10000000.0) self.isoResCalc_SB.setSingleStep(500.0) self.isoResCalc_SB.setProperty("value", QtCore.QVariant(10000.0)) self.isoResCalc_SB.setObjectName("isoResCalc_SB") self.horizontalLayout.addWidget(self.isoResCalc_SB) self.gridlayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.horizontalLayout_5.addLayout(self.gridlayout) self.verticalLayout.addLayout(self.horizontalLayout_5) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.horizontalLayout_6.addLayout(self.verticalLayout) self.mainTabWidget.addTab(self.configTab, "") self.tab = QtGui.QWidget() self.tab.setObjectName("tab") self.gridLayout = QtGui.QGridLayout(self.tab) self.gridLayout.setObjectName("gridLayout") self.verticalLayout_5 = QtGui.QVBoxLayout() self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_5 = QtGui.QLabel(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setMaximumSize(QtCore.QSize(75, 16777215)) self.label_5.setObjectName("label_5") self.horizontalLayout_7.addWidget(self.label_5) self.plotListBtn = QtGui.QToolButton(self.tab) self.plotListBtn.setObjectName("plotListBtn") self.horizontalLayout_7.addWidget(self.plotListBtn) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem1) self.clearCpndPlotBtn = QtGui.QToolButton(self.tab) self.clearCpndPlotBtn.setObjectName("clearCpndPlotBtn") self.horizontalLayout_7.addWidget(self.clearCpndPlotBtn) self.verticalLayout_5.addLayout(self.horizontalLayout_7) self.plotGaussCB = QtGui.QCheckBox(self.tab) self.plotGaussCB.setChecked(True) self.plotGaussCB.setObjectName("plotGaussCB") self.verticalLayout_5.addWidget(self.plotGaussCB) self.cmpdListWidget = CustomTable(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmpdListWidget.sizePolicy().hasHeightForWidth()) self.cmpdListWidget.setSizePolicy(sizePolicy) self.cmpdListWidget.setMaximumSize(QtCore.QSize(300, 16777215)) self.cmpdListWidget.setRowCount(20) self.cmpdListWidget.setColumnCount(3) self.cmpdListWidget.setObjectName("cmpdListWidget") self.cmpdListWidget.setColumnCount(3) self.cmpdListWidget.setRowCount(20) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(2, item) self.verticalLayout_5.addWidget(self.cmpdListWidget) self.gridLayout.addLayout(self.verticalLayout_5, 0, 0, 1, 1) self.cmpdPlotWidget = MPL_Widget(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmpdPlotWidget.sizePolicy().hasHeightForWidth()) self.cmpdPlotWidget.setSizePolicy(sizePolicy) self.cmpdPlotWidget.setObjectName("cmpdPlotWidget") self.gridLayout.addWidget(self.cmpdPlotWidget, 0, 1, 1, 1) self.mainTabWidget.addTab(self.tab, "") self.hboxlayout.addWidget(self.mainTabWidget) self.verticalLayout_2.addLayout(self.hboxlayout) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1150, 22)) font = QtGui.QFont() font.setFamily("Arial") font.setWeight(50) font.setBold(False) self.menubar.setFont(font) self.menubar.setObjectName("menubar") self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menu_Tools = QtGui.QMenu(self.menubar) self.menu_Tools.setObjectName("menu_Tools") self.menu_Help = QtGui.QMenu(self.menubar) self.menu_Help.setObjectName("menu_Help") MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.toolBar = QtGui.QToolBar(MainWindow) self.toolBar.setEnabled(True) self.toolBar.setMinimumSize(QtCore.QSize(12, 25)) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) self.action_Edit = QtGui.QAction(MainWindow) self.action_Edit.setObjectName("action_Edit") self.action_Tools = QtGui.QAction(MainWindow) icon2 = QtGui.QIcon() icon2.addPixmap( QtGui.QPixmap(":/new/prefix1/icons/Service Manager.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Tools.setIcon(icon2) self.action_Tools.setObjectName("action_Tools") self.actionFileOpen = QtGui.QAction(MainWindow) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap("images/fileopen.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileOpen.setIcon(icon3) self.actionFileOpen.setObjectName("actionFileOpen") self.actionFileSave = QtGui.QAction(MainWindow) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesave2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileSave.setIcon(icon4) self.actionFileSave.setObjectName("actionFileSave") self.actionFileSaveAs = QtGui.QAction(MainWindow) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesaveas.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileSaveAs.setIcon(icon5) self.actionFileSaveAs.setObjectName("actionFileSaveAs") self.actionNewFile = QtGui.QAction(MainWindow) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filenew.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionNewFile.setIcon(icon6) self.actionNewFile.setObjectName("actionNewFile") self.actionTools = QtGui.QAction(MainWindow) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap("images/Service Manager.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionTools.setIcon(icon7) self.actionTools.setObjectName("actionTools") self.action_getSelection = QtGui.QAction(MainWindow) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kspread_ksp.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_getSelection.setIcon(icon8) self.action_getSelection.setObjectName("action_getSelection") self.actionClear = QtGui.QAction(MainWindow) icon9 = QtGui.QIcon() icon9.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/cleanlarge.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionClear.setIcon(icon9) self.actionClear.setObjectName("actionClear") self.action_New = QtGui.QAction(MainWindow) self.action_New.setIcon(icon6) self.action_New.setObjectName("action_New") self.action_Open = QtGui.QAction(MainWindow) self.action_Open.setIcon(icon3) self.action_Open.setObjectName("action_Open") self.action_Save = QtGui.QAction(MainWindow) icon10 = QtGui.QIcon() icon10.addPixmap(QtGui.QPixmap("images/filesave2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Save.setIcon(icon10) self.action_Save.setObjectName("action_Save") self.actionSave_As = QtGui.QAction(MainWindow) self.actionSave_As.setIcon(icon5) self.actionSave_As.setObjectName("actionSave_As") self.action_Exit = QtGui.QAction(MainWindow) icon11 = QtGui.QIcon() icon11.addPixmap(QtGui.QPixmap("images/exitsmall.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Exit.setIcon(icon11) self.action_Exit.setObjectName("action_Exit") self.action_Clear = QtGui.QAction(MainWindow) self.action_Clear.setIcon(icon9) self.action_Clear.setObjectName("action_Clear") self.action_Table_Selection = QtGui.QAction(MainWindow) self.action_Table_Selection.setIcon(icon8) self.action_Table_Selection.setObjectName("action_Table_Selection") self.action_Cut = QtGui.QAction(MainWindow) icon12 = QtGui.QIcon() icon12.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editcut.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Cut.setIcon(icon12) self.action_Cut.setObjectName("action_Cut") self.action_Paste = QtGui.QAction(MainWindow) icon13 = QtGui.QIcon() icon13.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editpaste.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Paste.setIcon(icon13) self.action_Paste.setObjectName("action_Paste") self.actionRunScript = QtGui.QAction(MainWindow) icon14 = QtGui.QIcon() icon14.addPixmap(QtGui.QPixmap("images/software-development.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionRunScript.setIcon(icon14) self.actionRunScript.setObjectName("actionRunScript") self.actionAbout = QtGui.QAction(MainWindow) icon15 = QtGui.QIcon() icon15.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/help.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionAbout.setIcon(icon15) self.actionAbout.setObjectName("actionAbout") self.actionPlot = QtGui.QAction(MainWindow) icon16 = QtGui.QIcon() icon16.addPixmap( QtGui.QPixmap( ":/new/prefix1/icons/120px-Icon_Mathematical_Plot.svg.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionPlot.setIcon(icon16) self.actionPlot.setObjectName("actionPlot") self.actionDelete = QtGui.QAction(MainWindow) icon17 = QtGui.QIcon() icon17.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/xkill.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionDelete.setIcon(icon17) self.actionDelete.setObjectName("actionDelete") self.actionDeleteAll = QtGui.QAction(MainWindow) self.actionDeleteAll.setIcon(icon17) self.actionDeleteAll.setObjectName("actionDeleteAll") self.actionPlotItem = QtGui.QAction(MainWindow) self.actionPlotItem.setIcon(icon16) self.actionPlotItem.setObjectName("actionPlotItem") self.actionHints = QtGui.QAction(MainWindow) self.actionHints.setObjectName("actionHints") self.actionLoad_Folder = QtGui.QAction(MainWindow) icon18 = QtGui.QIcon() icon18.addPixmap(QtGui.QPixmap("images/fileimport.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionLoad_Folder.setIcon(icon18) self.actionLoad_Folder.setObjectName("actionLoad_Folder") self.actionSave_All_Tables = QtGui.QAction(MainWindow) icon19 = QtGui.QIcon() icon19.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kchart_chrt.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionSave_All_Tables.setIcon(icon19) self.actionSave_All_Tables.setObjectName("actionSave_All_Tables") self.actionCopy_Current_Database = QtGui.QAction(MainWindow) self.actionCopy_Current_Database.setIcon(icon13) self.actionCopy_Current_Database.setObjectName( "actionCopy_Current_Database") self.actionSave_Isotope_Profile_A_to_CSV = QtGui.QAction(MainWindow) self.actionSave_Isotope_Profile_A_to_CSV.setIcon(icon10) self.actionSave_Isotope_Profile_A_to_CSV.setObjectName( "actionSave_Isotope_Profile_A_to_CSV") self.actionSave_Isotope_Profile_B_to_CSV = QtGui.QAction(MainWindow) self.actionSave_Isotope_Profile_B_to_CSV.setIcon(icon10) self.actionSave_Isotope_Profile_B_to_CSV.setObjectName( "actionSave_Isotope_Profile_B_to_CSV") self.actionClear_Plot = QtGui.QAction(MainWindow) self.actionClear_Plot.setObjectName("actionClear_Plot") self.menuFile.addAction(self.action_Exit) self.menu_Tools.addAction(self.actionSave_Isotope_Profile_A_to_CSV) self.menu_Tools.addAction(self.actionSave_Isotope_Profile_B_to_CSV) self.menu_Tools.addSeparator() self.menu_Tools.addAction(self.actionClear_Plot) self.menu_Help.addAction(self.actionAbout) self.menu_Help.addAction(self.actionHints) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menu_Tools.menuAction()) self.menubar.addAction(self.menu_Help.menuAction()) self.toolBar.addAction(self.actionRunScript) self.toolBar.addAction(self.actionTools) self.retranslateUi(MainWindow) self.mainTabWidget.setCurrentIndex(3) QtCore.QMetaObject.connectSlotsByName(MainWindow)
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1150, 754) MainWindow.setMinimumSize(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setFamily("Arial") font.setWeight(50) font.setBold(False) MainWindow.setFont(font) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("images/games.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout_2.setObjectName("verticalLayout_2") self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setObjectName("hboxlayout") self.mainTabWidget = QtGui.QTabWidget(self.centralwidget) self.mainTabWidget.setObjectName("mainTabWidget") self.calcTab = QtGui.QWidget() self.calcTab.setObjectName("calcTab") self.verticalLayout_8 = QtGui.QVBoxLayout(self.calcTab) self.verticalLayout_8.setObjectName("verticalLayout_8") self.verticalLayout_7 = QtGui.QVBoxLayout() self.verticalLayout_7.setObjectName("verticalLayout_7") self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.formulaA_CB = QtGui.QCheckBox(self.calcTab) self.formulaA_CB.setChecked(True) self.formulaA_CB.setObjectName("formulaA_CB") self.horizontalLayout_2.addWidget(self.formulaA_CB) self.formulaInputA = QtGui.QLineEdit(self.calcTab) self.formulaInputA.setObjectName("formulaInputA") self.horizontalLayout_2.addWidget(self.formulaInputA) self.calcFormulaA_Btn = QtGui.QToolButton(self.calcTab) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("images/Retro Question Block.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.calcFormulaA_Btn.setIcon(icon1) self.calcFormulaA_Btn.setIconSize(QtCore.QSize(20, 20)) self.calcFormulaA_Btn.setObjectName("calcFormulaA_Btn") self.horizontalLayout_2.addWidget(self.calcFormulaA_Btn) self.formulaA_MW_LE = QtGui.QLineEdit(self.calcTab) self.formulaA_MW_LE.setReadOnly(True) self.formulaA_MW_LE.setObjectName("formulaA_MW_LE") self.horizontalLayout_2.addWidget(self.formulaA_MW_LE) self.label = QtGui.QLabel(self.calcTab) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.line = QtGui.QFrame(self.calcTab) self.line.setFrameShape(QtGui.QFrame.VLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName("line") self.horizontalLayout_2.addWidget(self.line) self.label_7 = QtGui.QLabel(self.calcTab) self.label_7.setObjectName("label_7") self.horizontalLayout_2.addWidget(self.label_7) self.chargeA = QtGui.QSpinBox(self.calcTab) self.chargeA.setMinimum(-99) self.chargeA.setObjectName("chargeA") self.horizontalLayout_2.addWidget(self.chargeA) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.formulaB_CB = QtGui.QCheckBox(self.calcTab) self.formulaB_CB.setChecked(True) self.formulaB_CB.setObjectName("formulaB_CB") self.horizontalLayout_4.addWidget(self.formulaB_CB) self.formulaInputB = QtGui.QLineEdit(self.calcTab) self.formulaInputB.setObjectName("formulaInputB") self.horizontalLayout_4.addWidget(self.formulaInputB) self.calcFormulaB_Btn = QtGui.QToolButton(self.calcTab) self.calcFormulaB_Btn.setIcon(icon1) self.calcFormulaB_Btn.setIconSize(QtCore.QSize(20, 20)) self.calcFormulaB_Btn.setObjectName("calcFormulaB_Btn") self.horizontalLayout_4.addWidget(self.calcFormulaB_Btn) self.formulaB_MW_LE = QtGui.QLineEdit(self.calcTab) self.formulaB_MW_LE.setReadOnly(True) self.formulaB_MW_LE.setObjectName("formulaB_MW_LE") self.horizontalLayout_4.addWidget(self.formulaB_MW_LE) self.label_2 = QtGui.QLabel(self.calcTab) self.label_2.setObjectName("label_2") self.horizontalLayout_4.addWidget(self.label_2) self.line_2 = QtGui.QFrame(self.calcTab) self.line_2.setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName("line_2") self.horizontalLayout_4.addWidget(self.line_2) self.label_10 = QtGui.QLabel(self.calcTab) self.label_10.setObjectName("label_10") self.horizontalLayout_4.addWidget(self.label_10) self.chargeB = QtGui.QSpinBox(self.calcTab) self.chargeB.setMinimum(-99) self.chargeB.setObjectName("chargeB") self.horizontalLayout_4.addWidget(self.chargeB) self.verticalLayout_3.addLayout(self.horizontalLayout_4) self.verticalLayout_7.addLayout(self.verticalLayout_3) self.plotWidget = MPL_Widget(self.calcTab) self.plotWidget.setObjectName("plotWidget") self.verticalLayout_7.addWidget(self.plotWidget) self.verticalLayout_8.addLayout(self.verticalLayout_7) self.mainTabWidget.addTab(self.calcTab, "") self.periodTab = QtGui.QWidget() self.periodTab.setObjectName("periodTab") self.elemTableWidget = QtGui.QTableWidget(self.periodTab) self.elemTableWidget.setEnabled(True) self.elemTableWidget.setGeometry(QtCore.QRect(730, 10, 256, 584)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.elemTableWidget.sizePolicy().hasHeightForWidth()) self.elemTableWidget.setSizePolicy(sizePolicy) self.elemTableWidget.setShowGrid(False) self.elemTableWidget.setRowCount(13) self.elemTableWidget.setColumnCount(2) self.elemTableWidget.setObjectName("elemTableWidget") self.elemTableWidget.setColumnCount(2) self.elemTableWidget.setRowCount(13) self.mainTabWidget.addTab(self.periodTab, "") self.configTab = QtGui.QWidget() self.configTab.setObjectName("configTab") self.horizontalLayout_6 = QtGui.QHBoxLayout(self.configTab) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.label_4 = QtGui.QLabel(self.configTab) self.label_4.setObjectName("label_4") self.verticalLayout_4.addWidget(self.label_4) self.plotTypeList = QtGui.QListWidget(self.configTab) self.plotTypeList.setObjectName("plotTypeList") self.verticalLayout_4.addWidget(self.plotTypeList) self.horizontalLayout_5.addLayout(self.verticalLayout_4) self.gridlayout = QtGui.QGridLayout() self.gridlayout.setObjectName("gridlayout") self.updatePlotBtn = QtGui.QPushButton(self.configTab) self.updatePlotBtn.setEnabled(True) self.updatePlotBtn.setObjectName("updatePlotBtn") self.gridlayout.addWidget(self.updatePlotBtn, 3, 0, 1, 1) self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setObjectName("hboxlayout1") self.cb_logx = QtGui.QCheckBox(self.configTab) self.cb_logx.setEnabled(False) self.cb_logx.setObjectName("cb_logx") self.hboxlayout1.addWidget(self.cb_logx) self.cb_logy = QtGui.QCheckBox(self.configTab) self.cb_logy.setEnabled(False) self.cb_logy.setObjectName("cb_logy") self.hboxlayout1.addWidget(self.cb_logy) self.gridlayout.addLayout(self.hboxlayout1, 2, 0, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_8 = QtGui.QLabel(self.configTab) self.label_8.setEnabled(False) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.horizontalLayout_3.addWidget(self.label_8) self.sizeModSpinBox = QtGui.QDoubleSpinBox(self.configTab) self.sizeModSpinBox.setEnabled(False) self.sizeModSpinBox.setMinimum(0.0) self.sizeModSpinBox.setSingleStep(0.5) self.sizeModSpinBox.setProperty("value", QtCore.QVariant(1.5)) self.sizeModSpinBox.setObjectName("sizeModSpinBox") self.horizontalLayout_3.addWidget(self.sizeModSpinBox) self.gridlayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_3 = QtGui.QLabel(self.configTab) self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) self.isoResCalc_SB = QtGui.QDoubleSpinBox(self.configTab) self.isoResCalc_SB.setDecimals(1) self.isoResCalc_SB.setMinimum(10.0) self.isoResCalc_SB.setMaximum(10000000.0) self.isoResCalc_SB.setSingleStep(500.0) self.isoResCalc_SB.setProperty("value", QtCore.QVariant(10000.0)) self.isoResCalc_SB.setObjectName("isoResCalc_SB") self.horizontalLayout.addWidget(self.isoResCalc_SB) self.gridlayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.horizontalLayout_5.addLayout(self.gridlayout) self.verticalLayout.addLayout(self.horizontalLayout_5) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.horizontalLayout_6.addLayout(self.verticalLayout) self.mainTabWidget.addTab(self.configTab, "") self.tab = QtGui.QWidget() self.tab.setObjectName("tab") self.gridLayout = QtGui.QGridLayout(self.tab) self.gridLayout.setObjectName("gridLayout") self.verticalLayout_5 = QtGui.QVBoxLayout() self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_5 = QtGui.QLabel(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setMaximumSize(QtCore.QSize(75, 16777215)) self.label_5.setObjectName("label_5") self.horizontalLayout_7.addWidget(self.label_5) self.plotListBtn = QtGui.QToolButton(self.tab) self.plotListBtn.setObjectName("plotListBtn") self.horizontalLayout_7.addWidget(self.plotListBtn) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem1) self.clearCpndPlotBtn = QtGui.QToolButton(self.tab) self.clearCpndPlotBtn.setObjectName("clearCpndPlotBtn") self.horizontalLayout_7.addWidget(self.clearCpndPlotBtn) self.verticalLayout_5.addLayout(self.horizontalLayout_7) self.plotGaussCB = QtGui.QCheckBox(self.tab) self.plotGaussCB.setChecked(True) self.plotGaussCB.setObjectName("plotGaussCB") self.verticalLayout_5.addWidget(self.plotGaussCB) self.cmpdListWidget = CustomTable(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmpdListWidget.sizePolicy().hasHeightForWidth()) self.cmpdListWidget.setSizePolicy(sizePolicy) self.cmpdListWidget.setMaximumSize(QtCore.QSize(300, 16777215)) self.cmpdListWidget.setRowCount(20) self.cmpdListWidget.setColumnCount(3) self.cmpdListWidget.setObjectName("cmpdListWidget") self.cmpdListWidget.setColumnCount(3) self.cmpdListWidget.setRowCount(20) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(2, item) self.verticalLayout_5.addWidget(self.cmpdListWidget) self.gridLayout.addLayout(self.verticalLayout_5, 0, 0, 1, 1) self.cmpdPlotWidget = MPL_Widget(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmpdPlotWidget.sizePolicy().hasHeightForWidth()) self.cmpdPlotWidget.setSizePolicy(sizePolicy) self.cmpdPlotWidget.setObjectName("cmpdPlotWidget") self.gridLayout.addWidget(self.cmpdPlotWidget, 0, 1, 1, 1) self.mainTabWidget.addTab(self.tab, "") self.hboxlayout.addWidget(self.mainTabWidget) self.verticalLayout_2.addLayout(self.hboxlayout) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1150, 22)) font = QtGui.QFont() font.setFamily("Arial") font.setWeight(50) font.setBold(False) self.menubar.setFont(font) self.menubar.setObjectName("menubar") self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menu_Tools = QtGui.QMenu(self.menubar) self.menu_Tools.setObjectName("menu_Tools") self.menu_Help = QtGui.QMenu(self.menubar) self.menu_Help.setObjectName("menu_Help") MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.toolBar = QtGui.QToolBar(MainWindow) self.toolBar.setEnabled(True) self.toolBar.setMinimumSize(QtCore.QSize(12, 25)) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) self.action_Edit = QtGui.QAction(MainWindow) self.action_Edit.setObjectName("action_Edit") self.action_Tools = QtGui.QAction(MainWindow) icon2 = QtGui.QIcon() icon2.addPixmap( QtGui.QPixmap(":/new/prefix1/icons/Service Manager.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Tools.setIcon(icon2) self.action_Tools.setObjectName("action_Tools") self.actionFileOpen = QtGui.QAction(MainWindow) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap("images/fileopen.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileOpen.setIcon(icon3) self.actionFileOpen.setObjectName("actionFileOpen") self.actionFileSave = QtGui.QAction(MainWindow) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesave2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileSave.setIcon(icon4) self.actionFileSave.setObjectName("actionFileSave") self.actionFileSaveAs = QtGui.QAction(MainWindow) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesaveas.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileSaveAs.setIcon(icon5) self.actionFileSaveAs.setObjectName("actionFileSaveAs") self.actionNewFile = QtGui.QAction(MainWindow) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filenew.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionNewFile.setIcon(icon6) self.actionNewFile.setObjectName("actionNewFile") self.actionTools = QtGui.QAction(MainWindow) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap("images/Service Manager.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionTools.setIcon(icon7) self.actionTools.setObjectName("actionTools") self.action_getSelection = QtGui.QAction(MainWindow) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kspread_ksp.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_getSelection.setIcon(icon8) self.action_getSelection.setObjectName("action_getSelection") self.actionClear = QtGui.QAction(MainWindow) icon9 = QtGui.QIcon() icon9.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/cleanlarge.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionClear.setIcon(icon9) self.actionClear.setObjectName("actionClear") self.action_New = QtGui.QAction(MainWindow) self.action_New.setIcon(icon6) self.action_New.setObjectName("action_New") self.action_Open = QtGui.QAction(MainWindow) self.action_Open.setIcon(icon3) self.action_Open.setObjectName("action_Open") self.action_Save = QtGui.QAction(MainWindow) icon10 = QtGui.QIcon() icon10.addPixmap(QtGui.QPixmap("images/filesave2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Save.setIcon(icon10) self.action_Save.setObjectName("action_Save") self.actionSave_As = QtGui.QAction(MainWindow) self.actionSave_As.setIcon(icon5) self.actionSave_As.setObjectName("actionSave_As") self.action_Exit = QtGui.QAction(MainWindow) icon11 = QtGui.QIcon() icon11.addPixmap(QtGui.QPixmap("images/exitsmall.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Exit.setIcon(icon11) self.action_Exit.setObjectName("action_Exit") self.action_Clear = QtGui.QAction(MainWindow) self.action_Clear.setIcon(icon9) self.action_Clear.setObjectName("action_Clear") self.action_Table_Selection = QtGui.QAction(MainWindow) self.action_Table_Selection.setIcon(icon8) self.action_Table_Selection.setObjectName("action_Table_Selection") self.action_Cut = QtGui.QAction(MainWindow) icon12 = QtGui.QIcon() icon12.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editcut.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Cut.setIcon(icon12) self.action_Cut.setObjectName("action_Cut") self.action_Paste = QtGui.QAction(MainWindow) icon13 = QtGui.QIcon() icon13.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editpaste.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Paste.setIcon(icon13) self.action_Paste.setObjectName("action_Paste") self.actionRunScript = QtGui.QAction(MainWindow) icon14 = QtGui.QIcon() icon14.addPixmap(QtGui.QPixmap("images/software-development.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionRunScript.setIcon(icon14) self.actionRunScript.setObjectName("actionRunScript") self.actionAbout = QtGui.QAction(MainWindow) icon15 = QtGui.QIcon() icon15.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/help.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionAbout.setIcon(icon15) self.actionAbout.setObjectName("actionAbout") self.actionPlot = QtGui.QAction(MainWindow) icon16 = QtGui.QIcon() icon16.addPixmap( QtGui.QPixmap( ":/new/prefix1/icons/120px-Icon_Mathematical_Plot.svg.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionPlot.setIcon(icon16) self.actionPlot.setObjectName("actionPlot") self.actionDelete = QtGui.QAction(MainWindow) icon17 = QtGui.QIcon() icon17.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/xkill.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionDelete.setIcon(icon17) self.actionDelete.setObjectName("actionDelete") self.actionDeleteAll = QtGui.QAction(MainWindow) self.actionDeleteAll.setIcon(icon17) self.actionDeleteAll.setObjectName("actionDeleteAll") self.actionPlotItem = QtGui.QAction(MainWindow) self.actionPlotItem.setIcon(icon16) self.actionPlotItem.setObjectName("actionPlotItem") self.actionHints = QtGui.QAction(MainWindow) self.actionHints.setObjectName("actionHints") self.actionLoad_Folder = QtGui.QAction(MainWindow) icon18 = QtGui.QIcon() icon18.addPixmap(QtGui.QPixmap("images/fileimport.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionLoad_Folder.setIcon(icon18) self.actionLoad_Folder.setObjectName("actionLoad_Folder") self.actionSave_All_Tables = QtGui.QAction(MainWindow) icon19 = QtGui.QIcon() icon19.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kchart_chrt.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionSave_All_Tables.setIcon(icon19) self.actionSave_All_Tables.setObjectName("actionSave_All_Tables") self.actionCopy_Current_Database = QtGui.QAction(MainWindow) self.actionCopy_Current_Database.setIcon(icon13) self.actionCopy_Current_Database.setObjectName( "actionCopy_Current_Database") self.actionSave_Isotope_Profile_A_to_CSV = QtGui.QAction(MainWindow) self.actionSave_Isotope_Profile_A_to_CSV.setIcon(icon10) self.actionSave_Isotope_Profile_A_to_CSV.setObjectName( "actionSave_Isotope_Profile_A_to_CSV") self.actionSave_Isotope_Profile_B_to_CSV = QtGui.QAction(MainWindow) self.actionSave_Isotope_Profile_B_to_CSV.setIcon(icon10) self.actionSave_Isotope_Profile_B_to_CSV.setObjectName( "actionSave_Isotope_Profile_B_to_CSV") self.actionClear_Plot = QtGui.QAction(MainWindow) self.actionClear_Plot.setObjectName("actionClear_Plot") self.menuFile.addAction(self.action_Exit) self.menu_Tools.addAction(self.actionSave_Isotope_Profile_A_to_CSV) self.menu_Tools.addAction(self.actionSave_Isotope_Profile_B_to_CSV) self.menu_Tools.addSeparator() self.menu_Tools.addAction(self.actionClear_Plot) self.menu_Help.addAction(self.actionAbout) self.menu_Help.addAction(self.actionHints) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menu_Tools.menuAction()) self.menubar.addAction(self.menu_Help.menuAction()) self.toolBar.addAction(self.actionRunScript) self.toolBar.addAction(self.actionTools) self.retranslateUi(MainWindow) self.mainTabWidget.setCurrentIndex(3) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle( QtGui.QApplication.translate("MainWindow", "pysotope", None, QtGui.QApplication.UnicodeUTF8)) self.formulaA_CB.setToolTip( QtGui.QApplication.translate( "MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'Arial\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot the isotope pattern for formula A.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.formulaA_CB.setText( QtGui.QApplication.translate("MainWindow", "Forumla A:", None, QtGui.QApplication.UnicodeUTF8)) self.formulaInputA.setText( QtGui.QApplication.translate("MainWindow", "C14H9Cl5", None, QtGui.QApplication.UnicodeUTF8)) self.calcFormulaA_Btn.setText( QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText( QtGui.QApplication.translate("MainWindow", "g/mol", None, QtGui.QApplication.UnicodeUTF8)) self.label_7.setText( QtGui.QApplication.translate("MainWindow", "Charge:", None, QtGui.QApplication.UnicodeUTF8)) self.formulaB_CB.setToolTip( QtGui.QApplication.translate( "MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'Arial\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot the isotope pattern for formula B.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.formulaB_CB.setText( QtGui.QApplication.translate("MainWindow", "Formula B:", None, QtGui.QApplication.UnicodeUTF8)) self.formulaInputB.setText( QtGui.QApplication.translate("MainWindow", "C8H10N4O2", None, QtGui.QApplication.UnicodeUTF8)) self.calcFormulaB_Btn.setText( QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.label_2.setText( QtGui.QApplication.translate("MainWindow", "g/mol", None, QtGui.QApplication.UnicodeUTF8)) self.label_10.setText( QtGui.QApplication.translate("MainWindow", "Charge:", None, QtGui.QApplication.UnicodeUTF8)) self.mainTabWidget.setTabText( self.mainTabWidget.indexOf(self.calcTab), QtGui.QApplication.translate("MainWindow", "MW Calculator", None, QtGui.QApplication.UnicodeUTF8)) self.mainTabWidget.setTabText( self.mainTabWidget.indexOf(self.periodTab), QtGui.QApplication.translate("MainWindow", "Periodic Table", None, QtGui.QApplication.UnicodeUTF8)) self.label_4.setText( QtGui.QApplication.translate("MainWindow", "Plot Types:", None, QtGui.QApplication.UnicodeUTF8)) self.updatePlotBtn.setText( QtGui.QApplication.translate("MainWindow", "Update Plot", None, QtGui.QApplication.UnicodeUTF8)) self.cb_logx.setText( QtGui.QApplication.translate("MainWindow", "Log X", None, QtGui.QApplication.UnicodeUTF8)) self.cb_logy.setText( QtGui.QApplication.translate("MainWindow", "Log Y", None, QtGui.QApplication.UnicodeUTF8)) self.label_8.setText( QtGui.QApplication.translate("MainWindow", "Size Modifier:", None, QtGui.QApplication.UnicodeUTF8)) self.label_3.setText( QtGui.QApplication.translate("MainWindow", "Isotope Calculation Resolution", None, QtGui.QApplication.UnicodeUTF8)) self.mainTabWidget.setTabText( self.mainTabWidget.indexOf(self.configTab), QtGui.QApplication.translate("MainWindow", "Plot Options", None, QtGui.QApplication.UnicodeUTF8)) self.label_5.setText( QtGui.QApplication.translate("MainWindow", "Compound List", None, QtGui.QApplication.UnicodeUTF8)) self.plotListBtn.setToolTip( QtGui.QApplication.translate( "MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'Arial\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot Compound List</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.plotListBtn.setText( QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.clearCpndPlotBtn.setToolTip( QtGui.QApplication.translate( "MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'Arial\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Clear Compound Plot</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.clearCpndPlotBtn.setText( QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.plotGaussCB.setText( QtGui.QApplication.translate("MainWindow", "Plot Gaussian Profiles", None, QtGui.QApplication.UnicodeUTF8)) self.cmpdListWidget.horizontalHeaderItem(0).setText( QtGui.QApplication.translate("MainWindow", "Compound", None, QtGui.QApplication.UnicodeUTF8)) self.cmpdListWidget.horizontalHeaderItem(1).setText( QtGui.QApplication.translate("MainWindow", "Charge", None, QtGui.QApplication.UnicodeUTF8)) self.cmpdListWidget.horizontalHeaderItem(2).setText( QtGui.QApplication.translate("MainWindow", "m/z", None, QtGui.QApplication.UnicodeUTF8)) self.mainTabWidget.setTabText( self.mainTabWidget.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "Table Plot", None, QtGui.QApplication.UnicodeUTF8)) self.menuFile.setTitle( QtGui.QApplication.translate("MainWindow", "&File", None, QtGui.QApplication.UnicodeUTF8)) self.menu_Tools.setTitle( QtGui.QApplication.translate("MainWindow", "&Tools", None, QtGui.QApplication.UnicodeUTF8)) self.menu_Help.setTitle( QtGui.QApplication.translate("MainWindow", "&Help", None, QtGui.QApplication.UnicodeUTF8)) self.toolBar.setWindowTitle( QtGui.QApplication.translate("MainWindow", "toolBar", None, QtGui.QApplication.UnicodeUTF8)) self.action_Edit.setText( QtGui.QApplication.translate("MainWindow", "&Edit", None, QtGui.QApplication.UnicodeUTF8)) self.action_Tools.setText( QtGui.QApplication.translate("MainWindow", "&Tools", None, QtGui.QApplication.UnicodeUTF8)) self.actionFileOpen.setText( QtGui.QApplication.translate("MainWindow", "fileOpen", None, QtGui.QApplication.UnicodeUTF8)) self.actionFileOpen.setToolTip( QtGui.QApplication.translate("MainWindow", "Open File", None, QtGui.QApplication.UnicodeUTF8)) self.actionFileSave.setText( QtGui.QApplication.translate("MainWindow", "fileSave", None, QtGui.QApplication.UnicodeUTF8)) self.actionFileSave.setToolTip( QtGui.QApplication.translate("MainWindow", "Save File", None, QtGui.QApplication.UnicodeUTF8)) self.actionFileSaveAs.setText( QtGui.QApplication.translate("MainWindow", "fileSaveAs", None, QtGui.QApplication.UnicodeUTF8)) self.actionNewFile.setText( QtGui.QApplication.translate("MainWindow", "newFile", None, QtGui.QApplication.UnicodeUTF8)) self.actionNewFile.setToolTip( QtGui.QApplication.translate("MainWindow", "New File", None, QtGui.QApplication.UnicodeUTF8)) self.actionTools.setText( QtGui.QApplication.translate("MainWindow", "Transfer", None, QtGui.QApplication.UnicodeUTF8)) self.actionTools.setIconText( QtGui.QApplication.translate("MainWindow", "Transfer", None, QtGui.QApplication.UnicodeUTF8)) self.actionTools.setToolTip( QtGui.QApplication.translate("MainWindow", "Tools", None, QtGui.QApplication.UnicodeUTF8)) self.action_getSelection.setText( QtGui.QApplication.translate("MainWindow", "getSelection", None, QtGui.QApplication.UnicodeUTF8)) self.action_getSelection.setToolTip( QtGui.QApplication.translate("MainWindow", "Get Table Selection", None, QtGui.QApplication.UnicodeUTF8)) self.actionClear.setText( QtGui.QApplication.translate("MainWindow", "clear", None, QtGui.QApplication.UnicodeUTF8)) self.actionClear.setToolTip( QtGui.QApplication.translate("MainWindow", "Clear Data and Variables", None, QtGui.QApplication.UnicodeUTF8)) self.action_New.setText( QtGui.QApplication.translate("MainWindow", "&New", None, QtGui.QApplication.UnicodeUTF8)) self.action_New.setShortcut( QtGui.QApplication.translate("MainWindow", "Ctrl+N", None, QtGui.QApplication.UnicodeUTF8)) self.action_Open.setText( QtGui.QApplication.translate("MainWindow", "&Open", None, QtGui.QApplication.UnicodeUTF8)) self.action_Open.setShortcut( QtGui.QApplication.translate("MainWindow", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8)) self.action_Save.setText( QtGui.QApplication.translate("MainWindow", "&Save", None, QtGui.QApplication.UnicodeUTF8)) self.action_Save.setShortcut( QtGui.QApplication.translate("MainWindow", "Ctrl+S", None, QtGui.QApplication.UnicodeUTF8)) self.actionSave_As.setText( QtGui.QApplication.translate("MainWindow", "Save &As", None, QtGui.QApplication.UnicodeUTF8)) self.action_Exit.setText( QtGui.QApplication.translate("MainWindow", "&Exit", None, QtGui.QApplication.UnicodeUTF8)) self.action_Exit.setShortcut( QtGui.QApplication.translate("MainWindow", "Ctrl+X", None, QtGui.QApplication.UnicodeUTF8)) self.action_Clear.setText( QtGui.QApplication.translate("MainWindow", "Clea&r", None, QtGui.QApplication.UnicodeUTF8)) self.action_Table_Selection.setText( QtGui.QApplication.translate("MainWindow", "&Table Selection", None, QtGui.QApplication.UnicodeUTF8)) self.action_Cut.setText( QtGui.QApplication.translate("MainWindow", "&Cut", None, QtGui.QApplication.UnicodeUTF8)) self.action_Cut.setShortcut( QtGui.QApplication.translate("MainWindow", "Ctrl+X", None, QtGui.QApplication.UnicodeUTF8)) self.action_Paste.setText( QtGui.QApplication.translate("MainWindow", "&Paste", None, QtGui.QApplication.UnicodeUTF8)) self.action_Paste.setShortcut( QtGui.QApplication.translate("MainWindow", "Ctrl+V", None, QtGui.QApplication.UnicodeUTF8)) self.actionRunScript.setText( QtGui.QApplication.translate("MainWindow", "runScript", None, QtGui.QApplication.UnicodeUTF8)) self.actionRunScript.setToolTip( QtGui.QApplication.translate("MainWindow", "Run Python Script", None, QtGui.QApplication.UnicodeUTF8)) self.actionAbout.setText( QtGui.QApplication.translate("MainWindow", "About", None, QtGui.QApplication.UnicodeUTF8)) self.actionPlot.setText( QtGui.QApplication.translate("MainWindow", "Plot", None, QtGui.QApplication.UnicodeUTF8)) self.actionDelete.setText( QtGui.QApplication.translate("MainWindow", "Delete", None, QtGui.QApplication.UnicodeUTF8)) self.actionDeleteAll.setText( QtGui.QApplication.translate("MainWindow", "DeleteAll", None, QtGui.QApplication.UnicodeUTF8)) self.actionPlotItem.setText( QtGui.QApplication.translate("MainWindow", "PlotItem", None, QtGui.QApplication.UnicodeUTF8)) self.actionPlotItem.setIconText( QtGui.QApplication.translate("MainWindow", "Plot Item", None, QtGui.QApplication.UnicodeUTF8)) self.actionPlotItem.setToolTip( QtGui.QApplication.translate("MainWindow", "Plot Item", None, QtGui.QApplication.UnicodeUTF8)) self.actionHints.setText( QtGui.QApplication.translate("MainWindow", "Hints", None, QtGui.QApplication.UnicodeUTF8)) self.actionLoad_Folder.setText( QtGui.QApplication.translate("MainWindow", "Load Folder", None, QtGui.QApplication.UnicodeUTF8)) self.actionSave_All_Tables.setText( QtGui.QApplication.translate("MainWindow", "Save All Tables to CSV", None, QtGui.QApplication.UnicodeUTF8)) self.actionCopy_Current_Database.setText( QtGui.QApplication.translate("MainWindow", "Copy Current Database", None, QtGui.QApplication.UnicodeUTF8)) self.actionSave_Isotope_Profile_A_to_CSV.setText( QtGui.QApplication.translate("MainWindow", "Save Isotope Profile A to CSV", None, QtGui.QApplication.UnicodeUTF8)) self.actionSave_Isotope_Profile_B_to_CSV.setText( QtGui.QApplication.translate("MainWindow", "Save Isotope Profile B to CSV", None, QtGui.QApplication.UnicodeUTF8)) self.actionClear_Plot.setText( QtGui.QApplication.translate("MainWindow", "Clear Plot", None, QtGui.QApplication.UnicodeUTF8))
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1150, 754) MainWindow.setMinimumSize(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setFamily("Arial") font.setWeight(50) font.setBold(False) MainWindow.setFont(font) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("images/games.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout_2.setObjectName("verticalLayout_2") self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setObjectName("hboxlayout") self.mainTabWidget = QtGui.QTabWidget(self.centralwidget) self.mainTabWidget.setObjectName("mainTabWidget") self.calcTab = QtGui.QWidget() self.calcTab.setObjectName("calcTab") self.verticalLayout_8 = QtGui.QVBoxLayout(self.calcTab) self.verticalLayout_8.setObjectName("verticalLayout_8") self.verticalLayout_7 = QtGui.QVBoxLayout() self.verticalLayout_7.setObjectName("verticalLayout_7") self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.formulaA_CB = QtGui.QCheckBox(self.calcTab) self.formulaA_CB.setChecked(True) self.formulaA_CB.setObjectName("formulaA_CB") self.horizontalLayout_2.addWidget(self.formulaA_CB) self.formulaInputA = QtGui.QLineEdit(self.calcTab) self.formulaInputA.setObjectName("formulaInputA") self.horizontalLayout_2.addWidget(self.formulaInputA) self.calcFormulaA_Btn = QtGui.QToolButton(self.calcTab) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("images/Retro Question Block.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.calcFormulaA_Btn.setIcon(icon1) self.calcFormulaA_Btn.setIconSize(QtCore.QSize(20, 20)) self.calcFormulaA_Btn.setObjectName("calcFormulaA_Btn") self.horizontalLayout_2.addWidget(self.calcFormulaA_Btn) self.formulaA_MW_LE = QtGui.QLineEdit(self.calcTab) self.formulaA_MW_LE.setReadOnly(True) self.formulaA_MW_LE.setObjectName("formulaA_MW_LE") self.horizontalLayout_2.addWidget(self.formulaA_MW_LE) self.label = QtGui.QLabel(self.calcTab) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.line = QtGui.QFrame(self.calcTab) self.line.setFrameShape(QtGui.QFrame.VLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName("line") self.horizontalLayout_2.addWidget(self.line) self.label_7 = QtGui.QLabel(self.calcTab) self.label_7.setObjectName("label_7") self.horizontalLayout_2.addWidget(self.label_7) self.chargeA = QtGui.QSpinBox(self.calcTab) self.chargeA.setMinimum(-99) self.chargeA.setObjectName("chargeA") self.horizontalLayout_2.addWidget(self.chargeA) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.formulaB_CB = QtGui.QCheckBox(self.calcTab) self.formulaB_CB.setChecked(True) self.formulaB_CB.setObjectName("formulaB_CB") self.horizontalLayout_4.addWidget(self.formulaB_CB) self.formulaInputB = QtGui.QLineEdit(self.calcTab) self.formulaInputB.setObjectName("formulaInputB") self.horizontalLayout_4.addWidget(self.formulaInputB) self.calcFormulaB_Btn = QtGui.QToolButton(self.calcTab) self.calcFormulaB_Btn.setIcon(icon1) self.calcFormulaB_Btn.setIconSize(QtCore.QSize(20, 20)) self.calcFormulaB_Btn.setObjectName("calcFormulaB_Btn") self.horizontalLayout_4.addWidget(self.calcFormulaB_Btn) self.formulaB_MW_LE = QtGui.QLineEdit(self.calcTab) self.formulaB_MW_LE.setReadOnly(True) self.formulaB_MW_LE.setObjectName("formulaB_MW_LE") self.horizontalLayout_4.addWidget(self.formulaB_MW_LE) self.label_2 = QtGui.QLabel(self.calcTab) self.label_2.setObjectName("label_2") self.horizontalLayout_4.addWidget(self.label_2) self.line_2 = QtGui.QFrame(self.calcTab) self.line_2.setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName("line_2") self.horizontalLayout_4.addWidget(self.line_2) self.label_10 = QtGui.QLabel(self.calcTab) self.label_10.setObjectName("label_10") self.horizontalLayout_4.addWidget(self.label_10) self.chargeB = QtGui.QSpinBox(self.calcTab) self.chargeB.setMinimum(-99) self.chargeB.setObjectName("chargeB") self.horizontalLayout_4.addWidget(self.chargeB) self.verticalLayout_3.addLayout(self.horizontalLayout_4) self.verticalLayout_7.addLayout(self.verticalLayout_3) self.plotWidget = MPL_Widget(self.calcTab) self.plotWidget.setObjectName("plotWidget") self.verticalLayout_7.addWidget(self.plotWidget) self.verticalLayout_8.addLayout(self.verticalLayout_7) self.mainTabWidget.addTab(self.calcTab, "") self.periodTab = QtGui.QWidget() self.periodTab.setObjectName("periodTab") self.elemTableWidget = QtGui.QTableWidget(self.periodTab) self.elemTableWidget.setEnabled(True) self.elemTableWidget.setGeometry(QtCore.QRect(730, 10, 256, 584)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.elemTableWidget.sizePolicy().hasHeightForWidth()) self.elemTableWidget.setSizePolicy(sizePolicy) self.elemTableWidget.setShowGrid(False) self.elemTableWidget.setRowCount(13) self.elemTableWidget.setColumnCount(2) self.elemTableWidget.setObjectName("elemTableWidget") self.elemTableWidget.setColumnCount(2) self.elemTableWidget.setRowCount(13) self.mainTabWidget.addTab(self.periodTab, "") self.configTab = QtGui.QWidget() self.configTab.setObjectName("configTab") self.horizontalLayout_6 = QtGui.QHBoxLayout(self.configTab) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.label_4 = QtGui.QLabel(self.configTab) self.label_4.setObjectName("label_4") self.verticalLayout_4.addWidget(self.label_4) self.plotTypeList = QtGui.QListWidget(self.configTab) self.plotTypeList.setObjectName("plotTypeList") self.verticalLayout_4.addWidget(self.plotTypeList) self.horizontalLayout_5.addLayout(self.verticalLayout_4) self.gridlayout = QtGui.QGridLayout() self.gridlayout.setObjectName("gridlayout") self.updatePlotBtn = QtGui.QPushButton(self.configTab) self.updatePlotBtn.setEnabled(True) self.updatePlotBtn.setObjectName("updatePlotBtn") self.gridlayout.addWidget(self.updatePlotBtn, 3, 0, 1, 1) self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setObjectName("hboxlayout1") self.cb_logx = QtGui.QCheckBox(self.configTab) self.cb_logx.setEnabled(False) self.cb_logx.setObjectName("cb_logx") self.hboxlayout1.addWidget(self.cb_logx) self.cb_logy = QtGui.QCheckBox(self.configTab) self.cb_logy.setEnabled(False) self.cb_logy.setObjectName("cb_logy") self.hboxlayout1.addWidget(self.cb_logy) self.gridlayout.addLayout(self.hboxlayout1, 2, 0, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_8 = QtGui.QLabel(self.configTab) self.label_8.setEnabled(False) self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.horizontalLayout_3.addWidget(self.label_8) self.sizeModSpinBox = QtGui.QDoubleSpinBox(self.configTab) self.sizeModSpinBox.setEnabled(False) self.sizeModSpinBox.setMinimum(0.0) self.sizeModSpinBox.setSingleStep(0.5) self.sizeModSpinBox.setProperty("value", QtCore.QVariant(1.5)) self.sizeModSpinBox.setObjectName("sizeModSpinBox") self.horizontalLayout_3.addWidget(self.sizeModSpinBox) self.gridlayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_3 = QtGui.QLabel(self.configTab) self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) self.isoResCalc_SB = QtGui.QDoubleSpinBox(self.configTab) self.isoResCalc_SB.setDecimals(1) self.isoResCalc_SB.setMinimum(10.0) self.isoResCalc_SB.setMaximum(10000000.0) self.isoResCalc_SB.setSingleStep(500.0) self.isoResCalc_SB.setProperty("value", QtCore.QVariant(10000.0)) self.isoResCalc_SB.setObjectName("isoResCalc_SB") self.horizontalLayout.addWidget(self.isoResCalc_SB) self.gridlayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.horizontalLayout_5.addLayout(self.gridlayout) self.verticalLayout.addLayout(self.horizontalLayout_5) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.horizontalLayout_6.addLayout(self.verticalLayout) self.mainTabWidget.addTab(self.configTab, "") self.tab = QtGui.QWidget() self.tab.setObjectName("tab") self.gridLayout = QtGui.QGridLayout(self.tab) self.gridLayout.setObjectName("gridLayout") self.verticalLayout_5 = QtGui.QVBoxLayout() self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_5 = QtGui.QLabel(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setMaximumSize(QtCore.QSize(75, 16777215)) self.label_5.setObjectName("label_5") self.horizontalLayout_7.addWidget(self.label_5) self.plotListBtn = QtGui.QToolButton(self.tab) self.plotListBtn.setObjectName("plotListBtn") self.horizontalLayout_7.addWidget(self.plotListBtn) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem1) self.clearCpndPlotBtn = QtGui.QToolButton(self.tab) self.clearCpndPlotBtn.setObjectName("clearCpndPlotBtn") self.horizontalLayout_7.addWidget(self.clearCpndPlotBtn) self.verticalLayout_5.addLayout(self.horizontalLayout_7) self.plotGaussCB = QtGui.QCheckBox(self.tab) self.plotGaussCB.setChecked(True) self.plotGaussCB.setObjectName("plotGaussCB") self.verticalLayout_5.addWidget(self.plotGaussCB) self.cmpdListWidget = CustomTable(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmpdListWidget.sizePolicy().hasHeightForWidth()) self.cmpdListWidget.setSizePolicy(sizePolicy) self.cmpdListWidget.setMaximumSize(QtCore.QSize(300, 16777215)) self.cmpdListWidget.setRowCount(20) self.cmpdListWidget.setColumnCount(3) self.cmpdListWidget.setObjectName("cmpdListWidget") self.cmpdListWidget.setColumnCount(3) self.cmpdListWidget.setRowCount(20) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(2, item) self.verticalLayout_5.addWidget(self.cmpdListWidget) self.gridLayout.addLayout(self.verticalLayout_5, 0, 0, 1, 1) self.cmpdPlotWidget = MPL_Widget(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmpdPlotWidget.sizePolicy().hasHeightForWidth()) self.cmpdPlotWidget.setSizePolicy(sizePolicy) self.cmpdPlotWidget.setObjectName("cmpdPlotWidget") self.gridLayout.addWidget(self.cmpdPlotWidget, 0, 1, 1, 1) self.mainTabWidget.addTab(self.tab, "") self.hboxlayout.addWidget(self.mainTabWidget) self.verticalLayout_2.addLayout(self.hboxlayout) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1150, 22)) font = QtGui.QFont() font.setFamily("Arial") font.setWeight(50) font.setBold(False) self.menubar.setFont(font) self.menubar.setObjectName("menubar") self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menu_Tools = QtGui.QMenu(self.menubar) self.menu_Tools.setObjectName("menu_Tools") self.menu_Help = QtGui.QMenu(self.menubar) self.menu_Help.setObjectName("menu_Help") MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.toolBar = QtGui.QToolBar(MainWindow) self.toolBar.setEnabled(True) self.toolBar.setMinimumSize(QtCore.QSize(12, 25)) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) self.action_Edit = QtGui.QAction(MainWindow) self.action_Edit.setObjectName("action_Edit") self.action_Tools = QtGui.QAction(MainWindow) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/Service Manager.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Tools.setIcon(icon2) self.action_Tools.setObjectName("action_Tools") self.actionFileOpen = QtGui.QAction(MainWindow) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap("images/fileopen.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileOpen.setIcon(icon3) self.actionFileOpen.setObjectName("actionFileOpen") self.actionFileSave = QtGui.QAction(MainWindow) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesave2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileSave.setIcon(icon4) self.actionFileSave.setObjectName("actionFileSave") self.actionFileSaveAs = QtGui.QAction(MainWindow) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesaveas.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileSaveAs.setIcon(icon5) self.actionFileSaveAs.setObjectName("actionFileSaveAs") self.actionNewFile = QtGui.QAction(MainWindow) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filenew.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionNewFile.setIcon(icon6) self.actionNewFile.setObjectName("actionNewFile") self.actionTools = QtGui.QAction(MainWindow) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap("images/Service Manager.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionTools.setIcon(icon7) self.actionTools.setObjectName("actionTools") self.action_getSelection = QtGui.QAction(MainWindow) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kspread_ksp.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_getSelection.setIcon(icon8) self.action_getSelection.setObjectName("action_getSelection") self.actionClear = QtGui.QAction(MainWindow) icon9 = QtGui.QIcon() icon9.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/cleanlarge.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionClear.setIcon(icon9) self.actionClear.setObjectName("actionClear") self.action_New = QtGui.QAction(MainWindow) self.action_New.setIcon(icon6) self.action_New.setObjectName("action_New") self.action_Open = QtGui.QAction(MainWindow) self.action_Open.setIcon(icon3) self.action_Open.setObjectName("action_Open") self.action_Save = QtGui.QAction(MainWindow) icon10 = QtGui.QIcon() icon10.addPixmap(QtGui.QPixmap("images/filesave2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Save.setIcon(icon10) self.action_Save.setObjectName("action_Save") self.actionSave_As = QtGui.QAction(MainWindow) self.actionSave_As.setIcon(icon5) self.actionSave_As.setObjectName("actionSave_As") self.action_Exit = QtGui.QAction(MainWindow) icon11 = QtGui.QIcon() icon11.addPixmap(QtGui.QPixmap("images/exitsmall.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Exit.setIcon(icon11) self.action_Exit.setObjectName("action_Exit") self.action_Clear = QtGui.QAction(MainWindow) self.action_Clear.setIcon(icon9) self.action_Clear.setObjectName("action_Clear") self.action_Table_Selection = QtGui.QAction(MainWindow) self.action_Table_Selection.setIcon(icon8) self.action_Table_Selection.setObjectName("action_Table_Selection") self.action_Cut = QtGui.QAction(MainWindow) icon12 = QtGui.QIcon() icon12.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editcut.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Cut.setIcon(icon12) self.action_Cut.setObjectName("action_Cut") self.action_Paste = QtGui.QAction(MainWindow) icon13 = QtGui.QIcon() icon13.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editpaste.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Paste.setIcon(icon13) self.action_Paste.setObjectName("action_Paste") self.actionRunScript = QtGui.QAction(MainWindow) icon14 = QtGui.QIcon() icon14.addPixmap(QtGui.QPixmap("images/software-development.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionRunScript.setIcon(icon14) self.actionRunScript.setObjectName("actionRunScript") self.actionAbout = QtGui.QAction(MainWindow) icon15 = QtGui.QIcon() icon15.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/help.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionAbout.setIcon(icon15) self.actionAbout.setObjectName("actionAbout") self.actionPlot = QtGui.QAction(MainWindow) icon16 = QtGui.QIcon() icon16.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/120px-Icon_Mathematical_Plot.svg.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionPlot.setIcon(icon16) self.actionPlot.setObjectName("actionPlot") self.actionDelete = QtGui.QAction(MainWindow) icon17 = QtGui.QIcon() icon17.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/xkill.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionDelete.setIcon(icon17) self.actionDelete.setObjectName("actionDelete") self.actionDeleteAll = QtGui.QAction(MainWindow) self.actionDeleteAll.setIcon(icon17) self.actionDeleteAll.setObjectName("actionDeleteAll") self.actionPlotItem = QtGui.QAction(MainWindow) self.actionPlotItem.setIcon(icon16) self.actionPlotItem.setObjectName("actionPlotItem") self.actionHints = QtGui.QAction(MainWindow) self.actionHints.setObjectName("actionHints") self.actionLoad_Folder = QtGui.QAction(MainWindow) icon18 = QtGui.QIcon() icon18.addPixmap(QtGui.QPixmap("images/fileimport.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionLoad_Folder.setIcon(icon18) self.actionLoad_Folder.setObjectName("actionLoad_Folder") self.actionSave_All_Tables = QtGui.QAction(MainWindow) icon19 = QtGui.QIcon() icon19.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kchart_chrt.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionSave_All_Tables.setIcon(icon19) self.actionSave_All_Tables.setObjectName("actionSave_All_Tables") self.actionCopy_Current_Database = QtGui.QAction(MainWindow) self.actionCopy_Current_Database.setIcon(icon13) self.actionCopy_Current_Database.setObjectName("actionCopy_Current_Database") self.actionSave_Isotope_Profile_A_to_CSV = QtGui.QAction(MainWindow) self.actionSave_Isotope_Profile_A_to_CSV.setIcon(icon10) self.actionSave_Isotope_Profile_A_to_CSV.setObjectName("actionSave_Isotope_Profile_A_to_CSV") self.actionSave_Isotope_Profile_B_to_CSV = QtGui.QAction(MainWindow) self.actionSave_Isotope_Profile_B_to_CSV.setIcon(icon10) self.actionSave_Isotope_Profile_B_to_CSV.setObjectName("actionSave_Isotope_Profile_B_to_CSV") self.actionClear_Plot = QtGui.QAction(MainWindow) self.actionClear_Plot.setObjectName("actionClear_Plot") self.menuFile.addAction(self.action_Exit) self.menu_Tools.addAction(self.actionSave_Isotope_Profile_A_to_CSV) self.menu_Tools.addAction(self.actionSave_Isotope_Profile_B_to_CSV) self.menu_Tools.addSeparator() self.menu_Tools.addAction(self.actionClear_Plot) self.menu_Help.addAction(self.actionAbout) self.menu_Help.addAction(self.actionHints) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menu_Tools.menuAction()) self.menubar.addAction(self.menu_Help.menuAction()) self.toolBar.addAction(self.actionRunScript) self.toolBar.addAction(self.actionTools) self.retranslateUi(MainWindow) self.mainTabWidget.setCurrentIndex(3) QtCore.QMetaObject.connectSlotsByName(MainWindow)
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1150, 754) MainWindow.setMinimumSize(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setFamily("Arial") font.setWeight(50) font.setBold(False) MainWindow.setFont(font) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("images/games.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout_2.setObjectName("verticalLayout_2") self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setObjectName("hboxlayout") self.mainTabWidget = QtGui.QTabWidget(self.centralwidget) self.mainTabWidget.setObjectName("mainTabWidget") self.calcTab = QtGui.QWidget() self.calcTab.setObjectName("calcTab") self.verticalLayout_8 = QtGui.QVBoxLayout(self.calcTab) self.verticalLayout_8.setObjectName("verticalLayout_8") self.verticalLayout_7 = QtGui.QVBoxLayout() self.verticalLayout_7.setObjectName("verticalLayout_7") self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.formulaA_CB = QtGui.QCheckBox(self.calcTab) self.formulaA_CB.setChecked(True) self.formulaA_CB.setObjectName("formulaA_CB") self.horizontalLayout_2.addWidget(self.formulaA_CB) self.formulaInputA = QtGui.QLineEdit(self.calcTab) self.formulaInputA.setObjectName("formulaInputA") self.horizontalLayout_2.addWidget(self.formulaInputA) self.calcFormulaA_Btn = QtGui.QToolButton(self.calcTab) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("images/Retro Question Block.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.calcFormulaA_Btn.setIcon(icon1) self.calcFormulaA_Btn.setIconSize(QtCore.QSize(20, 20)) self.calcFormulaA_Btn.setObjectName("calcFormulaA_Btn") self.horizontalLayout_2.addWidget(self.calcFormulaA_Btn) self.formulaA_MW_LE = QtGui.QLineEdit(self.calcTab) self.formulaA_MW_LE.setReadOnly(True) self.formulaA_MW_LE.setObjectName("formulaA_MW_LE") self.horizontalLayout_2.addWidget(self.formulaA_MW_LE) self.label = QtGui.QLabel(self.calcTab) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.line = QtGui.QFrame(self.calcTab) self.line.setFrameShape(QtGui.QFrame.VLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName("line") self.horizontalLayout_2.addWidget(self.line) self.label_7 = QtGui.QLabel(self.calcTab) self.label_7.setObjectName("label_7") self.horizontalLayout_2.addWidget(self.label_7) self.chargeA = QtGui.QSpinBox(self.calcTab) self.chargeA.setMinimum(-99) self.chargeA.setObjectName("chargeA") self.horizontalLayout_2.addWidget(self.chargeA) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.formulaB_CB = QtGui.QCheckBox(self.calcTab) self.formulaB_CB.setChecked(True) self.formulaB_CB.setObjectName("formulaB_CB") self.horizontalLayout_4.addWidget(self.formulaB_CB) self.formulaInputB = QtGui.QLineEdit(self.calcTab) self.formulaInputB.setObjectName("formulaInputB") self.horizontalLayout_4.addWidget(self.formulaInputB) self.calcFormulaB_Btn = QtGui.QToolButton(self.calcTab) self.calcFormulaB_Btn.setIcon(icon1) self.calcFormulaB_Btn.setIconSize(QtCore.QSize(20, 20)) self.calcFormulaB_Btn.setObjectName("calcFormulaB_Btn") self.horizontalLayout_4.addWidget(self.calcFormulaB_Btn) self.formulaB_MW_LE = QtGui.QLineEdit(self.calcTab) self.formulaB_MW_LE.setReadOnly(True) self.formulaB_MW_LE.setObjectName("formulaB_MW_LE") self.horizontalLayout_4.addWidget(self.formulaB_MW_LE) self.label_2 = QtGui.QLabel(self.calcTab) self.label_2.setObjectName("label_2") self.horizontalLayout_4.addWidget(self.label_2) self.line_2 = QtGui.QFrame(self.calcTab) self.line_2.setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName("line_2") self.horizontalLayout_4.addWidget(self.line_2) self.label_10 = QtGui.QLabel(self.calcTab) self.label_10.setObjectName("label_10") self.horizontalLayout_4.addWidget(self.label_10) self.chargeB = QtGui.QSpinBox(self.calcTab) self.chargeB.setMinimum(-99) self.chargeB.setObjectName("chargeB") self.horizontalLayout_4.addWidget(self.chargeB) self.verticalLayout_3.addLayout(self.horizontalLayout_4) self.verticalLayout_7.addLayout(self.verticalLayout_3) self.plotWidget = MPL_Widget(self.calcTab) self.plotWidget.setObjectName("plotWidget") self.verticalLayout_7.addWidget(self.plotWidget) self.verticalLayout_8.addLayout(self.verticalLayout_7) self.mainTabWidget.addTab(self.calcTab, "") self.periodTab = QtGui.QWidget() self.periodTab.setObjectName("periodTab") self.elemTableWidget = QtGui.QTableWidget(self.periodTab) self.elemTableWidget.setEnabled(True) self.elemTableWidget.setGeometry(QtCore.QRect(730, 10, 256, 584)) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.elemTableWidget.sizePolicy().hasHeightForWidth()) self.elemTableWidget.setSizePolicy(sizePolicy) self.elemTableWidget.setShowGrid(False) self.elemTableWidget.setRowCount(13) self.elemTableWidget.setColumnCount(2) self.elemTableWidget.setObjectName("elemTableWidget") self.elemTableWidget.setColumnCount(2) self.elemTableWidget.setRowCount(13) self.mainTabWidget.addTab(self.periodTab, "") self.configTab = QtGui.QWidget() self.configTab.setObjectName("configTab") self.horizontalLayout_6 = QtGui.QHBoxLayout(self.configTab) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.label_4 = QtGui.QLabel(self.configTab) self.label_4.setObjectName("label_4") self.verticalLayout_4.addWidget(self.label_4) self.plotTypeList = QtGui.QListWidget(self.configTab) self.plotTypeList.setObjectName("plotTypeList") self.verticalLayout_4.addWidget(self.plotTypeList) self.horizontalLayout_5.addLayout(self.verticalLayout_4) self.gridlayout = QtGui.QGridLayout() self.gridlayout.setObjectName("gridlayout") self.updatePlotBtn = QtGui.QPushButton(self.configTab) self.updatePlotBtn.setEnabled(True) self.updatePlotBtn.setObjectName("updatePlotBtn") self.gridlayout.addWidget(self.updatePlotBtn, 3, 0, 1, 1) self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setObjectName("hboxlayout1") self.cb_logx = QtGui.QCheckBox(self.configTab) self.cb_logx.setEnabled(False) self.cb_logx.setObjectName("cb_logx") self.hboxlayout1.addWidget(self.cb_logx) self.cb_logy = QtGui.QCheckBox(self.configTab) self.cb_logy.setEnabled(False) self.cb_logy.setObjectName("cb_logy") self.hboxlayout1.addWidget(self.cb_logy) self.gridlayout.addLayout(self.hboxlayout1, 2, 0, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_8 = QtGui.QLabel(self.configTab) self.label_8.setEnabled(False) self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.horizontalLayout_3.addWidget(self.label_8) self.sizeModSpinBox = QtGui.QDoubleSpinBox(self.configTab) self.sizeModSpinBox.setEnabled(False) self.sizeModSpinBox.setMinimum(0.0) self.sizeModSpinBox.setSingleStep(0.5) self.sizeModSpinBox.setProperty("value", QtCore.QVariant(1.5)) self.sizeModSpinBox.setObjectName("sizeModSpinBox") self.horizontalLayout_3.addWidget(self.sizeModSpinBox) self.gridlayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_3 = QtGui.QLabel(self.configTab) self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) self.isoResCalc_SB = QtGui.QDoubleSpinBox(self.configTab) self.isoResCalc_SB.setDecimals(1) self.isoResCalc_SB.setMinimum(10.0) self.isoResCalc_SB.setMaximum(10000000.0) self.isoResCalc_SB.setSingleStep(500.0) self.isoResCalc_SB.setProperty("value", QtCore.QVariant(10000.0)) self.isoResCalc_SB.setObjectName("isoResCalc_SB") self.horizontalLayout.addWidget(self.isoResCalc_SB) self.gridlayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.horizontalLayout_5.addLayout(self.gridlayout) self.verticalLayout.addLayout(self.horizontalLayout_5) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.horizontalLayout_6.addLayout(self.verticalLayout) self.mainTabWidget.addTab(self.configTab, "") self.tab = QtGui.QWidget() self.tab.setObjectName("tab") self.gridLayout = QtGui.QGridLayout(self.tab) self.gridLayout.setObjectName("gridLayout") self.verticalLayout_5 = QtGui.QVBoxLayout() self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_5 = QtGui.QLabel(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setMaximumSize(QtCore.QSize(75, 16777215)) self.label_5.setObjectName("label_5") self.horizontalLayout_7.addWidget(self.label_5) self.plotListBtn = QtGui.QToolButton(self.tab) self.plotListBtn.setObjectName("plotListBtn") self.horizontalLayout_7.addWidget(self.plotListBtn) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem1) self.clearCpndPlotBtn = QtGui.QToolButton(self.tab) self.clearCpndPlotBtn.setObjectName("clearCpndPlotBtn") self.horizontalLayout_7.addWidget(self.clearCpndPlotBtn) self.verticalLayout_5.addLayout(self.horizontalLayout_7) self.plotGaussCB = QtGui.QCheckBox(self.tab) self.plotGaussCB.setChecked(True) self.plotGaussCB.setObjectName("plotGaussCB") self.verticalLayout_5.addWidget(self.plotGaussCB) self.cmpdListWidget = CustomTable(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmpdListWidget.sizePolicy().hasHeightForWidth()) self.cmpdListWidget.setSizePolicy(sizePolicy) self.cmpdListWidget.setMaximumSize(QtCore.QSize(300, 16777215)) self.cmpdListWidget.setRowCount(20) self.cmpdListWidget.setColumnCount(3) self.cmpdListWidget.setObjectName("cmpdListWidget") self.cmpdListWidget.setColumnCount(3) self.cmpdListWidget.setRowCount(20) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.cmpdListWidget.setHorizontalHeaderItem(2, item) self.verticalLayout_5.addWidget(self.cmpdListWidget) self.gridLayout.addLayout(self.verticalLayout_5, 0, 0, 1, 1) self.cmpdPlotWidget = MPL_Widget(self.tab) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmpdPlotWidget.sizePolicy().hasHeightForWidth()) self.cmpdPlotWidget.setSizePolicy(sizePolicy) self.cmpdPlotWidget.setObjectName("cmpdPlotWidget") self.gridLayout.addWidget(self.cmpdPlotWidget, 0, 1, 1, 1) self.mainTabWidget.addTab(self.tab, "") self.hboxlayout.addWidget(self.mainTabWidget) self.verticalLayout_2.addLayout(self.hboxlayout) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1150, 22)) font = QtGui.QFont() font.setFamily("Arial") font.setWeight(50) font.setBold(False) self.menubar.setFont(font) self.menubar.setObjectName("menubar") self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menu_Tools = QtGui.QMenu(self.menubar) self.menu_Tools.setObjectName("menu_Tools") self.menu_Help = QtGui.QMenu(self.menubar) self.menu_Help.setObjectName("menu_Help") MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.toolBar = QtGui.QToolBar(MainWindow) self.toolBar.setEnabled(True) self.toolBar.setMinimumSize(QtCore.QSize(12, 25)) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) self.action_Edit = QtGui.QAction(MainWindow) self.action_Edit.setObjectName("action_Edit") self.action_Tools = QtGui.QAction(MainWindow) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/Service Manager.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Tools.setIcon(icon2) self.action_Tools.setObjectName("action_Tools") self.actionFileOpen = QtGui.QAction(MainWindow) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap("images/fileopen.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileOpen.setIcon(icon3) self.actionFileOpen.setObjectName("actionFileOpen") self.actionFileSave = QtGui.QAction(MainWindow) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesave2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileSave.setIcon(icon4) self.actionFileSave.setObjectName("actionFileSave") self.actionFileSaveAs = QtGui.QAction(MainWindow) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesaveas.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFileSaveAs.setIcon(icon5) self.actionFileSaveAs.setObjectName("actionFileSaveAs") self.actionNewFile = QtGui.QAction(MainWindow) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filenew.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionNewFile.setIcon(icon6) self.actionNewFile.setObjectName("actionNewFile") self.actionTools = QtGui.QAction(MainWindow) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap("images/Service Manager.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionTools.setIcon(icon7) self.actionTools.setObjectName("actionTools") self.action_getSelection = QtGui.QAction(MainWindow) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kspread_ksp.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_getSelection.setIcon(icon8) self.action_getSelection.setObjectName("action_getSelection") self.actionClear = QtGui.QAction(MainWindow) icon9 = QtGui.QIcon() icon9.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/cleanlarge.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionClear.setIcon(icon9) self.actionClear.setObjectName("actionClear") self.action_New = QtGui.QAction(MainWindow) self.action_New.setIcon(icon6) self.action_New.setObjectName("action_New") self.action_Open = QtGui.QAction(MainWindow) self.action_Open.setIcon(icon3) self.action_Open.setObjectName("action_Open") self.action_Save = QtGui.QAction(MainWindow) icon10 = QtGui.QIcon() icon10.addPixmap(QtGui.QPixmap("images/filesave2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Save.setIcon(icon10) self.action_Save.setObjectName("action_Save") self.actionSave_As = QtGui.QAction(MainWindow) self.actionSave_As.setIcon(icon5) self.actionSave_As.setObjectName("actionSave_As") self.action_Exit = QtGui.QAction(MainWindow) icon11 = QtGui.QIcon() icon11.addPixmap(QtGui.QPixmap("images/exitsmall.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Exit.setIcon(icon11) self.action_Exit.setObjectName("action_Exit") self.action_Clear = QtGui.QAction(MainWindow) self.action_Clear.setIcon(icon9) self.action_Clear.setObjectName("action_Clear") self.action_Table_Selection = QtGui.QAction(MainWindow) self.action_Table_Selection.setIcon(icon8) self.action_Table_Selection.setObjectName("action_Table_Selection") self.action_Cut = QtGui.QAction(MainWindow) icon12 = QtGui.QIcon() icon12.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editcut.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Cut.setIcon(icon12) self.action_Cut.setObjectName("action_Cut") self.action_Paste = QtGui.QAction(MainWindow) icon13 = QtGui.QIcon() icon13.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editpaste.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.action_Paste.setIcon(icon13) self.action_Paste.setObjectName("action_Paste") self.actionRunScript = QtGui.QAction(MainWindow) icon14 = QtGui.QIcon() icon14.addPixmap(QtGui.QPixmap("images/software-development.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionRunScript.setIcon(icon14) self.actionRunScript.setObjectName("actionRunScript") self.actionAbout = QtGui.QAction(MainWindow) icon15 = QtGui.QIcon() icon15.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/help.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionAbout.setIcon(icon15) self.actionAbout.setObjectName("actionAbout") self.actionPlot = QtGui.QAction(MainWindow) icon16 = QtGui.QIcon() icon16.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/120px-Icon_Mathematical_Plot.svg.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionPlot.setIcon(icon16) self.actionPlot.setObjectName("actionPlot") self.actionDelete = QtGui.QAction(MainWindow) icon17 = QtGui.QIcon() icon17.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/xkill.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionDelete.setIcon(icon17) self.actionDelete.setObjectName("actionDelete") self.actionDeleteAll = QtGui.QAction(MainWindow) self.actionDeleteAll.setIcon(icon17) self.actionDeleteAll.setObjectName("actionDeleteAll") self.actionPlotItem = QtGui.QAction(MainWindow) self.actionPlotItem.setIcon(icon16) self.actionPlotItem.setObjectName("actionPlotItem") self.actionHints = QtGui.QAction(MainWindow) self.actionHints.setObjectName("actionHints") self.actionLoad_Folder = QtGui.QAction(MainWindow) icon18 = QtGui.QIcon() icon18.addPixmap(QtGui.QPixmap("images/fileimport.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionLoad_Folder.setIcon(icon18) self.actionLoad_Folder.setObjectName("actionLoad_Folder") self.actionSave_All_Tables = QtGui.QAction(MainWindow) icon19 = QtGui.QIcon() icon19.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kchart_chrt.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionSave_All_Tables.setIcon(icon19) self.actionSave_All_Tables.setObjectName("actionSave_All_Tables") self.actionCopy_Current_Database = QtGui.QAction(MainWindow) self.actionCopy_Current_Database.setIcon(icon13) self.actionCopy_Current_Database.setObjectName("actionCopy_Current_Database") self.actionSave_Isotope_Profile_A_to_CSV = QtGui.QAction(MainWindow) self.actionSave_Isotope_Profile_A_to_CSV.setIcon(icon10) self.actionSave_Isotope_Profile_A_to_CSV.setObjectName("actionSave_Isotope_Profile_A_to_CSV") self.actionSave_Isotope_Profile_B_to_CSV = QtGui.QAction(MainWindow) self.actionSave_Isotope_Profile_B_to_CSV.setIcon(icon10) self.actionSave_Isotope_Profile_B_to_CSV.setObjectName("actionSave_Isotope_Profile_B_to_CSV") self.actionClear_Plot = QtGui.QAction(MainWindow) self.actionClear_Plot.setObjectName("actionClear_Plot") self.menuFile.addAction(self.action_Exit) self.menu_Tools.addAction(self.actionSave_Isotope_Profile_A_to_CSV) self.menu_Tools.addAction(self.actionSave_Isotope_Profile_B_to_CSV) self.menu_Tools.addSeparator() self.menu_Tools.addAction(self.actionClear_Plot) self.menu_Help.addAction(self.actionAbout) self.menu_Help.addAction(self.actionHints) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menu_Tools.menuAction()) self.menubar.addAction(self.menu_Help.menuAction()) self.toolBar.addAction(self.actionRunScript) self.toolBar.addAction(self.actionTools) self.retranslateUi(MainWindow) self.mainTabWidget.setCurrentIndex(3) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "pysotope", None, QtGui.QApplication.UnicodeUTF8)) self.formulaA_CB.setToolTip(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'Arial\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot the isotope pattern for formula A.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.formulaA_CB.setText(QtGui.QApplication.translate("MainWindow", "Forumla A:", None, QtGui.QApplication.UnicodeUTF8)) self.formulaInputA.setText(QtGui.QApplication.translate("MainWindow", "C14H9Cl5", None, QtGui.QApplication.UnicodeUTF8)) self.calcFormulaA_Btn.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("MainWindow", "g/mol", None, QtGui.QApplication.UnicodeUTF8)) self.label_7.setText(QtGui.QApplication.translate("MainWindow", "Charge:", None, QtGui.QApplication.UnicodeUTF8)) self.formulaB_CB.setToolTip(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'Arial\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot the isotope pattern for formula B.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.formulaB_CB.setText(QtGui.QApplication.translate("MainWindow", "Formula B:", None, QtGui.QApplication.UnicodeUTF8)) self.formulaInputB.setText(QtGui.QApplication.translate("MainWindow", "C8H10N4O2", None, QtGui.QApplication.UnicodeUTF8)) self.calcFormulaB_Btn.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.label_2.setText(QtGui.QApplication.translate("MainWindow", "g/mol", None, QtGui.QApplication.UnicodeUTF8)) self.label_10.setText(QtGui.QApplication.translate("MainWindow", "Charge:", None, QtGui.QApplication.UnicodeUTF8)) self.mainTabWidget.setTabText(self.mainTabWidget.indexOf(self.calcTab), QtGui.QApplication.translate("MainWindow", "MW Calculator", None, QtGui.QApplication.UnicodeUTF8)) self.mainTabWidget.setTabText(self.mainTabWidget.indexOf(self.periodTab), QtGui.QApplication.translate("MainWindow", "Periodic Table", None, QtGui.QApplication.UnicodeUTF8)) self.label_4.setText(QtGui.QApplication.translate("MainWindow", "Plot Types:", None, QtGui.QApplication.UnicodeUTF8)) self.updatePlotBtn.setText(QtGui.QApplication.translate("MainWindow", "Update Plot", None, QtGui.QApplication.UnicodeUTF8)) self.cb_logx.setText(QtGui.QApplication.translate("MainWindow", "Log X", None, QtGui.QApplication.UnicodeUTF8)) self.cb_logy.setText(QtGui.QApplication.translate("MainWindow", "Log Y", None, QtGui.QApplication.UnicodeUTF8)) self.label_8.setText(QtGui.QApplication.translate("MainWindow", "Size Modifier:", None, QtGui.QApplication.UnicodeUTF8)) self.label_3.setText(QtGui.QApplication.translate("MainWindow", "Isotope Calculation Resolution", None, QtGui.QApplication.UnicodeUTF8)) self.mainTabWidget.setTabText(self.mainTabWidget.indexOf(self.configTab), QtGui.QApplication.translate("MainWindow", "Plot Options", None, QtGui.QApplication.UnicodeUTF8)) self.label_5.setText(QtGui.QApplication.translate("MainWindow", "Compound List", None, QtGui.QApplication.UnicodeUTF8)) self.plotListBtn.setToolTip(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'Arial\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot Compound List</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.plotListBtn.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.clearCpndPlotBtn.setToolTip(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'Arial\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Clear Compound Plot</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) self.clearCpndPlotBtn.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.plotGaussCB.setText(QtGui.QApplication.translate("MainWindow", "Plot Gaussian Profiles", None, QtGui.QApplication.UnicodeUTF8)) self.cmpdListWidget.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("MainWindow", "Compound", None, QtGui.QApplication.UnicodeUTF8)) self.cmpdListWidget.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("MainWindow", "Charge", None, QtGui.QApplication.UnicodeUTF8)) self.cmpdListWidget.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("MainWindow", "m/z", None, QtGui.QApplication.UnicodeUTF8)) self.mainTabWidget.setTabText(self.mainTabWidget.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "Table Plot", None, QtGui.QApplication.UnicodeUTF8)) self.menuFile.setTitle(QtGui.QApplication.translate("MainWindow", "&File", None, QtGui.QApplication.UnicodeUTF8)) self.menu_Tools.setTitle(QtGui.QApplication.translate("MainWindow", "&Tools", None, QtGui.QApplication.UnicodeUTF8)) self.menu_Help.setTitle(QtGui.QApplication.translate("MainWindow", "&Help", None, QtGui.QApplication.UnicodeUTF8)) self.toolBar.setWindowTitle(QtGui.QApplication.translate("MainWindow", "toolBar", None, QtGui.QApplication.UnicodeUTF8)) self.action_Edit.setText(QtGui.QApplication.translate("MainWindow", "&Edit", None, QtGui.QApplication.UnicodeUTF8)) self.action_Tools.setText(QtGui.QApplication.translate("MainWindow", "&Tools", None, QtGui.QApplication.UnicodeUTF8)) self.actionFileOpen.setText(QtGui.QApplication.translate("MainWindow", "fileOpen", None, QtGui.QApplication.UnicodeUTF8)) self.actionFileOpen.setToolTip(QtGui.QApplication.translate("MainWindow", "Open File", None, QtGui.QApplication.UnicodeUTF8)) self.actionFileSave.setText(QtGui.QApplication.translate("MainWindow", "fileSave", None, QtGui.QApplication.UnicodeUTF8)) self.actionFileSave.setToolTip(QtGui.QApplication.translate("MainWindow", "Save File", None, QtGui.QApplication.UnicodeUTF8)) self.actionFileSaveAs.setText(QtGui.QApplication.translate("MainWindow", "fileSaveAs", None, QtGui.QApplication.UnicodeUTF8)) self.actionNewFile.setText(QtGui.QApplication.translate("MainWindow", "newFile", None, QtGui.QApplication.UnicodeUTF8)) self.actionNewFile.setToolTip(QtGui.QApplication.translate("MainWindow", "New File", None, QtGui.QApplication.UnicodeUTF8)) self.actionTools.setText(QtGui.QApplication.translate("MainWindow", "Transfer", None, QtGui.QApplication.UnicodeUTF8)) self.actionTools.setIconText(QtGui.QApplication.translate("MainWindow", "Transfer", None, QtGui.QApplication.UnicodeUTF8)) self.actionTools.setToolTip(QtGui.QApplication.translate("MainWindow", "Tools", None, QtGui.QApplication.UnicodeUTF8)) self.action_getSelection.setText(QtGui.QApplication.translate("MainWindow", "getSelection", None, QtGui.QApplication.UnicodeUTF8)) self.action_getSelection.setToolTip(QtGui.QApplication.translate("MainWindow", "Get Table Selection", None, QtGui.QApplication.UnicodeUTF8)) self.actionClear.setText(QtGui.QApplication.translate("MainWindow", "clear", None, QtGui.QApplication.UnicodeUTF8)) self.actionClear.setToolTip(QtGui.QApplication.translate("MainWindow", "Clear Data and Variables", None, QtGui.QApplication.UnicodeUTF8)) self.action_New.setText(QtGui.QApplication.translate("MainWindow", "&New", None, QtGui.QApplication.UnicodeUTF8)) self.action_New.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+N", None, QtGui.QApplication.UnicodeUTF8)) self.action_Open.setText(QtGui.QApplication.translate("MainWindow", "&Open", None, QtGui.QApplication.UnicodeUTF8)) self.action_Open.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8)) self.action_Save.setText(QtGui.QApplication.translate("MainWindow", "&Save", None, QtGui.QApplication.UnicodeUTF8)) self.action_Save.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+S", None, QtGui.QApplication.UnicodeUTF8)) self.actionSave_As.setText(QtGui.QApplication.translate("MainWindow", "Save &As", None, QtGui.QApplication.UnicodeUTF8)) self.action_Exit.setText(QtGui.QApplication.translate("MainWindow", "&Exit", None, QtGui.QApplication.UnicodeUTF8)) self.action_Exit.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+X", None, QtGui.QApplication.UnicodeUTF8)) self.action_Clear.setText(QtGui.QApplication.translate("MainWindow", "Clea&r", None, QtGui.QApplication.UnicodeUTF8)) self.action_Table_Selection.setText(QtGui.QApplication.translate("MainWindow", "&Table Selection", None, QtGui.QApplication.UnicodeUTF8)) self.action_Cut.setText(QtGui.QApplication.translate("MainWindow", "&Cut", None, QtGui.QApplication.UnicodeUTF8)) self.action_Cut.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+X", None, QtGui.QApplication.UnicodeUTF8)) self.action_Paste.setText(QtGui.QApplication.translate("MainWindow", "&Paste", None, QtGui.QApplication.UnicodeUTF8)) self.action_Paste.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+V", None, QtGui.QApplication.UnicodeUTF8)) self.actionRunScript.setText(QtGui.QApplication.translate("MainWindow", "runScript", None, QtGui.QApplication.UnicodeUTF8)) self.actionRunScript.setToolTip(QtGui.QApplication.translate("MainWindow", "Run Python Script", None, QtGui.QApplication.UnicodeUTF8)) self.actionAbout.setText(QtGui.QApplication.translate("MainWindow", "About", None, QtGui.QApplication.UnicodeUTF8)) self.actionPlot.setText(QtGui.QApplication.translate("MainWindow", "Plot", None, QtGui.QApplication.UnicodeUTF8)) self.actionDelete.setText(QtGui.QApplication.translate("MainWindow", "Delete", None, QtGui.QApplication.UnicodeUTF8)) self.actionDeleteAll.setText(QtGui.QApplication.translate("MainWindow", "DeleteAll", None, QtGui.QApplication.UnicodeUTF8)) self.actionPlotItem.setText(QtGui.QApplication.translate("MainWindow", "PlotItem", None, QtGui.QApplication.UnicodeUTF8)) self.actionPlotItem.setIconText(QtGui.QApplication.translate("MainWindow", "Plot Item", None, QtGui.QApplication.UnicodeUTF8)) self.actionPlotItem.setToolTip(QtGui.QApplication.translate("MainWindow", "Plot Item", None, QtGui.QApplication.UnicodeUTF8)) self.actionHints.setText(QtGui.QApplication.translate("MainWindow", "Hints", None, QtGui.QApplication.UnicodeUTF8)) self.actionLoad_Folder.setText(QtGui.QApplication.translate("MainWindow", "Load Folder", None, QtGui.QApplication.UnicodeUTF8)) self.actionSave_All_Tables.setText(QtGui.QApplication.translate("MainWindow", "Save All Tables to CSV", None, QtGui.QApplication.UnicodeUTF8)) self.actionCopy_Current_Database.setText(QtGui.QApplication.translate("MainWindow", "Copy Current Database", None, QtGui.QApplication.UnicodeUTF8)) self.actionSave_Isotope_Profile_A_to_CSV.setText(QtGui.QApplication.translate("MainWindow", "Save Isotope Profile A to CSV", None, QtGui.QApplication.UnicodeUTF8)) self.actionSave_Isotope_Profile_B_to_CSV.setText(QtGui.QApplication.translate("MainWindow", "Save Isotope Profile B to CSV", None, QtGui.QApplication.UnicodeUTF8)) self.actionClear_Plot.setText(QtGui.QApplication.translate("MainWindow", "Clear Plot", None, QtGui.QApplication.UnicodeUTF8))