本文整理汇总了Python中PyQt4.Qwt5.QwtPlot.setObjectName方法的典型用法代码示例。如果您正苦于以下问题:Python QwtPlot.setObjectName方法的具体用法?Python QwtPlot.setObjectName怎么用?Python QwtPlot.setObjectName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt4.Qwt5.QwtPlot
的用法示例。
在下文中一共展示了QwtPlot.setObjectName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: add_plot
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
def add_plot(self, name, units):
# legend
legend = QwtLegend()
legend.setFrameStyle(Qt.QFrame.Box | Qt.QFrame.Sunken)
legend.setItemMode(QwtLegend.ClickableItem)
# plot
plot = QwtPlot(self)
plot.setTitle(name.upper())
plot.setObjectName(name)
plot.setCanvasBackground(Qt.Qt.white)
plot.setAxisTitle(QwtPlot.xBottom, "time [s]")
plot.insertLegend(legend, QwtPlot.RightLegend)
plot.time = deque(maxlen=MAX_LENGTH)
plot.data = []
plot.curves = []
for i, unit in enumerate(units):
position = QwtPlot.yLeft if i == 0 else QwtPlot.yRight
curve = QwtPlotCurve(LEGENDS[unit])
curve.setPen(Qt.QPen(self.next_color(), 2))
curve.setYAxis(position)
curve.attach(plot)
plot.enableAxis(position)
plot.setAxisTitle(position, unit)
plot.curves.append(curve)
plot.data.append(deque(maxlen=MAX_LENGTH))
self.vertical_layout.addWidget(plot)
self._plots[name] = plot
示例2: Ui_MainWindow
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class Ui_MainWindow(QtGui.QMainWindow):
def __init__(self,parent = None):
#init
QtGui.QMainWindow.__init__(self)
self.setupUi(self)
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(800, 600)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.uiFillterProcess = QtGui.QLineEdit(self.tab)
self.uiFillterProcess.setObjectName(_fromUtf8("uiFillterProcess"))
self.horizontalLayout_2.addWidget(self.uiFillterProcess)
self.uiFillterUser = QtGui.QLineEdit(self.tab)
self.uiFillterUser.setObjectName(_fromUtf8("uiFillterUser"))
self.horizontalLayout_2.addWidget(self.uiFillterUser)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.uiTable = QtGui.QTableView(self.tab)
self.uiTable.setObjectName(_fromUtf8("uiTable"))
self.verticalLayout_2.addWidget(self.uiTable)
self.uiRefreshButton = QtGui.QPushButton(self.tab)
self.uiRefreshButton.setObjectName(_fromUtf8("uiRefreshButton"))
self.verticalLayout_2.addWidget(self.uiRefreshButton)
self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.qwtPlot = QwtPlot(self.tab_2)
self.qwtPlot.setGeometry(QtCore.QRect(80, 50, 274, 234))
self.qwtPlot.setObjectName(_fromUtf8("qwtPlot"))
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.verticalLayout.addWidget(self.tabWidget)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.verticalLayout.addLayout(self.horizontalLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(1)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
self.uiRefreshButton.setText(_translate("MainWindow", "Refresh", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Processes", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Resources", None))
示例3: Ui_MainWindow
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(700, 500)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
#plotting of the EEG signal itself
self.eegPlot = QwtPlot(self.centralwidget)
self.eegPlot.setGeometry(QtCore.QRect(30, 20, 411, 411))
self.eegPlot.setObjectName(_fromUtf8("EEG Plot"))
#begin the acquisition of the signal and stop as well
self.startEEG = QtGui.QPushButton(self.centralwidget)
self.startEEG.setGeometry(QtCore.QRect(460, 370, 87, 27))
self.startEEG.setObjectName(_fromUtf8("Start EEG"))
self.stopEEG = QtGui.QPushButton(self.centralwidget)
self.stopEEG.setGeometry(QtCore.QRect(580, 370, 87, 27))
self.stopEEG.setObjectName(_fromUtf8("Stop EEG"))
#create a menubar(?)
menubar = QMainWindow.menuBar()
fileMenu = menubar.addMenu('&File')
fileMenu.addAction(exitAction)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 707, 24))
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.startEEG.setText(translate("MainWindow", "Start", None))
self.stopEEG.setText(translate("MainWindow", "Stop", None))
示例4: Ui_MainWindow
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [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.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(70, 120, 661, 291))
self.tabWidget.setObjectName("tabWidget")
self.tab = QtGui.QWidget()
self.tab.setObjectName("tab")
self.qwtPlot = QwtPlot(self.tab)
self.qwtPlot.setGeometry(QtCore.QRect(20, 30, 400, 200))
self.qwtPlot.setObjectName("qwtPlot")
self.Knob = QwtKnob(self.tab)
self.Knob.setGeometry(QtCore.QRect(490, 60, 114, 114))
self.Knob.setObjectName("Knob")
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName("tab_2")
self.tabWidget.addTab(self.tab_2, "")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 26))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "Tab 1", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtGui.QApplication.translate("MainWindow", "Tab 2", None, QtGui.QApplication.UnicodeUTF8))
示例5: ValueWidget
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class ValueWidget(QWidget, Ui_Widget):
def __init__(self, iface):
self.hasqwt=hasqwt
self.hasmpl=hasmpl
self.layerMap=dict()
self.statsChecked=False
self.ymin=0
self.ymax=250
self.iface=iface
self.canvas=self.iface.mapCanvas()
self.legend=self.iface.legendInterface()
self.logger = logging.getLogger('.'.join((__name__,
self.__class__.__name__)))
QWidget.__init__(self)
self.setupUi(self)
self.setupUi_extra()
QObject.connect(self.cbxActive,SIGNAL("stateChanged(int)"),self.changeActive)
QObject.connect(self.cbxGraph,SIGNAL("stateChanged(int)"),self.changePage)
QObject.connect(self.canvas, SIGNAL( "keyPressed( QKeyEvent * )" ), self.pauseDisplay )
QObject.connect(self.plotSelector, SIGNAL( "currentIndexChanged ( int )" ), self.changePlot )
def setupUi_extra(self):
# checkboxes
#self.changeActive(Qt.Checked)
#set inactive by default - should save last state in user config
self.cbxActive.setCheckState(Qt.Unchecked)
# plot
self.plotSelector.setVisible( False )
self.cbxStats.setVisible( False )
self.graphControls.setVisible( False )
if self.hasqwt:
self.plotSelector.addItem( 'Qwt' )
if self.hasmpl:
self.plotSelector.addItem( 'mpl' )
self.plotSelector.setCurrentIndex( 0 );
if (not self.hasqwt or not self.hasmpl):
#self.plotSelector.setVisible(False)
self.plotSelector.setEnabled(False)
# Page 2 - qwt
if self.hasqwt:
self.qwtPlot = QwtPlot(self.stackedWidget)
self.qwtPlot.setAutoFillBackground(False)
self.qwtPlot.setObjectName("qwtPlot")
self.curve = QwtPlotCurve()
self.curve.setSymbol(
QwtSymbol(QwtSymbol.Ellipse,
QBrush(Qt.white),
QPen(Qt.red, 2),
QSize(9, 9)))
self.curve.attach(self.qwtPlot)
self.qwtPlot.setVisible(False)
else:
self.qwtPlot = QtGui.QLabel("Need Qwt >= 5.0 or matplotlib >= 1.0 !")
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.qwtPlot.sizePolicy().hasHeightForWidth())
self.qwtPlot.setSizePolicy(sizePolicy)
self.qwtPlot.setObjectName("qwtPlot")
self.qwtPlot.updateGeometry()
self.stackedWidget.addWidget(self.qwtPlot)
#Page 3 - matplotlib
self.mplLine = None #make sure to invalidate when layers change
if self.hasmpl:
# mpl stuff
# should make figure light gray
self.mplBackground = None #http://www.scipy.org/Cookbook/Matplotlib/Animations
self.mplFig = plt.Figure(facecolor='w', edgecolor='w')
self.mplFig.subplots_adjust(left=0.1, right=0.975, bottom=0.13, top=0.95)
self.mplPlt = self.mplFig.add_subplot(111)
self.mplPlt.tick_params(axis='both', which='major', labelsize=12)
self.mplPlt.tick_params(axis='both', which='minor', labelsize=10)
# qt stuff
self.pltCanvas = FigureCanvasQTAgg(self.mplFig)
self.pltCanvas.setParent(self.stackedWidget)
self.pltCanvas.setAutoFillBackground(False)
self.pltCanvas.setObjectName("mplPlot")
self.mplPlot = self.pltCanvas
self.mplPlot.setVisible(False)
else:
self.mplPlot = QtGui.QLabel("Need Qwt >= 5.0 or matplotlib >= 1.0 !")
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mplPlot.sizePolicy().hasHeightForWidth())
self.mplPlot.setSizePolicy(sizePolicy)
self.qwtPlot.setObjectName("qwtPlot")
self.mplPlot.updateGeometry()
self.stackedWidget.addWidget(self.mplPlot)
#.........这里部分代码省略.........
示例6: Ui_MainWindow
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(686, 358)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.frame = QtGui.QFrame(self.centralwidget)
self.frame.setMaximumSize(QtCore.QSize(16777215, 40))
self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame.setFrameShadow(QtGui.QFrame.Raised)
self.frame.setObjectName(_fromUtf8("frame"))
self.horizontalLayout = QtGui.QHBoxLayout(self.frame)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.freezeCheckBox = QtGui.QCheckBox(self.frame)
self.freezeCheckBox.setObjectName(_fromUtf8("freezeCheckBox"))
self.horizontalLayout.addWidget(self.freezeCheckBox)
self.memory = QtGui.QProgressBar(self.frame)
self.memory.setStyleSheet(_fromUtf8(" QProgressBar {\n"
" border: 2px solid grey;\n"
" border-radius: 3px;\n"
" }\n"
"\n"
" QProgressBar::chunk {\n"
" background-color:rgb(32, 140, 2)\n"
" }\n"
"\n"
" QProgressBar {\n"
" border: 2px solid grey;\n"
" border-radius: 3px;\n"
" text-align: center;\n"
" }\n"
"\n"
" "))
self.memory.setProperty("value", 0)
self.memory.setTextVisible(False)
self.memory.setOrientation(QtCore.Qt.Vertical)
self.memory.setObjectName(_fromUtf8("memory"))
self.horizontalLayout.addWidget(self.memory)
self.swap = QtGui.QProgressBar(self.frame)
self.swap.setStyleSheet(_fromUtf8(" QProgressBar {\n"
" border: 2px solid grey;\n"
" border-radius: 3px;\n"
" }\n"
"\n"
" QProgressBar::chunk {\n"
" background-color:rgb(185, 0, 3)\n"
" }\n"
"\n"
" QProgressBar {\n"
" border: 2px solid grey;\n"
" border-radius: 3px;\n"
" text-align: center;\n"
" }\n"
"\n"
" "))
self.swap.setProperty("value", 0)
self.swap.setTextVisible(False)
self.swap.setOrientation(QtCore.Qt.Vertical)
self.swap.setObjectName(_fromUtf8("swap"))
self.horizontalLayout.addWidget(self.swap)
self.qwtPlotOverallCpuHist = QwtPlot(self.frame)
self.qwtPlotOverallCpuHist.setMinimumSize(QtCore.QSize(150, 0))
self.qwtPlotOverallCpuHist.setMaximumSize(QtCore.QSize(150, 50))
self.qwtPlotOverallCpuHist.setObjectName(_fromUtf8("qwtPlotOverallCpuHist"))
self.horizontalLayout.addWidget(self.qwtPlotOverallCpuHist)
self.verticalLayout.addWidget(self.frame)
self.processTreeWidget = QtGui.QTreeWidget(self.centralwidget)
self.processTreeWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
self.processTreeWidget.setColumnCount(0)
self.processTreeWidget.setObjectName(_fromUtf8("processTreeWidget"))
self.processTreeWidget.header().setCascadingSectionResizes(True)
self.processTreeWidget.header().setDefaultSectionSize(50)
self.verticalLayout.addWidget(self.processTreeWidget)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 686, 25))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
self.menuOptions = QtGui.QMenu(self.menubar)
self.menuOptions.setObjectName(_fromUtf8("menuOptions"))
self.menuView = QtGui.QMenu(self.menubar)
self.menuView.setObjectName(_fromUtf8("menuView"))
self.menuProcess = QtGui.QMenu(self.menubar)
self.menuProcess.setObjectName(_fromUtf8("menuProcess"))
self.menuSettings = QtGui.QMenu(self.menubar)
self.menuSettings.setObjectName(_fromUtf8("menuSettings"))
self.menuHelp = QtGui.QMenu(self.menubar)
self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
#.........这里部分代码省略.........
示例7: Ui_MainWindow
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1124, 696)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.filterFrame = QtGui.QFrame(self.centralwidget)
self.filterFrame.setMinimumSize(QtCore.QSize(300, 0))
self.filterFrame.setMaximumSize(QtCore.QSize(300, 16777215))
self.filterFrame.setFrameShape(QtGui.QFrame.StyledPanel)
self.filterFrame.setFrameShadow(QtGui.QFrame.Raised)
self.filterFrame.setObjectName("filterFrame")
self.verticalLayout = QtGui.QVBoxLayout(self.filterFrame)
self.verticalLayout.setObjectName("verticalLayout")
self.filterTypeComboBox = QtGui.QComboBox(self.filterFrame)
self.filterTypeComboBox.setObjectName("filterTypeComboBox")
self.filterTypeComboBox.addItem("")
self.filterTypeComboBox.addItem("")
self.filterTypeComboBox.addItem("")
self.filterTypeComboBox.addItem("")
self.filterTypeComboBox.addItem("")
self.filterTypeComboBox.addItem("")
self.filterTypeComboBox.addItem("")
self.verticalLayout.addWidget(self.filterTypeComboBox)
self.filterDesignTypeComboBox = QtGui.QComboBox(self.filterFrame)
self.filterDesignTypeComboBox.setObjectName("filterDesignTypeComboBox")
self.filterDesignTypeComboBox.addItem("")
self.filterDesignTypeComboBox.addItem("")
self.filterDesignTypeComboBox.addItem("")
self.filterDesignTypeComboBox.addItem("")
self.filterDesignTypeComboBox.addItem("")
self.filterDesignTypeComboBox.addItem("")
self.filterDesignTypeComboBox.addItem("")
self.verticalLayout.addWidget(self.filterDesignTypeComboBox)
self.globalParamsLayout = QtGui.QFormLayout()
self.globalParamsLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
self.globalParamsLayout.setObjectName("globalParamsLayout")
self.sampleRateLabel = QtGui.QLabel(self.filterFrame)
self.sampleRateLabel.setMaximumSize(QtCore.QSize(16777215, 30))
self.sampleRateLabel.setObjectName("sampleRateLabel")
self.globalParamsLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.sampleRateLabel)
self.sampleRateEdit = QtGui.QLineEdit(self.filterFrame)
self.sampleRateEdit.setMaximumSize(QtCore.QSize(16777215, 30))
self.sampleRateEdit.setObjectName("sampleRateEdit")
self.globalParamsLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.sampleRateEdit)
self.filterGainLabel = QtGui.QLabel(self.filterFrame)
self.filterGainLabel.setObjectName("filterGainLabel")
self.globalParamsLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.filterGainLabel)
self.filterGainEdit = QtGui.QLineEdit(self.filterFrame)
self.filterGainEdit.setObjectName("filterGainEdit")
self.globalParamsLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.filterGainEdit)
self.verticalLayout.addLayout(self.globalParamsLayout)
self.filterTypeWidget = QtGui.QStackedWidget(self.filterFrame)
self.filterTypeWidget.setObjectName("filterTypeWidget")
self.firlpfPage = QtGui.QWidget()
self.firlpfPage.setObjectName("firlpfPage")
self.formLayout = QtGui.QFormLayout(self.firlpfPage)
self.formLayout.setObjectName("formLayout")
self.endofLpfPassBandLabel = QtGui.QLabel(self.firlpfPage)
self.endofLpfPassBandLabel.setObjectName("endofLpfPassBandLabel")
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.endofLpfPassBandLabel)
self.endofLpfPassBandEdit = QtGui.QLineEdit(self.firlpfPage)
self.endofLpfPassBandEdit.setObjectName("endofLpfPassBandEdit")
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.endofLpfPassBandEdit)
self.startofLpfStopBandLabel = QtGui.QLabel(self.firlpfPage)
self.startofLpfStopBandLabel.setObjectName("startofLpfStopBandLabel")
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.startofLpfStopBandLabel)
self.startofLpfStopBandEdit = QtGui.QLineEdit(self.firlpfPage)
self.startofLpfStopBandEdit.setObjectName("startofLpfStopBandEdit")
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.startofLpfStopBandEdit)
self.lpfStopBandAttenLabel = QtGui.QLabel(self.firlpfPage)
self.lpfStopBandAttenLabel.setObjectName("lpfStopBandAttenLabel")
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.lpfStopBandAttenLabel)
self.lpfStopBandAttenEdit = QtGui.QLineEdit(self.firlpfPage)
self.lpfStopBandAttenEdit.setObjectName("lpfStopBandAttenEdit")
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.lpfStopBandAttenEdit)
self.lpfPassBandRippleEdit = QtGui.QLineEdit(self.firlpfPage)
self.lpfPassBandRippleEdit.setObjectName("lpfPassBandRippleEdit")
self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.lpfPassBandRippleEdit)
self.lpfPassBandRippleLabel = QtGui.QLabel(self.firlpfPage)
self.lpfPassBandRippleLabel.setObjectName("lpfPassBandRippleLabel")
self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.lpfPassBandRippleLabel)
self.filterTypeWidget.addWidget(self.firlpfPage)
self.firbpfPage = QtGui.QWidget()
self.firbpfPage.setObjectName("firbpfPage")
self.formLayout_2 = QtGui.QFormLayout(self.firbpfPage)
self.formLayout_2.setObjectName("formLayout_2")
self.startofBpfPassBandLabel = QtGui.QLabel(self.firbpfPage)
self.startofBpfPassBandLabel.setObjectName("startofBpfPassBandLabel")
self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.startofBpfPassBandLabel)
self.startofBpfPassBandEdit = QtGui.QLineEdit(self.firbpfPage)
self.startofBpfPassBandEdit.setObjectName("startofBpfPassBandEdit")
self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.startofBpfPassBandEdit)
self.endofBpfPassBandLabel = QtGui.QLabel(self.firbpfPage)
self.endofBpfPassBandLabel.setObjectName("endofBpfPassBandLabel")
self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.endofBpfPassBandLabel)
self.endofBpfPassBandEdit = QtGui.QLineEdit(self.firbpfPage)
self.endofBpfPassBandEdit.setObjectName("endofBpfPassBandEdit")
#.........这里部分代码省略.........
示例8: Ui_MainWindow
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(1172, 708)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.graphSelectionLayout = QtGui.QVBoxLayout()
self.graphSelectionLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
self.graphSelectionLayout.setObjectName(_fromUtf8("graphSelectionLayout"))
self.lblProject = QtGui.QLabel(self.centralwidget)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.lblProject.setFont(font)
self.lblProject.setObjectName(_fromUtf8("lblProject"))
self.graphSelectionLayout.addWidget(self.lblProject)
self.listProjectMeasurements = QtGui.QListWidget(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.listProjectMeasurements.sizePolicy().hasHeightForWidth())
self.listProjectMeasurements.setSizePolicy(sizePolicy)
self.listProjectMeasurements.setObjectName(_fromUtf8("listProjectMeasurements"))
self.graphSelectionLayout.addWidget(self.listProjectMeasurements)
self.btnProjectClearSelection = QtGui.QPushButton(self.centralwidget)
self.btnProjectClearSelection.setEnabled(False)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btnProjectClearSelection.sizePolicy().hasHeightForWidth())
self.btnProjectClearSelection.setSizePolicy(sizePolicy)
self.btnProjectClearSelection.setObjectName(_fromUtf8("btnProjectClearSelection"))
self.graphSelectionLayout.addWidget(self.btnProjectClearSelection)
self.lblMeasureParam = QtGui.QLabel(self.centralwidget)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.lblMeasureParam.setFont(font)
self.lblMeasureParam.setObjectName(_fromUtf8("lblMeasureParam"))
self.graphSelectionLayout.addWidget(self.lblMeasureParam)
self.listMeasurementParameter = QtGui.QListWidget(self.centralwidget)
self.listMeasurementParameter.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.listMeasurementParameter.sizePolicy().hasHeightForWidth())
self.listMeasurementParameter.setSizePolicy(sizePolicy)
self.listMeasurementParameter.setObjectName(_fromUtf8("listMeasurementParameter"))
self.graphSelectionLayout.addWidget(self.listMeasurementParameter)
self.btnMeasureParamClearSelection = QtGui.QPushButton(self.centralwidget)
self.btnMeasureParamClearSelection.setEnabled(False)
self.btnMeasureParamClearSelection.setObjectName(_fromUtf8("btnMeasureParamClearSelection"))
self.graphSelectionLayout.addWidget(self.btnMeasureParamClearSelection)
self.horizontalLayout_2.addLayout(self.graphSelectionLayout)
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.lblLowerDisplayedFrequency = QtGui.QLabel(self.centralwidget)
self.lblLowerDisplayedFrequency.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.lblLowerDisplayedFrequency.setObjectName(_fromUtf8("lblLowerDisplayedFrequency"))
self.horizontalLayout.addWidget(self.lblLowerDisplayedFrequency)
self.dsbLowerDisplayedFrequency = QtGui.QDoubleSpinBox(self.centralwidget)
self.dsbLowerDisplayedFrequency.setEnabled(False)
self.dsbLowerDisplayedFrequency.setObjectName(_fromUtf8("dsbLowerDisplayedFrequency"))
self.horizontalLayout.addWidget(self.dsbLowerDisplayedFrequency)
self.lblUpperDisplayedFrequency = QtGui.QLabel(self.centralwidget)
self.lblUpperDisplayedFrequency.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.lblUpperDisplayedFrequency.setObjectName(_fromUtf8("lblUpperDisplayedFrequency"))
self.horizontalLayout.addWidget(self.lblUpperDisplayedFrequency)
self.dsbUpperDisplayedFrequency = QtGui.QDoubleSpinBox(self.centralwidget)
self.dsbUpperDisplayedFrequency.setEnabled(False)
self.dsbUpperDisplayedFrequency.setObjectName(_fromUtf8("dsbUpperDisplayedFrequency"))
self.horizontalLayout.addWidget(self.dsbUpperDisplayedFrequency)
self.btnApplyFrequencyRange = QtGui.QPushButton(self.centralwidget)
self.btnApplyFrequencyRange.setEnabled(False)
self.btnApplyFrequencyRange.setObjectName(_fromUtf8("btnApplyFrequencyRange"))
self.horizontalLayout.addWidget(self.btnApplyFrequencyRange)
self.btnRefreshSelection = QtGui.QPushButton(self.centralwidget)
self.btnRefreshSelection.setEnabled(False)
self.btnRefreshSelection.setObjectName(_fromUtf8("btnRefreshSelection"))
self.horizontalLayout.addWidget(self.btnRefreshSelection)
self.verticalLayout.addLayout(self.horizontalLayout)
self.qwtPlot = QwtPlot(self.centralwidget)
self.qwtPlot.setObjectName(_fromUtf8("qwtPlot"))
self.verticalLayout.addWidget(self.qwtPlot)
self.horizontalLayout_2.addLayout(self.verticalLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1172, 25))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
self.menuHilfe = QtGui.QMenu(self.menubar)
self.menuHilfe.setObjectName(_fromUtf8("menuHilfe"))
self.menuAnalysis = QtGui.QMenu(self.menubar)
self.menuAnalysis.setObjectName(_fromUtf8("menuAnalysis"))
self.menuProject = QtGui.QMenu(self.menubar)
#.........这里部分代码省略.........
示例9: Ui_Frame
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class Ui_Frame(object):
def setupUi(self, Frame):
Frame.setObjectName("Frame")
Frame.resize(652, 351)
Frame.setFrameShape(QtGui.QFrame.StyledPanel)
Frame.setFrameShadow(QtGui.QFrame.Raised)
self.horizontalLayoutWidget = QtGui.QWidget(Frame)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(25, 27, 591, 271))
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
self.horizontalLayout.setObjectName("horizontalLayout")
self.qwtPlot = QwtPlot(self.horizontalLayoutWidget)
self.qwtPlot.setObjectName("qwtPlot")
self.horizontalLayout.addWidget(self.qwtPlot)
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem)
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.label = QtGui.QLabel(self.horizontalLayoutWidget)
self.label.setLineWidth(1)
self.label.setMargin(2)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
self.Slider = QwtSlider(self.horizontalLayoutWidget)
self.Slider.setObjectName("Slider")
self.gridLayout.addWidget(self.Slider, 0, 1, 1, 1)
self.lcdNumber_2 = QtGui.QLCDNumber(self.horizontalLayoutWidget)
self.lcdNumber_2.setObjectName("lcdNumber_2")
self.gridLayout.addWidget(self.lcdNumber_2, 0, 2, 1, 1)
self.label_4 = QtGui.QLabel(self.horizontalLayoutWidget)
self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_4.setMargin(2)
self.label_4.setObjectName("label_4")
self.gridLayout.addWidget(self.label_4, 0, 3, 1, 1)
self.label_2 = QtGui.QLabel(self.horizontalLayoutWidget)
self.label_2.setMargin(2)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.Slider_2 = QwtSlider(self.horizontalLayoutWidget)
self.Slider_2.setObjectName("Slider_2")
self.gridLayout.addWidget(self.Slider_2, 1, 1, 1, 1)
self.lcdNumber_3 = QtGui.QLCDNumber(self.horizontalLayoutWidget)
self.lcdNumber_3.setObjectName("lcdNumber_3")
self.gridLayout.addWidget(self.lcdNumber_3, 1, 2, 1, 1)
self.label_5 = QtGui.QLabel(self.horizontalLayoutWidget)
self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_5.setMargin(2)
self.label_5.setObjectName("label_5")
self.gridLayout.addWidget(self.label_5, 1, 3, 1, 1)
self.label_3 = QtGui.QLabel(self.horizontalLayoutWidget)
self.label_3.setMargin(2)
self.label_3.setObjectName("label_3")
self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
self.Slider_3 = QwtSlider(self.horizontalLayoutWidget)
self.Slider_3.setObjectName("Slider_3")
self.gridLayout.addWidget(self.Slider_3, 2, 1, 1, 1)
self.lcdNumber = QtGui.QLCDNumber(self.horizontalLayoutWidget)
self.lcdNumber.setObjectName("lcdNumber")
self.gridLayout.addWidget(self.lcdNumber, 2, 2, 1, 1)
self.label_6 = QtGui.QLabel(self.horizontalLayoutWidget)
self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_6.setMargin(2)
self.label_6.setObjectName("label_6")
self.gridLayout.addWidget(self.label_6, 2, 3, 1, 1)
self.verticalLayout.addLayout(self.gridLayout)
self.horizontalLayout.addLayout(self.verticalLayout)
self.retranslateUi(Frame)
QtCore.QMetaObject.connectSlotsByName(Frame)
def retranslateUi(self, Frame):
Frame.setWindowTitle(QtGui.QApplication.translate("Frame", "Frame", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("Frame", "TimeDiv", None, QtGui.QApplication.UnicodeUTF8))
self.label_4.setText(QtGui.QApplication.translate("Frame", "s/div", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("Frame", "SigDiv", None, QtGui.QApplication.UnicodeUTF8))
self.label_5.setText(QtGui.QApplication.translate("Frame", "g/div", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("Frame", "SigOff", None, QtGui.QApplication.UnicodeUTF8))
self.label_6.setText(QtGui.QApplication.translate("Frame", "g", None, QtGui.QApplication.UnicodeUTF8))
示例10: ValueWidget
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class ValueWidget(QWidget, Ui_Widget):
def __init__(self, iface):
self.hasqwt=hasqwt
self.hasmpl=hasmpl
self.layerMap=dict()
self.statsChecked=False
self.ymin=0
self.ymax=250
self.isActive=False
# Statistics (>=1.9)
self.statsSampleSize = 2500000
self.stats = {} # stats per layer
self.layersSelected=[]
self.layerBands=dict()
self.iface=iface
self.canvas=self.iface.mapCanvas
self.legend=self.iface.legendInterface()
self.logger = logging.getLogger('.'.join((__name__,
self.__class__.__name__)))
QWidget.__init__(self)
self.setupUi(self)
self.tabWidget.setEnabled(False)
self.cbxClick.setChecked( QSettings().value('plugins/valuetool/mouseClick', False, type=bool ) )
#self.setupUi_plot()
#don't setup plot until Plot tab is clicked - workaround for bug #7450
#qgis will still crash in some cases, but at least the tool can be used in Table mode
self.qwtPlot = None
self.mplPlot = None
self.mplLine = None
QObject.connect(self.plotSelector, SIGNAL( "currentIndexChanged ( int )" ), self.changePlot )
QObject.connect(self.tabWidget, SIGNAL( "currentChanged ( int )" ), self.tabWidgetChanged )
QObject.connect(self.cbxLayers, SIGNAL( "currentIndexChanged ( int )" ), self.updateLayers )
QObject.connect(self.cbxBands, SIGNAL( "currentIndexChanged ( int )" ), self.updateLayers )
QObject.connect(self.tableWidget2, SIGNAL("cellChanged ( int , int )"), self.layerSelected)
def setupUi_plot(self):
# plot
self.plotSelector.setVisible( False )
self.cbxStats.setVisible( False )
# stats by default because estimated are fast
self.cbxStats.setChecked( True )
self.plotSelector.addItem( 'Qwt' )
self.plotSelector.addItem( 'mpl' )
# Page 2 - qwt
if self.hasqwt:
self.qwtPlot = QwtPlot(self.stackedWidget)
self.qwtPlot.setAutoFillBackground(False)
self.qwtPlot.setObjectName("qwtPlot")
self.curve = QwtPlotCurve()
self.curve.setSymbol(
QwtSymbol(QwtSymbol.Ellipse,
QBrush(Qt.white),
QPen(Qt.red, 2),
QSize(9, 9)))
self.curve.attach(self.qwtPlot)
else:
self.qwtPlot = QtGui.QLabel("Need Qwt >= 5.0 or matplotlib >= 1.0 !")
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.qwtPlot.sizePolicy().hasHeightForWidth())
self.qwtPlot.setSizePolicy(sizePolicy)
self.qwtPlot.updateGeometry()
self.stackedWidget.addWidget(self.qwtPlot)
#Page 3 - matplotlib
self.mplLine = None #make sure to invalidate when layers change
if self.hasmpl:
# mpl stuff
# should make figure light gray
self.mplBackground = None #http://www.scipy.org/Cookbook/Matplotlib/Animations
self.mplFig = plt.Figure(facecolor='w', edgecolor='w')
self.mplFig.subplots_adjust(left=0.1, right=0.975, bottom=0.13, top=0.95)
self.mplPlt = self.mplFig.add_subplot(111)
self.mplPlt.tick_params(axis='both', which='major', labelsize=12)
self.mplPlt.tick_params(axis='both', which='minor', labelsize=10)
# qt stuff
self.pltCanvas = FigureCanvasQTAgg(self.mplFig)
self.pltCanvas.setParent(self.stackedWidget)
self.pltCanvas.setAutoFillBackground(False)
self.pltCanvas.setObjectName("mplPlot")
self.mplPlot = self.pltCanvas
else:
self.mplPlot = QtGui.QLabel("Need Qwt >= 5.0 or matplotlib >= 1.0 !")
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mplPlot.sizePolicy().hasHeightForWidth())
#.........这里部分代码省略.........
示例11: Ui_MainWindow
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [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.qwtPlot = QwtPlot(self.centralwidget)
self.qwtPlot.setGeometry(QtCore.QRect(0, 30, 791, 261))
self.qwtPlot.setObjectName("qwtPlot")
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(10, 300, 781, 241))
self.tabWidget.setObjectName("tabWidget")
self.tab = QtGui.QWidget()
self.tab.setObjectName("tab")
self.Weight = QtGui.QSlider(self.tab)
self.Weight.setGeometry(QtCore.QRect(20, 40, 16, 160))
self.Weight.setOrientation(QtCore.Qt.Vertical)
self.Weight.setObjectName("Weight")
self.Time = QtGui.QSlider(self.tab)
self.Time.setGeometry(QtCore.QRect(60, 40, 16, 160))
self.Time.setOrientation(QtCore.Qt.Vertical)
self.Time.setObjectName("Time")
self.Space = QtGui.QSlider(self.tab)
self.Space.setGeometry(QtCore.QRect(100, 40, 16, 160))
self.Space.setOrientation(QtCore.Qt.Vertical)
self.Space.setObjectName("Space")
self.Flow = QtGui.QSlider(self.tab)
self.Flow.setGeometry(QtCore.QRect(140, 40, 16, 160))
self.Flow.setOrientation(QtCore.Qt.Vertical)
self.Flow.setObjectName("Flow")
self.verticalSlider_6 = QtGui.QSlider(self.tab)
self.verticalSlider_6.setGeometry(QtCore.QRect(310, 40, 16, 160))
self.verticalSlider_6.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider_6.setObjectName("verticalSlider_6")
self.verticalSlider_7 = QtGui.QSlider(self.tab)
self.verticalSlider_7.setGeometry(QtCore.QRect(270, 40, 16, 160))
self.verticalSlider_7.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider_7.setObjectName("verticalSlider_7")
self.verticalSlider_8 = QtGui.QSlider(self.tab)
self.verticalSlider_8.setGeometry(QtCore.QRect(230, 40, 16, 160))
self.verticalSlider_8.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider_8.setObjectName("verticalSlider_8")
self.verticalSlider_9 = QtGui.QSlider(self.tab)
self.verticalSlider_9.setGeometry(QtCore.QRect(350, 40, 16, 160))
self.verticalSlider_9.setOrientation(QtCore.Qt.Vertical)
self.verticalSlider_9.setObjectName("verticalSlider_9")
self.Text = QtGui.QTextEdit(self.tab)
self.Text.setGeometry(QtCore.QRect(510, 30, 104, 75))
self.Text.setObjectName("Text")
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName("tab_2")
self.tabWidget.addTab(self.tab_2, "")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 26))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "LMA Stuff", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtGui.QApplication.translate("MainWindow", "Signalz", None, QtGui.QApplication.UnicodeUTF8))
示例12: Ui_MainWindow
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(847, 480)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
#Tworzenie zakładek
self.tabs = QtGui.QTabWidget(self.centralwidget)
#Główny wykre
self.plot = QwtPlot(self.centralwidget)
self.plot.setObjectName(_fromUtf8("plot"))
self.plot.setAxisScale(self.plot.yLeft, -20, 80)
self.plot.setAutoFillBackground(True)
#self.plot.setPalette(Qt.Qt.black)
self.plot.setCanvasBackground(Qt.Qt.black)
self.grid = QwtPlotGrid()
'''self.Yscale = QwtScaleDiv()
self.Yscale.setInterval(10)
self.Xscale = QwtScaleDiv()
self.Xscale.setInterval(10)
self.grid.setYDiv(self.YScale)
self.grid.setXDiv(self.Xscale)'''
self.grid.setMajPen(Qt.Qt.gray)
self.grid.attach(self.plot)
self.tabs.addTab(self.plot, "Spectrum")
self.curve = QwtPlotCurve('')
self.curve.setPen(Qt.Qt.yellow)
self.curve.attach(self.plot)
self.hold_curve = QwtPlotCurve('')
self.hold_curve.setPen(Qt.Qt.red)
self.peak_marker = QwtPlotMarker()
self.symbol = QwtSymbol(QwtSymbol.DTriangle, QtGui.QBrush(Qt.Qt.red), QtGui.QPen(Qt.Qt.red), QtCore.QSize(10,10))
self.peak_marker.setSymbol(self.symbol)
self.peak_marker.setLabelAlignment(Qt.Qt.AlignTop)
self.sybmol_2 = QwtSymbol(QwtSymbol.DTriangle, QtGui.QBrush(Qt.Qt.red), QtGui.QPen(Qt.Qt.white), QtCore.QSize(10,10))
self.marker_1 = QwtPlotMarker()
self.marker_1.setSymbol(self.sybmol_2)
self.marker_1.setLabelAlignment(Qt.Qt.AlignTop)
self.marker_2 = QwtPlotMarker()
self.marker_2.setSymbol(self.sybmol_2)
self.marker_2.setLabelAlignment(Qt.Qt.AlignTop)
self.marker_3 = QwtPlotMarker()
self.marker_3.setSymbol(self.sybmol_2)
self.marker_3.setLabelAlignment(Qt.Qt.AlignTop)
self.marker_4 = QwtPlotMarker()
self.marker_4.setSymbol(self.sybmol_2)
self.marker_4.setLabelAlignment(Qt.Qt.AlignTop)
self.delta_marker = QwtPlotMarker()
self.delta_marker.setSymbol(self.sybmol_2)
self.delta_marker.setLabelAlignment(Qt.Qt.AlignTop)
self.markers = [self.marker_1, self.marker_2, self.marker_3, self.marker_4]
self.save_curve_1 = QwtPlotCurve('')
self.save_curve_1.setPen(Qt.Qt.green)
self.save_curve_2 = QwtPlotCurve('')
self.save_curve_2.setPen(Qt.Qt.cyan)
self.save_curve_3 = QwtPlotCurve('')
self.save_curve_3.setPen(Qt.Qt.magenta)
self.saved_curves = [self.save_curve_1, self.save_curve_2, self.save_curve_3]
#Wykres waterfall
'''self.plot_2 = QwtPlot(self.centralwidget)
self.plot_2.setObjectName(_fromUtf8("plot_2"))
self.waterfall = QwtPlotSpectrogram()
self.waterfall.attach(self.plot_2)
self.colorMap = QwtLinearColorMap(Qt.Qt.darkCyan, Qt.Qt.red)
self.scaleColors(80)
self.waterfall.setColorMap(self.colorMap)
#self.waterfallData = QwtRasterData()
#self.tabs.addTab(self.plot_2, "Waterfall")'''
self.verticalLayout.addWidget(self.tabs)
self.picker = QwtPlotPicker(QwtPlot.xBottom,
QwtPlot.yLeft,
QwtPicker.PointSelection | QwtPicker.DragSelection,
QwtPlotPicker.CrossRubberBand,
QwtPicker.AlwaysOn,
self.plot.canvas())
self.picker.setTrackerPen(Qt.Qt.white)
self.picker.setRubberBandPen(Qt.Qt.gray)
self.freqBox = QtGui.QGroupBox(self.centralwidget)
self.freqBox.setObjectName(_fromUtf8("freqBox"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.freqBox)
#.........这里部分代码省略.........
示例13: Ui_Form
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(820, 739)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
Form.setSizePolicy(sizePolicy)
Form.setMinimumSize(QtCore.QSize(100, 600))
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.label = QtGui.QLabel(Form)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout.addWidget(self.label)
self.splitter_2 = QtGui.QSplitter(Form)
self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
self.splitter = QtGui.QSplitter(self.splitter_2)
self.splitter.setOrientation(QtCore.Qt.Vertical)
self.splitter.setObjectName(_fromUtf8("splitter"))
self.mapView = QtGui.QGraphicsView(self.splitter)
self.mapView.setProperty(_fromUtf8("cursor"), QtCore.Qt.CrossCursor)
self.mapView.setToolTip(_fromUtf8(""))
self.mapView.setAutoFillBackground(True)
self.mapView.setObjectName(_fromUtf8("mapView"))
self.layoutWidget = QtGui.QWidget(self.splitter)
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.vboxlayout = QtGui.QVBoxLayout(self.layoutWidget)
self.vboxlayout.setMargin(0)
self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
self.horizontalSlider = QtGui.QSlider(self.layoutWidget)
self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
self.horizontalSlider.setTickPosition(QtGui.QSlider.TicksBelow)
self.horizontalSlider.setTickInterval(0)
self.horizontalSlider.setObjectName(_fromUtf8("horizontalSlider"))
self.vboxlayout.addWidget(self.horizontalSlider)
self.hboxlayout = QtGui.QHBoxLayout()
self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
self.label_2 = QtGui.QLabel(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
self.label_2.setSizePolicy(sizePolicy)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.hboxlayout.addWidget(self.label_2)
spacerItem = QtGui.QSpacerItem(461, 23, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.hboxlayout.addItem(spacerItem)
self.lcdNumber = QtGui.QLCDNumber(self.layoutWidget)
self.lcdNumber.setObjectName(_fromUtf8("lcdNumber"))
self.hboxlayout.addWidget(self.lcdNumber)
self.vboxlayout.addLayout(self.hboxlayout)
self.qwtPlot = QwtPlot(self.layoutWidget)
self.qwtPlot.setObjectName(_fromUtf8("qwtPlot"))
self.vboxlayout.addWidget(self.qwtPlot)
self.showSumBox = QtGui.QCheckBox(self.layoutWidget)
self.showSumBox.setChecked(True)
self.showSumBox.setObjectName(_fromUtf8("showSumBox"))
self.vboxlayout.addWidget(self.showSumBox)
self.layoutWidget1 = QtGui.QWidget(self.splitter_2)
self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
self.vboxlayout1 = QtGui.QVBoxLayout(self.layoutWidget1)
self.vboxlayout1.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
self.vboxlayout1.setMargin(0)
self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1"))
self.pushButton = QtGui.QPushButton(self.layoutWidget1)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton.sizePolicy().hasHeightForWidth())
self.pushButton.setSizePolicy(sizePolicy)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.vboxlayout1.addWidget(self.pushButton)
self.pushButton_2 = QtGui.QPushButton(self.layoutWidget1)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth())
self.pushButton_2.setSizePolicy(sizePolicy)
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.vboxlayout1.addWidget(self.pushButton_2)
self.scrollArea = QtGui.QScrollArea(self.layoutWidget1)
self.scrollArea.setMinimumSize(QtCore.QSize(0, 400))
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
self.scrollAreaWidgetContents = QtGui.QWidget()
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 81, 394))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.scrollAreaWidgetContents.sizePolicy().hasHeightForWidth())
self.scrollAreaWidgetContents.setSizePolicy(sizePolicy)
self.scrollAreaWidgetContents.setMinimumSize(QtCore.QSize(0, 0))
self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents"))
self.nodeListLayout = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
self.nodeListLayout.setObjectName(_fromUtf8("nodeListLayout"))
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
self.vboxlayout1.addWidget(self.scrollArea)
spacerItem1 = QtGui.QSpacerItem(20, 521, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
#.........这里部分代码省略.........
示例14: Ui_Dialog
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [as 别名]
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.resize(684, 647)
Dialog.setBaseSize(QtCore.QSize(0, 1000))
Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
self.verticalLayout_12 = QtGui.QVBoxLayout(Dialog)
self.verticalLayout_12.setObjectName(_fromUtf8("verticalLayout_12"))
self.tabWidget = QtGui.QTabWidget(Dialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
self.tabWidget.setSizePolicy(sizePolicy)
self.tabWidget.setMinimumSize(QtCore.QSize(0, 500))
self.tabWidget.setBaseSize(QtCore.QSize(0, 1500))
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.image = QtGui.QWidget()
self.image.setObjectName(_fromUtf8("image"))
self.verticalLayout_7 = QtGui.QVBoxLayout(self.image)
self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
self.groupBox_7 = QtGui.QGroupBox(self.image)
self.groupBox_7.setTitle(QtGui.QApplication.translate("Dialog", "Image file", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox_7.setObjectName(_fromUtf8("groupBox_7"))
self.verticalLayout_6 = QtGui.QVBoxLayout(self.groupBox_7)
self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
self.horizontalLayout_8 = QtGui.QHBoxLayout()
self.horizontalLayout_8.setSpacing(6)
self.horizontalLayout_8.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
self.label_2 = QtGui.QLabel(self.groupBox_7)
self.label_2.setMinimumSize(QtCore.QSize(0, 0))
self.label_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.label_2.setText(QtGui.QApplication.translate("Dialog", "Path:", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_2.setMargin(5)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.horizontalLayout_8.addWidget(self.label_2)
self.imagePathLabel = QtGui.QLabel(self.groupBox_7)
self.imagePathLabel.setText(_fromUtf8(""))
self.imagePathLabel.setObjectName(_fromUtf8("imagePathLabel"))
self.horizontalLayout_8.addWidget(self.imagePathLabel)
self.horizontalLayout_8.setStretch(0, 1)
self.horizontalLayout_8.setStretch(1, 3)
self.verticalLayout_6.addLayout(self.horizontalLayout_8)
self.horizontalLayout_9 = QtGui.QHBoxLayout()
self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
self.label_3 = QtGui.QLabel(self.groupBox_7)
self.label_3.setMinimumSize(QtCore.QSize(0, 0))
self.label_3.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.label_3.setText(QtGui.QApplication.translate("Dialog", "Command line:", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_3.setMargin(5)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.horizontalLayout_9.addWidget(self.label_3)
self.imageCommandLineLabel = QtGui.QLabel(self.groupBox_7)
self.imageCommandLineLabel.setText(_fromUtf8(""))
self.imageCommandLineLabel.setObjectName(_fromUtf8("imageCommandLineLabel"))
self.horizontalLayout_9.addWidget(self.imageCommandLineLabel)
self.horizontalLayout_9.setStretch(0, 1)
self.horizontalLayout_9.setStretch(1, 3)
self.verticalLayout_6.addLayout(self.horizontalLayout_9)
self.horizontalLayout_10 = QtGui.QHBoxLayout()
self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10"))
self.label_4 = QtGui.QLabel(self.groupBox_7)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
self.label_4.setSizePolicy(sizePolicy)
self.label_4.setMinimumSize(QtCore.QSize(0, 0))
self.label_4.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.label_4.setText(QtGui.QApplication.translate("Dialog", "Current directory:", None, QtGui.QApplication.UnicodeUTF8))
self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_4.setMargin(5)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.horizontalLayout_10.addWidget(self.label_4)
self.imagePwdLabel = QtGui.QLabel(self.groupBox_7)
self.imagePwdLabel.setText(_fromUtf8(""))
self.imagePwdLabel.setObjectName(_fromUtf8("imagePwdLabel"))
self.horizontalLayout_10.addWidget(self.imagePwdLabel)
self.horizontalLayout_10.setStretch(0, 1)
self.horizontalLayout_10.setStretch(1, 3)
self.verticalLayout_6.addLayout(self.horizontalLayout_10)
self.horizontalLayout_11 = QtGui.QHBoxLayout()
self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11"))
self.label_5 = QtGui.QLabel(self.groupBox_7)
self.label_5.setMinimumSize(QtCore.QSize(0, 0))
self.label_5.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.label_5.setText(QtGui.QApplication.translate("Dialog", "Started (UTC):", None, QtGui.QApplication.UnicodeUTF8))
self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_5.setMargin(5)
self.label_5.setObjectName(_fromUtf8("label_5"))
self.horizontalLayout_11.addWidget(self.label_5)
self.imageStartedLabel = QtGui.QLabel(self.groupBox_7)
self.imageStartedLabel.setMinimumSize(QtCore.QSize(0, 0))
self.imageStartedLabel.setMaximumSize(QtCore.QSize(16777215, 20))
self.imageStartedLabel.setText(_fromUtf8(""))
self.imageStartedLabel.setObjectName(_fromUtf8("imageStartedLabel"))
self.horizontalLayout_11.addWidget(self.imageStartedLabel)
#.........这里部分代码省略.........
示例15: Ui_MainWindow
# 需要导入模块: from PyQt4.Qwt5 import QwtPlot [as 别名]
# 或者: from PyQt4.Qwt5.QwtPlot import setObjectName [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.qwtPlot = QwtPlot(self.centralwidget)
self.qwtPlot.setGeometry(QtCore.QRect(0, 30, 791, 261))
self.qwtPlot.setObjectName("qwtPlot")
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(10, 300, 781, 251))
self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
self.tabWidget.setObjectName("tabWidget")
self.tab = QtGui.QWidget()
self.tab.setObjectName("tab")
self.weightSlider = QtGui.QSlider(self.tab)
self.weightSlider.setGeometry(QtCore.QRect(30, 100, 20, 101))
self.weightSlider.setOrientation(QtCore.Qt.Vertical)
self.weightSlider.setObjectName("weightSlider")
self.timeSlider = QtGui.QSlider(self.tab)
self.timeSlider.setGeometry(QtCore.QRect(90, 100, 20, 101))
self.timeSlider.setOrientation(QtCore.Qt.Vertical)
self.timeSlider.setObjectName("timeSlider")
self.spaceSlider = QtGui.QSlider(self.tab)
self.spaceSlider.setGeometry(QtCore.QRect(150, 100, 20, 101))
self.spaceSlider.setOrientation(QtCore.Qt.Vertical)
self.spaceSlider.setObjectName("spaceSlider")
self.flowSlider = QtGui.QSlider(self.tab)
self.flowSlider.setGeometry(QtCore.QRect(210, 100, 20, 101))
self.flowSlider.setOrientation(QtCore.Qt.Vertical)
self.flowSlider.setObjectName("flowSlider")
self.opencloseSlider = QtGui.QSlider(self.tab)
self.opencloseSlider.setGeometry(QtCore.QRect(410, 100, 20, 101))
self.opencloseSlider.setOrientation(QtCore.Qt.Vertical)
self.opencloseSlider.setObjectName("opencloseSlider")
self.effortFrame = QtGui.QFrame(self.tab)
self.effortFrame.setGeometry(QtCore.QRect(10, 10, 241, 201))
self.effortFrame.setFrameShape(QtGui.QFrame.StyledPanel)
self.effortFrame.setFrameShadow(QtGui.QFrame.Plain)
self.effortFrame.setLineWidth(3)
self.effortFrame.setObjectName("effortFrame")
self.weightLineEdit = QtGui.QLineEdit(self.effortFrame)
self.weightLineEdit.setGeometry(QtCore.QRect(10, 50, 41, 28))
self.weightLineEdit.setObjectName("weightLineEdit")
self.spaceLineEdit = QtGui.QLineEdit(self.effortFrame)
self.spaceLineEdit.setGeometry(QtCore.QRect(130, 50, 41, 28))
self.spaceLineEdit.setObjectName("spaceLineEdit")
self.flowLineEdit = QtGui.QLineEdit(self.effortFrame)
self.flowLineEdit.setGeometry(QtCore.QRect(190, 50, 41, 28))
self.flowLineEdit.setObjectName("flowLineEdit")
self.timeLineEdit = QtGui.QLineEdit(self.effortFrame)
self.timeLineEdit.setGeometry(QtCore.QRect(70, 50, 41, 28))
self.timeLineEdit.setObjectName("timeLineEdit")
self.weightLabel = QtGui.QLabel(self.effortFrame)
self.weightLabel.setGeometry(QtCore.QRect(0, 30, 54, 18))
self.weightLabel.setAlignment(QtCore.Qt.AlignCenter)
self.weightLabel.setObjectName("weightLabel")
self.timeLabel = QtGui.QLabel(self.effortFrame)
self.timeLabel.setGeometry(QtCore.QRect(60, 30, 54, 18))
self.timeLabel.setAlignment(QtCore.Qt.AlignCenter)
self.timeLabel.setObjectName("timeLabel")
self.spaceLabel = QtGui.QLabel(self.effortFrame)
self.spaceLabel.setGeometry(QtCore.QRect(120, 30, 54, 18))
self.spaceLabel.setAlignment(QtCore.Qt.AlignCenter)
self.spaceLabel.setObjectName("spaceLabel")
self.flowLabel = QtGui.QLabel(self.effortFrame)
self.flowLabel.setGeometry(QtCore.QRect(180, 30, 54, 18))
self.flowLabel.setAlignment(QtCore.Qt.AlignCenter)
self.flowLabel.setObjectName("flowLabel")
self.effortLabel = QtGui.QLabel(self.effortFrame)
self.effortLabel.setGeometry(QtCore.QRect(10, 0, 111, 18))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.effortLabel.setFont(font)
self.effortLabel.setObjectName("effortLabel")
self.shapeFrame = QtGui.QFrame(self.tab)
self.shapeFrame.setGeometry(QtCore.QRect(260, 10, 261, 201))
self.shapeFrame.setFrameShape(QtGui.QFrame.StyledPanel)
self.shapeFrame.setFrameShadow(QtGui.QFrame.Plain)
self.shapeFrame.setLineWidth(3)
self.shapeFrame.setObjectName("shapeFrame")
self.risesinkLineEdit = QtGui.QLineEdit(self.shapeFrame)
self.risesinkLineEdit.setGeometry(QtCore.QRect(20, 50, 41, 28))
self.risesinkLineEdit.setObjectName("risesinkLineEdit")
self.opencloseLineEdit = QtGui.QLineEdit(self.shapeFrame)
self.opencloseLineEdit.setGeometry(QtCore.QRect(140, 50, 41, 28))
self.opencloseLineEdit.setObjectName("opencloseLineEdit")
self.growshrinkLineEdit = QtGui.QLineEdit(self.shapeFrame)
self.growshrinkLineEdit.setGeometry(QtCore.QRect(200, 50, 41, 28))
self.growshrinkLineEdit.setObjectName("growshrinkLineEdit")
self.advanceretreatLineEdit = QtGui.QLineEdit(self.shapeFrame)
self.advanceretreatLineEdit.setGeometry(QtCore.QRect(80, 50, 41, 28))
self.advanceretreatLineEdit.setObjectName("advanceretreatLineEdit")
self.risesinkLabel = QtGui.QLabel(self.shapeFrame)
self.risesinkLabel.setGeometry(QtCore.QRect(10, 30, 54, 18))
self.risesinkLabel.setAlignment(QtCore.Qt.AlignCenter)
self.risesinkLabel.setObjectName("risesinkLabel")
self.advanceretreatLabel = QtGui.QLabel(self.shapeFrame)
self.advanceretreatLabel.setGeometry(QtCore.QRect(70, 30, 54, 18))
#.........这里部分代码省略.........