Пример #1
0
 def window_param(self):
     self.wid3 = QtWidgets.QMainWindow()
     self.ui = Ui_MD_param()
     self.ui.setupUi(self.wid3)
     self.wid3.show()
Пример #2
0
 def window_cond(self):
     self.wid2 = QtWidgets.QMainWindow()
     self.ui = Ui_MD_cond()
     self.ui.setupUi(self.wid2)
     self.wid2.show()
Пример #3
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.layoutWidget.setGeometry(QtCore.QRect(130, 80, 531, 71))
        self.layoutWidget.setObjectName("layoutWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pushButton_aa = QtWidgets.QPushButton(self.layoutWidget)
        self.pushButton_aa.setObjectName("pushButton_aa")
        self.horizontalLayout.addWidget(self.pushButton_aa)
        self.pushButton_cond = QtWidgets.QPushButton(self.layoutWidget)
        self.pushButton_cond.setObjectName("pushButton_cond")
        self.horizontalLayout.addWidget(self.pushButton_cond)
        self.pushButton_param = QtWidgets.QPushButton(self.layoutWidget)
        self.pushButton_param.setObjectName("pushButton_param")
        self.horizontalLayout.addWidget(self.pushButton_param)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(
            QtWidgets.QApplication.translate("MainWindow", "MainWindow", None,
                                             -1))
        self.pushButton_aa.setText(
            QtWidgets.QApplication.translate("MainWindow", "Sequence", None,
                                             -1))
        self.pushButton_cond.setText(
            QtWidgets.QApplication.translate("MainWindow", "MD Conditions",
                                             None, -1))
        self.pushButton_param.setText(
            QtWidgets.QApplication.translate("MainWindow", "MD Parameters",
                                             None, -1))

        self.pushButton_aa.clicked.connect(self.window_aa)
        self.pushButton_cond.clicked.connect(self.window_cond)
        self.pushButton_param.clicked.connect(self.window_param)

    #    self.pushButton.clicked.connect(self.start_sequence)
    #   self.pushButton_2.clicked.connect(self.end_sequence)

    #def start_sequence(self):
    #    pippo.write("seq = {")
    #
    #def end_sequence(self):
    #   pippo.write("}")
    #  pippo.close()

    def window_aa(self):
        self.wid = QtWidgets.QMainWindow()
        self.ui = Ui_aaWindow()
        self.ui.setupUi(self.wid)
        self.wid.show()

    def window_cond(self):
        self.wid2 = QtWidgets.QMainWindow()
        self.ui = Ui_MD_cond()
        self.ui.setupUi(self.wid2)
        self.wid2.show()

    def window_param(self):
        self.wid3 = QtWidgets.QMainWindow()
        self.ui = Ui_MD_param()
        self.ui.setupUi(self.wid3)
        self.wid3.show()
Пример #4
0
 def window_aa(self):
     self.wid = QtWidgets.QMainWindow()
     self.ui = Ui_aaWindow()
     self.ui.setupUi(self.wid)
     self.wid.show()
Пример #5
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(844, 566)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.pushButton_cond = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Minimum,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton_cond.sizePolicy().hasHeightForWidth())
        self.pushButton_cond.setSizePolicy(sizePolicy)
        self.pushButton_cond.setObjectName("pushButton_cond")
        self.gridLayout.addWidget(self.pushButton_cond, 0, 1, 1, 1)
        self.pushButton_param = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton_param.sizePolicy().hasHeightForWidth())
        self.pushButton_param.setSizePolicy(sizePolicy)
        self.pushButton_param.setObjectName("pushButton_param")
        self.gridLayout.addWidget(self.pushButton_param, 5, 1, 1, 1)
        self.pushButton_aa = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Minimum,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton_aa.sizePolicy().hasHeightForWidth())
        self.pushButton_aa.setSizePolicy(sizePolicy)
        self.pushButton_aa.setObjectName("pushButton_aa")
        self.gridLayout.addWidget(self.pushButton_aa, 2, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 5, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 5, 2, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem2, 3, 1, 1, 1)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem3, 1, 1, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        ##################
        self.pushButton_aa.clicked.connect(self.window_aa)
        self.pushButton_cond.clicked.connect(self.window_cond)
        self.pushButton_param.clicked.connect(self.window_param)
###################

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(
            QtWidgets.QApplication.translate("MainWindow", "MainWindow", None,
                                             -1))
        self.pushButton_cond.setText(
            QtWidgets.QApplication.translate("MainWindow", "MD Conditions",
                                             None, -1))
        self.pushButton_param.setText(
            QtWidgets.QApplication.translate("MainWindow", "MD Parameters",
                                             None, -1))
        self.pushButton_aa.setText(
            QtWidgets.QApplication.translate("MainWindow", "Sequence", None,
                                             -1))

        ##################
        self.pushButton_aa.clicked.connect(self.window_aa)
        self.pushButton_cond.clicked.connect(self.window_cond)
        self.pushButton_param.clicked.connect(self.window_param)

    def window_aa(self):
        self.wid = QtWidgets.QMainWindow()
        self.ui = Ui_aaWindow()
        self.ui.setupUi(self.wid)
        self.wid.show()

    def window_cond(self):
        self.wid2 = QtWidgets.QMainWindow()
        self.ui = Ui_MD_cond()
        self.ui.setupUi(self.wid2)
        self.wid2.show()

    def window_param(self):
        self.wid3 = QtWidgets.QMainWindow()
        self.ui = Ui_MD_param()
        self.ui.setupUi(self.wid3)
        self.wid3.show()