当前位置: 首页>>代码示例>>Python>>正文


Python MatplotlibWidget.setGeometry方法代码示例

本文整理汇总了Python中matplotlibwidget.MatplotlibWidget.setGeometry方法的典型用法代码示例。如果您正苦于以下问题:Python MatplotlibWidget.setGeometry方法的具体用法?Python MatplotlibWidget.setGeometry怎么用?Python MatplotlibWidget.setGeometry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在matplotlibwidget.MatplotlibWidget的用法示例。


在下文中一共展示了MatplotlibWidget.setGeometry方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(800, 600)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.mpl = MatplotlibWidget(self.centralwidget)
        self.mpl.setGeometry(QtCore.QRect(130, 70, 561, 291))
        self.mpl.setObjectName(_fromUtf8("mpl"))
        self.pushButton = QtGui.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(150, 430, 75, 23))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.pushButton_2 = QtGui.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(290, 430, 75, 23))
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.pushButton.setText(_translate("MainWindow", "Plot", None))
        self.pushButton_2.setText(_translate("MainWindow", "Clear", None))
开发者ID:haphaeu,项目名称:yoshimi,代码行数:33,代码来源:mplwidgt.py

示例2: Ui_Period_Filter_Dialog

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_Period_Filter_Dialog(object):
    def setupUi(self, Period_Filter_Dialog):
        Period_Filter_Dialog.setObjectName(_fromUtf8("Period_Filter_Dialog"))
        Period_Filter_Dialog.resize(486, 390)
        Period_Filter_Dialog.setWindowTitle(QtGui.QApplication.translate("Period_Filter_Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.buttonBox = QtGui.QDialogButtonBox(Period_Filter_Dialog)
        self.buttonBox.setGeometry(QtCore.QRect(140, 350, 341, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.Period_Filter_Plot = MatplotlibWidget(Period_Filter_Dialog)
        self.Period_Filter_Plot.setGeometry(QtCore.QRect(0, 0, 491, 300))
        self.Period_Filter_Plot.setObjectName(_fromUtf8("Period_Filter_Plot"))
        self.Filter_start = QtGui.QLineEdit(Period_Filter_Dialog)
        self.Filter_start.setGeometry(QtCore.QRect(20, 340, 71, 20))
        self.Filter_start.setObjectName(_fromUtf8("Filter_start"))
        self.Filter_end = QtGui.QLineEdit(Period_Filter_Dialog)
        self.Filter_end.setGeometry(QtCore.QRect(100, 340, 81, 20))
        self.Filter_end.setObjectName(_fromUtf8("Filter_end"))
        self.label = QtGui.QLabel(Period_Filter_Dialog)
        self.label.setGeometry(QtCore.QRect(60, 320, 81, 16))
        self.label.setText(QtGui.QApplication.translate("Period_Filter_Dialog", "Filtering Range", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setObjectName(_fromUtf8("label"))

        self.retranslateUi(Period_Filter_Dialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Period_Filter_Dialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Period_Filter_Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Period_Filter_Dialog)

    def retranslateUi(self, Period_Filter_Dialog):
        pass
开发者ID:ArchaeoPY,项目名称:CMD-Calibration,代码行数:33,代码来源:Periodic_filter_gui.py

示例3: Ui_plotWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_plotWindow(object):
    def setupUi(self, plotWindow):
        plotWindow.setObjectName(_fromUtf8("plotWindow"))
        plotWindow.resize(800, 600)
        self.centralwidget = QtGui.QWidget(plotWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.mplWidget = MatplotlibWidget(self.centralwidget)
        self.mplWidget.setGeometry(QtCore.QRect(10, 10, 781, 561))
        self.mplWidget.setObjectName(_fromUtf8("mplWidget"))
        plotWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(plotWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        plotWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, plotWindow):
        plotWindow.setWindowTitle(_translate("plotWindow", "Plot Window", None))
开发者ID:paegert,项目名称:ebfactory,代码行数:21,代码来源:plotwindowui.py

示例4: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        
        self.mplwidget = MatplotlibWidget(self.centralwidget)
        self.mplwidget.setGeometry(QtCore.QRect(170, 150, 400, 300))
        self.mplwidget.setObjectName("mplwidget")
        self.mplwidget.setFocus()
        self.mplwidget.axes.plot(x,y)
        
        MainWindow.setCentralWidget(self.centralwidget)

        self.statusbar = QtGui.QStatusBar(MainWindow) 
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.pushButton = QtGui.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(170, 60, 75, 23))
        self.pushButton.setObjectName("pushButton")        

        QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL("clicked()"), self.plot)

        QtCore.QMetaObject.connectSlotsByName(MainWindow)


    def plot(self):   
        global y
        global x
        x = [2,3,4]
        y = [2,2,1]
        self.replot()

    def replot(self):
        Ui_MainWindow()
        ui.setupUi(MainWindow)        
开发者ID:imanmirzaie,项目名称:qttests,代码行数:41,代码来源:tt2.py

示例5: Ui_Form

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(649, 501)
        self.label = QtGui.QLabel(Form)
        self.label.setGeometry(QtCore.QRect(260, 30, 171, 16))
        font = QtGui.QFont()
        font.setPointSize(16)
        
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        
        self.matplotlibwidget = MatplotlibWidget(Form)
        self.matplotlibwidget.setGeometry(QtCore.QRect(130, 80, 400, 300))
        self.matplotlibwidget.setObjectName(_fromUtf8("matplotlibwidget"))
        self.matplotlibwidget.plotDataPoints(x,y) 
        
        self.dial = QtGui.QDial(Form)
        self.dial.setGeometry(QtCore.QRect(30, 90, 50, 64))
        self.dial.setObjectName(_fromUtf8("dial"))
        
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setGeometry(QtCore.QRect(20, 160, 81, 21))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))

        self.retranslateUi(Form)
        QtCore.QObject.connect(self.dial, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), self.label_2.setNum)
        QtCore.QObject.connect(self.dial, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), self.matplotlibwidget.update)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.label.setText(_translate("Form", "Function: Sin(w.t)", None))
        self.label_2.setText(_translate("Form", "TextLabel", None))
开发者ID:imanmirzaie,项目名称:qttests,代码行数:39,代码来源:test4.py

示例6: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(690, 426)
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.mplwidget = MatplotlibWidget(self.centralwidget)
        self.mplwidget.setGeometry(QtCore.QRect(10, 10, 661, 371))
        self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 690, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        pass
开发者ID:Keyanb,项目名称:g2python,代码行数:26,代码来源:matplot.py

示例7: Ui_MainWidget

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_MainWidget(object):
    def setupUi(self, MainWidget):
        MainWidget.setObjectName(_fromUtf8("MainWidget"))
        MainWidget.resize(686, 429)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWidget.sizePolicy().hasHeightForWidth())
        MainWidget.setSizePolicy(sizePolicy)
        self.tabWidget = QtGui.QTabWidget(MainWidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 0, 691, 431))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab_Basic = QtGui.QWidget()
        self.tab_Basic.setObjectName(_fromUtf8("tab_Basic"))
        self.groupBox_Coordinate = QtGui.QGroupBox(self.tab_Basic)
        self.groupBox_Coordinate.setGeometry(QtCore.QRect(30, 30, 251, 161))
        self.groupBox_Coordinate.setObjectName(_fromUtf8("groupBox_Coordinate"))
        self.verticalLayoutWidget = QtGui.QWidget(self.groupBox_Coordinate)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(20, 40, 56, 101))
        self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_2 = QtGui.QLabel(self.verticalLayoutWidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout.addWidget(self.label_2)
        self.label_3 = QtGui.QLabel(self.verticalLayoutWidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.label = QtGui.QLabel(self.verticalLayoutWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.label_4 = QtGui.QLabel(self.verticalLayoutWidget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.verticalLayout.addWidget(self.label_4)
        self.verticalLayoutWidget_2 = QtGui.QWidget(self.groupBox_Coordinate)
        self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(89, 40, 111, 101))
        self.verticalLayoutWidget_2.setObjectName(_fromUtf8("verticalLayoutWidget_2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.lineEdit_CS_X = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_CS_X.setObjectName(_fromUtf8("lineEdit_CS_X"))
        self.verticalLayout_2.addWidget(self.lineEdit_CS_X)
        self.lineEdit_CS_Y = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_CS_Y.setObjectName(_fromUtf8("lineEdit_CS_Y"))
        self.verticalLayout_2.addWidget(self.lineEdit_CS_Y)
        self.lineEdit_CS_Z = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_CS_Z.setObjectName(_fromUtf8("lineEdit_CS_Z"))
        self.verticalLayout_2.addWidget(self.lineEdit_CS_Z)
        self.lineEdit_CS_GridSize = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_CS_GridSize.setObjectName(_fromUtf8("lineEdit_CS_GridSize"))
        self.verticalLayout_2.addWidget(self.lineEdit_CS_GridSize)
        self.groupBox_TimeStep = QtGui.QGroupBox(self.tab_Basic)
        self.groupBox_TimeStep.setGeometry(QtCore.QRect(30, 210, 251, 121))
        self.groupBox_TimeStep.setObjectName(_fromUtf8("groupBox_TimeStep"))
        self.verticalLayoutWidget_3 = QtGui.QWidget(self.groupBox_TimeStep)
        self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(20, 30, 71, 61))
        self.verticalLayoutWidget_3.setObjectName(_fromUtf8("verticalLayoutWidget_3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label_5 = QtGui.QLabel(self.verticalLayoutWidget_3)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.verticalLayout_3.addWidget(self.label_5)
        self.label_6 = QtGui.QLabel(self.verticalLayoutWidget_3)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.verticalLayout_3.addWidget(self.label_6)
        self.verticalLayoutWidget_4 = QtGui.QWidget(self.groupBox_TimeStep)
        self.verticalLayoutWidget_4.setGeometry(QtCore.QRect(100, 30, 121, 61))
        self.verticalLayoutWidget_4.setObjectName(_fromUtf8("verticalLayoutWidget_4"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.verticalLayoutWidget_4)
        self.verticalLayout_4.setMargin(0)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.lineEdit_TS_Width = QtGui.QLineEdit(self.verticalLayoutWidget_4)
        self.lineEdit_TS_Width.setObjectName(_fromUtf8("lineEdit_TS_Width"))
        self.verticalLayout_4.addWidget(self.lineEdit_TS_Width)
        self.lineEdit_TS_Number = QtGui.QLineEdit(self.verticalLayoutWidget_4)
        self.lineEdit_TS_Number.setObjectName(_fromUtf8("lineEdit_TS_Number"))
        self.verticalLayout_4.addWidget(self.lineEdit_TS_Number)
        self.groupBox_Source = QtGui.QGroupBox(self.tab_Basic)
        self.groupBox_Source.setGeometry(QtCore.QRect(310, 60, 341, 271))
        self.groupBox_Source.setObjectName(_fromUtf8("groupBox_Source"))
        self.verticalLayoutWidget_5 = QtGui.QWidget(self.groupBox_Source)
        self.verticalLayoutWidget_5.setGeometry(QtCore.QRect(30, 40, 141, 61))
        self.verticalLayoutWidget_5.setObjectName(_fromUtf8("verticalLayoutWidget_5"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.verticalLayoutWidget_5)
        self.verticalLayout_5.setMargin(0)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.label_7 = QtGui.QLabel(self.verticalLayoutWidget_5)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.verticalLayout_5.addWidget(self.label_7)
        self.label_8 = QtGui.QLabel(self.verticalLayoutWidget_5)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.verticalLayout_5.addWidget(self.label_8)
        self.verticalLayoutWidget_6 = QtGui.QWidget(self.groupBox_Source)
        self.verticalLayoutWidget_6.setGeometry(QtCore.QRect(180, 40, 121, 61))
        self.verticalLayoutWidget_6.setObjectName(_fromUtf8("verticalLayoutWidget_6"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.verticalLayoutWidget_6)
        self.verticalLayout_6.setMargin(0)
#.........这里部分代码省略.........
开发者ID:wanygen,项目名称:uestc-cemlab-fdtd,代码行数:103,代码来源:UI.py

示例8: Ui_Form

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]

#.........这里部分代码省略.........
        self.mplwidgetPhase.setObjectName(_fromUtf8("mplwidgetPhase"))
        self.verticalLayout.addWidget(self.mplwidgetPhase)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.pushButtonSave = QtGui.QPushButton(self.tabWidgetPFPage1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButtonSave.sizePolicy().hasHeightForWidth())
        self.pushButtonSave.setSizePolicy(sizePolicy)
        self.pushButtonSave.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pushButtonSave.setText(QtGui.QApplication.translate("Form", "Save to file", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButtonSave.setObjectName(_fromUtf8("pushButtonSave"))
        self.gridLayout.addWidget(self.pushButtonSave, 1, 1, 1, 1)
        self.pushButtonModulate = QtGui.QPushButton(self.tabWidgetPFPage1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButtonModulate.sizePolicy().hasHeightForWidth())
        
        # The modulate button below the PF pattern 
        self.pushButtonModulate.setSizePolicy(sizePolicy)
        self.pushButtonModulate.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pushButtonModulate.setText(QtGui.QApplication.translate("Form", "Modulate", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButtonModulate.setObjectName(_fromUtf8("pushButtonModulate"))
        self.gridLayout.addWidget(self.pushButtonModulate, 1, 3, 1, 1)
        self.pushButtonFit = QtGui.QPushButton(self.tabWidgetPFPage1)
        self.pushButtonFit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pushButtonFit.setText(QtGui.QApplication.translate("Form", "Fit to Zernike", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButtonFit.setObjectName(_fromUtf8("pushButtonFit"))
        self.gridLayout.addWidget(self.pushButtonFit, 1, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.tabWidgetPF.addTab(self.tabWidgetPFPage1, _fromUtf8(""))
        self.Sharpness = QtGui.QWidget()
        self.Sharpness.setObjectName(_fromUtf8("Sharpness"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.Sharpness)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.mplwidgetSharpness = MatplotlibWidget(self.Sharpness)
        self.mplwidgetSharpness.setObjectName(_fromUtf8("mplwidgetSharpness"))
        self.verticalLayout_3.addWidget(self.mplwidgetSharpness)
        self.tabWidgetPF.addTab(self.Sharpness, _fromUtf8(""))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.mplwidgetSharpness2 = MatplotlibWidget(self.tab)
        self.mplwidgetSharpness2.setObjectName(_fromUtf8("mplwidgetSharpness2"))
        self.verticalLayout_2.addWidget(self.mplwidgetSharpness2)
        self.tabWidgetPF.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.mplwidgetPhase_2 = MatplotlibWidget(self.tab_2)
        self.mplwidgetPhase_2.setGeometry(QtCore.QRect(10, 0, 380, 349))
        self.mplwidgetPhase_2.setObjectName(_fromUtf8("mplwidgetPhase_2"))
        self.pushButton_modulateZernike = QtGui.QPushButton(self.tab_2)
        self.pushButton_modulateZernike.setGeometry(QtCore.QRect(20, 360, 75, 23))
        self.pushButton_modulateZernike.setText(QtGui.QApplication.translate("Form", "Modulate", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_modulateZernike.setObjectName(_fromUtf8("pushButton_modulateZernike"))
        self.checkBox_useMask = QtGui.QCheckBox(self.tab_2)
        self.checkBox_useMask.setGeometry(QtCore.QRect(110, 360, 70, 17))
        self.checkBox_useMask.setText(QtGui.QApplication.translate("Form", "Use mask?", None, QtGui.QApplication.UnicodeUTF8))
        self.checkBox_useMask.setObjectName(_fromUtf8("checkBox_useMask"))
        self.lineEdit_zernRadius = QtGui.QLineEdit(self.tab_2)
        self.lineEdit_zernRadius.setGeometry(QtCore.QRect(20, 390, 113, 20))
        self.lineEdit_zernRadius.setText(QtGui.QApplication.translate("Form", "256", None, QtGui.QApplication.UnicodeUTF8))
        self.lineEdit_zernRadius.setObjectName(_fromUtf8("lineEdit_zernRadius"))
        self.pushButton_setZernRadius = QtGui.QPushButton(self.tab_2)
        self.pushButton_setZernRadius.setGeometry(QtCore.QRect(140, 390, 131, 23))
        self.pushButton_setZernRadius.setText(QtGui.QApplication.translate("Form", "Set Zernike Radius", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_setZernRadius.setObjectName(_fromUtf8("pushButton_setZernRadius"))
        self.tabWidgetPF.addTab(self.tab_2, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.tabWidgetPF.addTab(self.tab_3, _fromUtf8(""))
        self.horizontalLayout.addWidget(self.tabWidgetPF)
        self.groupBoxModulations = QtGui.QGroupBox(Form)
        self.groupBoxModulations.setTitle(QtGui.QApplication.translate("Form", "Modulations", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBoxModulations.setCheckable(True)
        self.groupBoxModulations.setObjectName(_fromUtf8("groupBoxModulations"))
        self.verticalLayoutModulations = QtGui.QVBoxLayout(self.groupBoxModulations)
        self.verticalLayoutModulations.setObjectName(_fromUtf8("verticalLayoutModulations"))
        spacerItem1 = QtGui.QSpacerItem(20, 317, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayoutModulations.addItem(spacerItem1)
        # This is where the "set" updates the mirror pattern        
        self.pushButton_setMods = QtGui.QPushButton(self.groupBoxModulations)
        self.pushButton_setMods.setText(QtGui.QApplication.translate("Form", "Set", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_setMods.setObjectName(_fromUtf8("pushButton_setMods"))
        self.verticalLayoutModulations.addWidget(self.pushButton_setMods)
        self.horizontalLayout.addWidget(self.groupBoxModulations)

        self.retranslateUi(Form)
        self.tabWidgetPF.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        self.tabWidgetPF.setTabText(self.tabWidgetPF.indexOf(self.tabWidgetPFPage1), QtGui.QApplication.translate("Form", "Pupil Function", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidgetPF.setTabText(self.tabWidgetPF.indexOf(self.Sharpness), QtGui.QApplication.translate("Form", "Sharpness", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidgetPF.setTabText(self.tabWidgetPF.indexOf(self.tab), QtGui.QApplication.translate("Form", "Running Sharpness", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidgetPF.setTabText(self.tabWidgetPF.indexOf(self.tab_2), QtGui.QApplication.translate("Form", "Zernike Fit to Unwrapped", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidgetPF.setTabText(self.tabWidgetPF.indexOf(self.tab_3), QtGui.QApplication.translate("Form", "Gen Zernikes", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:coder-guy22296,项目名称:Device_manager,代码行数:104,代码来源:adaptiveOptics_design.py

示例9: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(990, 672)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("logo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.mplwidget = MatplotlibWidget(self.centralwidget)
        self.mplwidget.setGeometry(QtCore.QRect(390, 10, 585, 437))
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
        self.mplwidget.setPalette(palette)
        self.mplwidget.setObjectName("mplwidget")
        self.gridLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(15, 160, 361, 321))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_5 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 2)
        self.label_6 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 3, 0, 1, 1)
        self.BinButton = QtGui.QPushButton(self.gridLayoutWidget)
        self.BinButton.setObjectName("BinButton")
        self.gridLayout_2.addWidget(self.BinButton, 4, 1, 1, 1)
        self.label_9 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_9.setObjectName("label_9")
        self.gridLayout_2.addWidget(self.label_9, 5, 0, 1, 2)
        self.label_10 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 6, 0, 1, 1)
        self.label_11 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_11.setObjectName("label_11")
        self.gridLayout_2.addWidget(self.label_11, 7, 0, 1, 1)
        self.FFTlim = QtGui.QSpinBox(self.gridLayoutWidget)
        self.FFTlim.setMaximum(999)
        self.FFTlim.setProperty("value", QtCore.QVariant(10))
        self.FFTlim.setObjectName("FFTlim")
        self.gridLayout_2.addWidget(self.FFTlim, 6, 1, 1, 1)
        self.FFTtype = QtGui.QComboBox(self.gridLayoutWidget)
        self.FFTtype.setEditable(False)
        self.FFTtype.setMaxVisibleItems(2)
        self.FFTtype.setObjectName("FFTtype")
        self.FFTtype.addItem(QtCore.QString())
        self.FFTtype.addItem(QtCore.QString())
        self.gridLayout_2.addWidget(self.FFTtype, 7, 1, 1, 1)
        self.label_12 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_12.setObjectName("label_12")
        self.gridLayout_2.addWidget(self.label_12, 9, 0, 1, 2)
        self.label_13 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_13.setObjectName("label_13")
        self.gridLayout_2.addWidget(self.label_13, 10, 0, 1, 1)
        self.label_14 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_14.setObjectName("label_14")
        self.gridLayout_2.addWidget(self.label_14, 11, 0, 1, 1)
        self.WindowLength = QtGui.QSpinBox(self.gridLayoutWidget)
        self.WindowLength.setMaximum(9999)
        self.WindowLength.setProperty("value", QtCore.QVariant(11))
        self.WindowLength.setObjectName("WindowLength")
        self.gridLayout_2.addWidget(self.WindowLength, 10, 1, 1, 1)
        self.WindowType = QtGui.QComboBox(self.gridLayoutWidget)
#.........这里部分代码省略.........
开发者ID:Cadair,项目名称:PriMaRY-JOVE,代码行数:103,代码来源:MainWindow1.py

示例10: Ui_RTEDlg

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_RTEDlg(object):
    def setupUi(self, RTEDlg):
        RTEDlg.setObjectName(_fromUtf8("RTEDlg"))
        RTEDlg.resize(1222, 572)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(RTEDlg.sizePolicy().hasHeightForWidth())
        RTEDlg.setSizePolicy(sizePolicy)
        RTEDlg.setMinimumSize(QtCore.QSize(1222, 572))
        RTEDlg.setMaximumSize(QtCore.QSize(1222, 572))
        RTEDlg.setWhatsThis(_fromUtf8(""))
        self.line = QtGui.QFrame(RTEDlg)
        self.line.setGeometry(QtCore.QRect(260, 10, 20, 551))
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.smaMpl = MatplotlibWidget(RTEDlg)
        self.smaMpl.setGeometry(QtCore.QRect(280, 20, 461, 271))
        self.smaMpl.setObjectName(_fromUtf8("smaMpl"))
        self.emaMpl = MatplotlibWidget(RTEDlg)
        self.emaMpl.setGeometry(QtCore.QRect(280, 290, 461, 271))
        self.emaMpl.setObjectName(_fromUtf8("emaMpl"))
        self.lwmaMpl = MatplotlibWidget(RTEDlg)
        self.lwmaMpl.setGeometry(QtCore.QRect(750, 20, 461, 271))
        self.lwmaMpl.setObjectName(_fromUtf8("lwmaMpl"))
        self.tmaMpl = MatplotlibWidget(RTEDlg)
        self.tmaMpl.setGeometry(QtCore.QRect(750, 290, 461, 271))
        self.tmaMpl.setObjectName(_fromUtf8("tmaMpl"))
        self.groupBox = QtGui.QGroupBox(RTEDlg)
        self.groupBox.setGeometry(QtCore.QRect(10, 10, 251, 141))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.connectButton = QtGui.QPushButton(self.groupBox)
        self.connectButton.setObjectName(_fromUtf8("connectButton"))
        self.gridLayout_3.addWidget(self.connectButton, 0, 0, 1, 1)
        self.disconnectButton = QtGui.QPushButton(self.groupBox)
        self.disconnectButton.setObjectName(_fromUtf8("disconnectButton"))
        self.gridLayout_3.addWidget(self.disconnectButton, 0, 1, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout_3, 0, 0, 1, 1)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
        self.ipEdit = QtGui.QLineEdit(self.groupBox)
        self.ipEdit.setObjectName(_fromUtf8("ipEdit"))
        self.gridLayout.addWidget(self.ipEdit, 0, 1, 1, 1)
        self.pfLabel = QtGui.QLabel(self.groupBox)
        self.pfLabel.setWordWrap(True)
        self.pfLabel.setObjectName(_fromUtf8("pfLabel"))
        self.gridLayout.addWidget(self.pfLabel, 1, 0, 1, 1)
        self.pfEdit = QtGui.QLineEdit(self.groupBox)
        self.pfEdit.setObjectName(_fromUtf8("pfEdit"))
        self.gridLayout.addWidget(self.pfEdit, 1, 1, 1, 1)
        self.tbLabel = QtGui.QLabel(self.groupBox)
        self.tbLabel.setWordWrap(True)
        self.tbLabel.setObjectName(_fromUtf8("tbLabel"))
        self.gridLayout.addWidget(self.tbLabel, 2, 0, 1, 1)
        self.tbEdit = QtGui.QLineEdit(self.groupBox)
        self.tbEdit.setObjectName(_fromUtf8("tbEdit"))
        self.gridLayout.addWidget(self.tbEdit, 2, 1, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(RTEDlg)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 160, 251, 61))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.startButton = QtGui.QPushButton(self.groupBox_2)
        self.startButton.setObjectName(_fromUtf8("startButton"))
        self.verticalLayout_2.addWidget(self.startButton)
        self.verticalLayout_3.addLayout(self.verticalLayout_2)
        self.sendButton = QtGui.QPushButton(RTEDlg)
        self.sendButton.setGeometry(QtCore.QRect(20, 240, 231, 61))
        self.sendButton.setObjectName(_fromUtf8("sendButton"))
        self.serialLabel = QtGui.QLabel(RTEDlg)
        self.serialLabel.setGeometry(QtCore.QRect(290, 0, 911, 31))
        self.serialLabel.setWordWrap(True)
        self.serialLabel.setObjectName(_fromUtf8("serialLabel"))
        self.label = QtGui.QLabel(RTEDlg)
        self.label.setGeometry(QtCore.QRect(430, 30, 261, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(RTEDlg)
        self.label_2.setGeometry(QtCore.QRect(420, 300, 221, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_4 = QtGui.QLabel(RTEDlg)
        self.label_4.setGeometry(QtCore.QRect(890, 30, 231, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.label_5 = QtGui.QLabel(RTEDlg)
        self.label_5.setGeometry(QtCore.QRect(880, 300, 231, 16))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.label_6 = QtGui.QLabel(RTEDlg)
        self.label_6.setGeometry(QtCore.QRect(10, 340, 221, 111))
        self.label_6.setTextFormat(QtCore.Qt.AutoText)
        self.label_6.setObjectName(_fromUtf8("label_6"))
#.........这里部分代码省略.........
开发者ID:everfor,项目名称:McGill_CodeJam_2012,代码行数:103,代码来源:ui_rte.py

示例11: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(686, 600)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(20, 20, 51, 21))
        self.label.setObjectName(_fromUtf8("label"))
        self.textbox = QtGui.QLineEdit(self.centralwidget)
        self.textbox.setGeometry(QtCore.QRect(70, 20, 261, 21))
        self.textbox.setObjectName(_fromUtf8("textbox"))
        self.label_2 = QtGui.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(350, 20, 46, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.lowerbound = QtGui.QLineEdit(self.centralwidget)
        self.lowerbound.setGeometry(QtCore.QRect(380, 20, 71, 20))
        self.lowerbound.setObjectName(_fromUtf8("lowerbound"))
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setGeometry(QtCore.QRect(460, 20, 46, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.upperbound = QtGui.QLineEdit(self.centralwidget)
        self.upperbound.setGeometry(QtCore.QRect(500, 20, 61, 20))
        self.upperbound.setObjectName(_fromUtf8("upperbound"))
        self.draw_button = QtGui.QPushButton(self.centralwidget)
        self.draw_button.setGeometry(QtCore.QRect(570, 20, 81, 31))
        self.draw_button.setObjectName(_fromUtf8("draw_button"))
        self.logx_cb = QtGui.QCheckBox(self.centralwidget)
        self.logx_cb.setGeometry(QtCore.QRect(20, 50, 61, 31))
        self.logx_cb.setIconSize(QtCore.QSize(30, 16))
        self.logx_cb.setObjectName(_fromUtf8("logx_cb"))
        self.logy_cb = QtGui.QCheckBox(self.centralwidget)
        self.logy_cb.setGeometry(QtCore.QRect(130, 50, 70, 31))
        self.logy_cb.setObjectName(_fromUtf8("logy_cb"))
        self.trunc_cb = QtGui.QCheckBox(self.centralwidget)
        self.trunc_cb.setGeometry(QtCore.QRect(260, 50, 101, 31))
        self.trunc_cb.setObjectName(_fromUtf8("trunc_cb"))
        self.hold_cb = QtGui.QCheckBox(self.centralwidget)
        self.hold_cb.setGeometry(QtCore.QRect(390, 50, 70, 31))
        self.hold_cb.setObjectName(_fromUtf8("hold_cb"))
        self.grid_cb = QtGui.QCheckBox(self.centralwidget)
        self.grid_cb.setGeometry(QtCore.QRect(480, 50, 70, 31))
        self.grid_cb.setObjectName(_fromUtf8("grid_cb"))
        self.widget = QtGui.QWidget(self.centralwidget)
        self.widget.setGeometry(QtCore.QRect(10, 80, 631, 411))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.matplotlibwidget = MatplotlibWidget(self.widget)
        self.matplotlibwidget.setGeometry(QtCore.QRect(30, 20, 571, 371))
        self.matplotlibwidget.setObjectName(_fromUtf8("matplotlibwidget"))
        self.X_PS = QtGui.QLabel(self.centralwidget)
        self.X_PS.setGeometry(QtCore.QRect(530, 510, 46, 13))
        self.X_PS.setObjectName(_fromUtf8("X_PS"))
        self.Y_POS = QtGui.QLabel(self.centralwidget)
        self.Y_POS.setGeometry(QtCore.QRect(600, 510, 46, 13))
        self.Y_POS.setObjectName(_fromUtf8("Y_POS"))
        self.pushButton_2 = QtGui.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(30, 510, 75, 23))
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.pushButton_3 = QtGui.QPushButton(self.centralwidget)
        self.pushButton_3.setGeometry(QtCore.QRect(120, 510, 75, 23))
        self.pushButton_3.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 686, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFILE = QtGui.QMenu(self.menubar)
        self.menuFILE.setObjectName(_fromUtf8("menuFILE"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.save_plot_action = QtGui.QAction(MainWindow)
        self.save_plot_action.setObjectName(_fromUtf8("save_plot_action"))
        self.import_data_action = QtGui.QAction(MainWindow)
        self.import_data_action.setObjectName(_fromUtf8("import_data_action"))
        self.exitAction = QtGui.QAction(MainWindow)
        self.exitAction.setObjectName(_fromUtf8("exitAction"))
        self.menuFILE.addAction(self.save_plot_action)
        self.menuFILE.addAction(self.import_data_action)
        self.menuFILE.addAction(self.exitAction)
        self.menubar.addAction(self.menuFILE.menuAction())

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.label.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-size:10pt; font-style:italic;\">F(x) = </span></p></body></html>", None))
        self.label_2.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-size:10pt; font-style:italic;\">MIN</span></p></body></html>", None))
        self.label_3.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-size:10pt; font-style:italic;\">MAX</span></p></body></html>", None))
        self.draw_button.setText(_translate("MainWindow", "PLOT", None))
        self.logx_cb.setText(_translate("MainWindow", "Log-x", None))
        self.logy_cb.setText(_translate("MainWindow", "Log-y", None))
        self.trunc_cb.setText(_translate("MainWindow", "Show negative", None))
        self.hold_cb.setText(_translate("MainWindow", "Hold", None))
        self.grid_cb.setText(_translate("MainWindow", "Grind", None))
        self.X_PS.setText(_translate("MainWindow", "TextLabel", None))
        self.Y_POS.setText(_translate("MainWindow", "TextLabel", None))
        self.pushButton_2.setText(_translate("MainWindow", "PushButton", None))
#.........这里部分代码省略.........
开发者ID:Guillermo2013,项目名称:ProyectoMetodosNumericos,代码行数:103,代码来源:ventanaGraficado.py

示例12: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(871, 644)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setGeometry(QtCore.QRect(480, 15, 381, 301))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.lineEdit = QtGui.QLineEdit(self.groupBox)
        self.lineEdit.setGeometry(QtCore.QRect(10, 60, 331, 20))
        self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setGeometry(QtCore.QRect(10, 180, 81, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.lineEdit_2 = QtGui.QLineEdit(self.groupBox)
        self.lineEdit_2.setGeometry(QtCore.QRect(10, 200, 331, 41))
        self.lineEdit_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.lineEdit_2.setReadOnly(True)
        self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setGeometry(QtCore.QRect(10, 250, 61, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.progressBar = QtGui.QProgressBar(self.groupBox)
        self.progressBar.setGeometry(QtCore.QRect(6, 270, 371, 16))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        self.splitter = QtGui.QSplitter(self.groupBox)
        self.splitter.setGeometry(QtCore.QRect(10, 100, 171, 20))
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.label_11 = QtGui.QLabel(self.splitter)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.comboBox = QtGui.QComboBox(self.splitter)
        self.comboBox.setObjectName(_fromUtf8("comboBox"))
        self.comboBox.addItem(_fromUtf8(""))
        self.comboBox.addItem(_fromUtf8(""))
        self.comboBox.addItem(_fromUtf8(""))
        self.pushButton_4 = QtGui.QPushButton(self.groupBox)
        self.pushButton_4.setGeometry(QtCore.QRect(110, 30, 104, 23))
        self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
        self.pushButton = QtGui.QPushButton(self.groupBox)
        self.pushButton.setGeometry(QtCore.QRect(11, 30, 104, 23))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.pushButton_2 = QtGui.QPushButton(self.groupBox)
        self.pushButton_2.setGeometry(QtCore.QRect(10, 140, 104, 23))
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.label_18 = QtGui.QLabel(self.groupBox)
        self.label_18.setGeometry(QtCore.QRect(198, 102, 51, 16))
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.comboBox_4 = QtGui.QComboBox(self.groupBox)
        self.comboBox_4.setGeometry(QtCore.QRect(248, 100, 43, 20))
        self.comboBox_4.setObjectName(_fromUtf8("comboBox_4"))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_4.addItem(_fromUtf8(""))
        self.comboBox_5 = QtGui.QComboBox(self.groupBox)
        self.comboBox_5.setGeometry(QtCore.QRect(298, 100, 43, 20))
        self.comboBox_5.setObjectName(_fromUtf8("comboBox_5"))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.comboBox_5.addItem(_fromUtf8(""))
        self.radioButton = QtGui.QRadioButton(self.groupBox)
        self.radioButton.setGeometry(QtCore.QRect(140, 143, 82, 17))
        self.radioButton.setChecked(True)
        self.radioButton.setObjectName(_fromUtf8("radioButton"))
        self.radioButton_2 = QtGui.QRadioButton(self.groupBox)
        self.radioButton_2.setGeometry(QtCore.QRect(230, 143, 82, 17))
        self.radioButton_2.setObjectName(_fromUtf8("radioButton_2"))
        self.frame = QtGui.QFrame(self.centralwidget)
        self.frame.setGeometry(QtCore.QRect(140, 129, 120, 241))
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 0, 471, 381))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.widget = QtGui.QWidget()
        self.widget.setObjectName(_fromUtf8("widget"))
        self.label_4 = QtGui.QLabel(self.widget)
        self.label_4.setGeometry(QtCore.QRect(180, 600, 46, 20))
        self.label_4.setObjectName(_fromUtf8("label_4"))
#.........这里部分代码省略.........
开发者ID:MartinWeides,项目名称:qkit,代码行数:103,代码来源:gr_el.py

示例13: Ui_BlobFlowExplorer

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_BlobFlowExplorer(object):
    def setupUi(self, BlobFlowExplorer):
        BlobFlowExplorer.setObjectName(_fromUtf8("BlobFlowExplorer"))
        BlobFlowExplorer.resize(700, 515)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(BlobFlowExplorer.sizePolicy().hasHeightForWidth())
        BlobFlowExplorer.setSizePolicy(sizePolicy)
        self.mplwidget = MatplotlibWidget(BlobFlowExplorer)
        self.mplwidget.setGeometry(QtCore.QRect(280, 10, 400, 300))
        self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
        self.pushButton = QtGui.QPushButton(BlobFlowExplorer)
        self.pushButton.setGeometry(QtCore.QRect(590, 480, 90, 24))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.timeDial = QtGui.QDial(BlobFlowExplorer)
        self.timeDial.setGeometry(QtCore.QRect(210, 370, 50, 64))
        self.timeDial.setObjectName(_fromUtf8("timeDial"))
        self.verticalLayoutWidget = QtGui.QWidget(BlobFlowExplorer)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(20, 320, 160, 113))
        self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.line = QtGui.QFrame(self.verticalLayoutWidget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.verticalLayout.addWidget(self.line)
        self.label = QtGui.QLabel(self.verticalLayoutWidget)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.line_2 = QtGui.QFrame(self.verticalLayoutWidget)
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.verticalLayout.addWidget(self.line_2)
        self.Play = QtGui.QRadioButton(self.verticalLayoutWidget)
        self.Play.setObjectName(_fromUtf8("Play"))
        self.verticalLayout.addWidget(self.Play)
        self.Rewind = QtGui.QRadioButton(self.verticalLayoutWidget)
        self.Rewind.setObjectName(_fromUtf8("Rewind"))
        self.verticalLayout.addWidget(self.Rewind)
        self.Pause = QtGui.QRadioButton(self.verticalLayoutWidget)
        self.Pause.setChecked(True)
        self.Pause.setObjectName(_fromUtf8("Pause"))
        self.verticalLayout.addWidget(self.Pause)
        self.line_3 = QtGui.QFrame(self.verticalLayoutWidget)
        self.line_3.setFrameShape(QtGui.QFrame.HLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.verticalLayout.addWidget(self.line_3)
        self.horizontalLayoutWidget = QtGui.QWidget(BlobFlowExplorer)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(280, 390, 401, 80))
        self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.horizontalScrollBar = QtGui.QScrollBar(self.horizontalLayoutWidget)
        self.horizontalScrollBar.setInputMethodHints(QtCore.Qt.ImhNone)
        self.horizontalScrollBar.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalScrollBar.setObjectName(_fromUtf8("horizontalScrollBar"))
        self.horizontalLayout.addWidget(self.horizontalScrollBar)
        self.CurrentFrame = QtGui.QSpinBox(self.horizontalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.CurrentFrame.sizePolicy().hasHeightForWidth())
        self.CurrentFrame.setSizePolicy(sizePolicy)
        self.CurrentFrame.setObjectName(_fromUtf8("CurrentFrame"))
        self.horizontalLayout.addWidget(self.CurrentFrame)
        self.layoutWidget = QtGui.QWidget(BlobFlowExplorer)
        self.layoutWidget.setGeometry(QtCore.QRect(300, 320, 361, 52))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.xMin = QtGui.QDoubleSpinBox(self.layoutWidget)
        self.xMin.setMinimum(-1000.0)
        self.xMin.setMaximum(1000.0)
        self.xMin.setObjectName(_fromUtf8("xMin"))
        self.horizontalLayout_2.addWidget(self.xMin)
        self.xMinDial = QtGui.QDial(self.layoutWidget)
        self.xMinDial.setObjectName(_fromUtf8("xMinDial"))
        self.horizontalLayout_2.addWidget(self.xMinDial)
        self.resetZoomx = QtGui.QPushButton(self.layoutWidget)
        self.resetZoomx.setObjectName(_fromUtf8("resetZoomx"))
        self.horizontalLayout_2.addWidget(self.resetZoomx)
        self.xMaxDial = QtGui.QDial(self.layoutWidget)
        self.xMaxDial.setObjectName(_fromUtf8("xMaxDial"))
        self.horizontalLayout_2.addWidget(self.xMaxDial)
        self.xMax = QtGui.QDoubleSpinBox(self.layoutWidget)
        self.xMax.setMinimum(-1000.0)
        self.xMax.setMaximum(1000.0)
        self.xMax.setProperty("value", 1.0)
        self.xMax.setObjectName(_fromUtf8("xMax"))
        self.horizontalLayout_2.addWidget(self.xMax)
        self.layoutWidget1 = QtGui.QWidget(BlobFlowExplorer)
        self.layoutWidget1.setGeometry(QtCore.QRect(209, 40, 61, 251))
#.........这里部分代码省略.........
开发者ID:Louminator,项目名称:grdviz,代码行数:103,代码来源:mpltest.py

示例14: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(740, 460)
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.mplwidget = MatplotlibWidget(self.centralwidget)
        self.mplwidget.setGeometry(QtCore.QRect(200, 30, 521, 381))
        self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
        self.label_6 = QtGui.QLabel(self.centralwidget)
        self.label_6.setGeometry(QtCore.QRect(200, 10, 371, 16))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.label_6.setFont(font)
        self.label_6.setText(QtGui.QApplication.translate("MainWindow", "Quantum Wire Conductance Measurement", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.widget = QtGui.QWidget(self.centralwidget)
        self.widget.setGeometry(QtCore.QRect(50, 30, 143, 383))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.widget)
        self.verticalLayout_7.setMargin(0)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(self.widget)
        self.label.setText(QtGui.QApplication.translate("MainWindow", "Gate Voltage", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.gate_display = QtGui.QLCDNumber(self.widget)
        self.gate_display.setObjectName(_fromUtf8("gate_display"))
        self.horizontalLayout.addWidget(self.gate_display)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.conductanceLabel = QtGui.QLabel(self.widget)
        self.conductanceLabel.setText(QtGui.QApplication.translate("MainWindow", "Conductance", None, QtGui.QApplication.UnicodeUTF8))
        self.conductanceLabel.setObjectName(_fromUtf8("conductanceLabel"))
        self.horizontalLayout_2.addWidget(self.conductanceLabel)
        self.conductance = QtGui.QLCDNumber(self.widget)
        self.conductance.setObjectName(_fromUtf8("conductance"))
        self.horizontalLayout_2.addWidget(self.conductance)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.timeLabel = QtGui.QLabel(self.widget)
        self.timeLabel.setText(QtGui.QApplication.translate("MainWindow", "Time", None, QtGui.QApplication.UnicodeUTF8))
        self.timeLabel.setObjectName(_fromUtf8("timeLabel"))
        self.horizontalLayout_3.addWidget(self.timeLabel)
        self.time = QtGui.QLCDNumber(self.widget)
        self.time.setObjectName(_fromUtf8("time"))
        self.horizontalLayout_3.addWidget(self.time)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.tempLabel = QtGui.QLabel(self.widget)
        self.tempLabel.setText(QtGui.QApplication.translate("MainWindow", "Temperature", None, QtGui.QApplication.UnicodeUTF8))
        self.tempLabel.setObjectName(_fromUtf8("tempLabel"))
        self.horizontalLayout_4.addWidget(self.tempLabel)
        self.temp = QtGui.QLCDNumber(self.widget)
        self.temp.setObjectName(_fromUtf8("temp"))
        self.horizontalLayout_4.addWidget(self.temp)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.pointsLabel = QtGui.QLabel(self.widget)
        self.pointsLabel.setText(QtGui.QApplication.translate("MainWindow", "Step Size", None, QtGui.QApplication.UnicodeUTF8))
        self.pointsLabel.setObjectName(_fromUtf8("pointsLabel"))
        self.horizontalLayout_5.addWidget(self.pointsLabel)
        self.stepSize = QtGui.QDoubleSpinBox(self.widget)
        self.stepSize.setProperty("value", 0.1)
        self.stepSize.setObjectName(_fromUtf8("stepSize"))
        self.horizontalLayout_5.addWidget(self.stepSize)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.maxGateLabel = QtGui.QLabel(self.widget)
        self.maxGateLabel.setText(QtGui.QApplication.translate("MainWindow", "Max gate", None, QtGui.QApplication.UnicodeUTF8))
        self.maxGateLabel.setObjectName(_fromUtf8("maxGateLabel"))
        self.horizontalLayout_6.addWidget(self.maxGateLabel)
        self.maxGate = QtGui.QDoubleSpinBox(self.widget)
        self.maxGate.setMinimum(-99.0)
        self.maxGate.setProperty("value", -2.0)
        self.maxGate.setObjectName(_fromUtf8("maxGate"))
        self.horizontalLayout_6.addWidget(self.maxGate)
        self.verticalLayout.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.delayLabel_2 = QtGui.QLabel(self.widget)
        self.delayLabel_2.setText(QtGui.QApplication.translate("MainWindow", "Delay", None, QtGui.QApplication.UnicodeUTF8))
        self.delayLabel_2.setObjectName(_fromUtf8("delayLabel_2"))
        self.horizontalLayout_7.addWidget(self.delayLabel_2)
        self.delay = QtGui.QSpinBox(self.widget)
        self.delay.setProperty("value", 1)
#.........这里部分代码省略.........
开发者ID:bramathon,项目名称:brampy,代码行数:103,代码来源:plotter.py

示例15: Ui_Dialog

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setGeometry [as 别名]
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(905, 675)
        self.graphicsView = QtGui.QGraphicsView(Dialog)
        self.graphicsView.setGeometry(QtCore.QRect(9, 9, 256, 192))
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.imagewidget = ImageWidget(Dialog)
        self.imagewidget.setGeometry(QtCore.QRect(290, 10, 291, 191))
        self.imagewidget.setOrientation(QtCore.Qt.Vertical)
        self.imagewidget.setObjectName(_fromUtf8("imagewidget"))
        self.curvewidget = CurveWidget(Dialog)
        self.curvewidget.setGeometry(QtCore.QRect(620, 10, 241, 211))
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.mplwidget = MatplotlibWidget(Dialog)
        self.mplwidget.setGeometry(QtCore.QRect(0, 230, 311, 231))
        self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
        self.qwtPlot = Qwt5.QwtPlot(Dialog)
        self.qwtPlot.setGeometry(QtCore.QRect(540, 260, 281, 161))
        self.qwtPlot.setObjectName(_fromUtf8("qwtPlot"))
        self.AnalogClock = Qwt5.QwtAnalogClock(Dialog)
        self.AnalogClock.setGeometry(QtCore.QRect(30, 500, 151, 151))
        self.AnalogClock.setLineWidth(4)
        self.AnalogClock.setObjectName(_fromUtf8("AnalogClock"))
        self.Compass = Qwt5.QwtCompass(Dialog)
        self.Compass.setGeometry(QtCore.QRect(220, 490, 151, 151))
        self.Compass.setLineWidth(4)
        self.Compass.setObjectName(_fromUtf8("Compass"))
        self.Thermo = Qwt5.QwtThermo(Dialog)
        self.Thermo.setGeometry(QtCore.QRect(390, 480, 71, 151))
        self.Thermo.setObjectName(_fromUtf8("Thermo"))
        self.Wheel = Qwt5.QwtWheel(Dialog)
        self.Wheel.setGeometry(QtCore.QRect(510, 470, 151, 31))
        self.Wheel.setObjectName(_fromUtf8("Wheel"))
        self.label = QtGui.QLabel(Dialog)
        self.label.setGeometry(QtCore.QRect(80, 210, 131, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(Dialog)
        self.label_2.setGeometry(QtCore.QRect(370, 210, 131, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(Dialog)
        self.label_3.setGeometry(QtCore.QRect(690, 230, 131, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.label_4 = QtGui.QLabel(Dialog)
        self.label_4.setGeometry(QtCore.QRect(80, 470, 131, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.label_5 = QtGui.QLabel(Dialog)
        self.label_5.setGeometry(QtCore.QRect(370, 420, 131, 16))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.label_6 = QtGui.QLabel(Dialog)
        self.label_6.setGeometry(QtCore.QRect(660, 430, 131, 16))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.label_8 = QtGui.QLabel(Dialog)
        self.label_8.setGeometry(QtCore.QRect(60, 650, 131, 16))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.label_9 = QtGui.QLabel(Dialog)
        self.label_9.setGeometry(QtCore.QRect(250, 650, 131, 16))
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.label_10 = QtGui.QLabel(Dialog)
        self.label_10.setGeometry(QtCore.QRect(410, 650, 131, 16))
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.label_11 = QtGui.QLabel(Dialog)
        self.label_11.setGeometry(QtCore.QRect(550, 530, 131, 16))
        self.label_11.setObjectName(_fromUtf8("label_11"))

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

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(_translate("Dialog", "Dialog", None))
        self.label.setText(_translate("Dialog", "Graphics View", None))
        self.label_2.setText(_translate("Dialog", "ImageWidget", None))
        self.label_3.setText(_translate("Dialog", "CurveWidget", None))
        self.label_4.setText(_translate("Dialog", "MatplotlibWidget", None))
        self.label_5.setText(_translate("Dialog", "QVTKWidget", None))
        self.label_6.setText(_translate("Dialog", "QwtPlot", None))
        self.label_8.setText(_translate("Dialog", "QwtAnalogClock", None))
        self.label_9.setText(_translate("Dialog", "QwtCompass", None))
        self.label_10.setText(_translate("Dialog", "QwtThermo", None))
        self.label_11.setText(_translate("Dialog", "QwtWheel", None))
开发者ID:Liung,项目名称:QAeroData,代码行数:83,代码来源:wingWin_ui.py


注:本文中的matplotlibwidget.MatplotlibWidget.setGeometry方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。