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


Python plotter.MyPlot类代码示例

本文整理汇总了Python中plotter.MyPlot的典型用法代码示例。如果您正苦于以下问题:Python MyPlot类的具体用法?Python MyPlot怎么用?Python MyPlot使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: Ui_MainWindow

class Ui_MainWindow(object):
	def setupUi(self, MainWindow):
		MainWindow.setObjectName("MainWindow")
		MainWindow.resize(657, 550)
		self.centralwidget = QtGui.QWidget(MainWindow)
		self.centralwidget.setObjectName("centralwidget")
		self.exit = QtGui.QAction(QtGui.QIcon('/usr/share/icons/Human/24x24/actions/exit.png'), 'Exit', MainWindow)
		self.exit.setShortcut('Ctrl+Q')
		self.exit.setStatusTip('Exit application')
		self.toolbar = MainWindow.addToolBar('Exit')
		self.toolbar.addAction(self.exit)
		
		self.gridChannelVisibility = QtGui.QWidget(self.centralwidget)
		self.gridChannelVisibility.setGeometry(QtCore.QRect(530, 0, 120, 251))
		self.gridChannelVisibility.setObjectName("gridChannelVisibility")
		self.gridLayout_2 = QtGui.QGridLayout(self.gridChannelVisibility)
		self.gridLayout_2.setMargin(3)
		self.gridLayout_2.setObjectName("gridLayout_2")
		self.channelGroup = QtGui.QGroupBox(self.gridChannelVisibility)
		self.channelGroup.setObjectName("channelGroup")
		self.channelScrollArea = QtGui.QScrollArea(self.channelGroup)
		self.channelScrollArea.setGeometry(QtCore.QRect(0, 20, 107, 195))
		self.channelScrollArea.setFrameShape(QtGui.QFrame.WinPanel)
		self.channelScrollArea.setFrameShadow(QtGui.QFrame.Sunken)
		self.channelScrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
		self.channelScrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
		self.channelScrollArea.setWidgetResizable(False)
		self.channelScrollArea.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
		self.channelScrollArea.setObjectName("channelScrollArea")
		self.scrollAreaWidgetContents = QtGui.QWidget(self.channelScrollArea)
		self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 100, 100))
		self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")		
		self.channelScrollArea.setWidget(self.scrollAreaWidgetContents)
		self.scrollAreaWidgetContents.scrollarea = self.channelScrollArea
		self.channelsAffectProcessingCheck = QtGui.QCheckBox(self.channelGroup)		
		self.channelsAffectProcessingCheck.setText('Affect processing')
		self.channelsAffectProcessingCheck.setAccessibleName('chAffect')
		self.channelsAffectProcessingCheck.setGeometry(QtCore.QRect(0, 220, 110, 30))
		self.gridLayout_2.addWidget(self.channelGroup, 0, 0, 1, 1)
		
		self.gridLayoutWidget_3 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_3.setGeometry(QtCore.QRect(450, 290, 191, 91))
		self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3")
		self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_3)
		self.gridLayout_3.setMargin(3)
		self.gridLayout_3.setObjectName("gridLayout_3")
		self.motionFileGroup = QtGui.QGroupBox(self.gridLayoutWidget_3)
		self.motionFileGroup.setAlignment(QtCore.Qt.AlignCenter)
		self.motionFileGroup.setFlat(False)
		self.motionFileGroup.setCheckable(False)
		self.motionFileGroup.setObjectName("motionFileGroup")
		self.motionComboBox = QtGui.QComboBox(self.motionFileGroup)
		self.motionComboBox.setGeometry(QtCore.QRect(10, 20, 171, 25))
		self.motionComboBox.setObjectName("motionComboBox")
		self.motionComboBox.setStatusTip('Select a motion...')
		self.motionLoadButton = QtGui.QPushButton(self.motionFileGroup)
		self.motionLoadButton.setGeometry(QtCore.QRect(50, 50, 91, 27))
		self.motionLoadButton.setStatusTip('Load selected motion')		
		self.motionLoadButton.setCursor(QtCore.Qt.PointingHandCursor)
		self.motionLoadButton.setObjectName("motionLoadButton")
		self.gridLayout_3.addWidget(self.motionFileGroup, 1, 0, 1, 1)
		self.gridLayoutWidget = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 0, 511, 251))
		self.gridLayoutWidget.setObjectName("gridLayoutWidget")
		self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
		self.gridLayout.setMargin(3)
		self.gridLayout.setObjectName("gridLayout")
		self.motionTabs = QtGui.QTabWidget(self.gridLayoutWidget)
		self.motionTabs.setObjectName("motionTabs")
		self.tab = QtGui.QWidget()
		self.tab.setObjectName("tab")
		
		self.motionPlot = MyPlot(self.tab)
		self.motionPlot.setGeometry(QtCore.QRect(10, 5, 470, 181))
		self.motionPlot.setObjectName("motionPlot")
		self.motionTabs.addTab(self.tab, "")
		#self.tab_2 = QtGui.QWidget()
		#self.tab_2.setObjectName("tab_2")
		#self.motionTabs.addTab(self.tab_2, "")
		self.gridLayout.addWidget(self.motionTabs, 0, 0, 1, 1)
		self.gridLayoutWidget_4 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_4.setGeometry(QtCore.QRect(450, 390, 191, 91))
		self.gridLayoutWidget_4.setObjectName("gridLayoutWidget_4")
		self.gridLayout_5 = QtGui.QGridLayout(self.gridLayoutWidget_4)
		self.gridLayout_5.setMargin(3)
		self.gridLayout_5.setObjectName("gridLayout_5")
		self.controlsGroup = QtGui.QGroupBox(self.gridLayoutWidget_4)
		self.controlsGroup.setObjectName("controlsGroup")
		self.motionPlayButton = QtGui.QToolButton(self.controlsGroup)
		self.motionPlayButton.setGeometry(QtCore.QRect(50, 20, 51, 22))
		self.motionPlayButton.setCursor(QtCore.Qt.PointingHandCursor)
		icon = QtGui.QIcon()
		icon.addPixmap(QtGui.QPixmap("../../../usr/share/icons/gnome/24x24/actions/gtk-media-play-ltr.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
		self.motionPlayButton.setIcon(icon)
		self.motionPlayButton.setObjectName("motionPlayButton")
		self.motionPlayButton.setStatusTip('Play loaded motion')
		self.motionResetButton = QtGui.QPushButton(self.controlsGroup)
		self.motionResetButton.setGeometry(QtCore.QRect(50, 50, 91, 27))
		self.motionResetButton.setCursor(QtCore.Qt.PointingHandCursor)
		self.motionResetButton.setObjectName("motionResetButton")
#.........这里部分代码省略.........
开发者ID:msunardi,项目名称:soundmotion,代码行数:101,代码来源:pyMiniUix_v3.py

示例2: setupUi

	def setupUi(self, MainWindow):
		MainWindow.setObjectName("MainWindow")
		MainWindow.resize(657, 550)
		self.centralwidget = QtGui.QWidget(MainWindow)
		self.centralwidget.setObjectName("centralwidget")
		self.exit = QtGui.QAction(QtGui.QIcon('/usr/share/icons/Human/24x24/actions/exit.png'), 'Exit', MainWindow)
		self.exit.setShortcut('Ctrl+Q')
		self.exit.setStatusTip('Exit application')
		self.toolbar = MainWindow.addToolBar('Exit')
		self.toolbar.addAction(self.exit)
		
		self.gridChannelVisibility = QtGui.QWidget(self.centralwidget)
		self.gridChannelVisibility.setGeometry(QtCore.QRect(530, 0, 120, 251))
		self.gridChannelVisibility.setObjectName("gridChannelVisibility")
		self.gridLayout_2 = QtGui.QGridLayout(self.gridChannelVisibility)
		self.gridLayout_2.setMargin(3)
		self.gridLayout_2.setObjectName("gridLayout_2")
		self.channelGroup = QtGui.QGroupBox(self.gridChannelVisibility)
		self.channelGroup.setObjectName("channelGroup")
		self.channelScrollArea = QtGui.QScrollArea(self.channelGroup)
		self.channelScrollArea.setGeometry(QtCore.QRect(0, 20, 107, 195))
		self.channelScrollArea.setFrameShape(QtGui.QFrame.WinPanel)
		self.channelScrollArea.setFrameShadow(QtGui.QFrame.Sunken)
		self.channelScrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
		self.channelScrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
		self.channelScrollArea.setWidgetResizable(False)
		self.channelScrollArea.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
		self.channelScrollArea.setObjectName("channelScrollArea")
		self.scrollAreaWidgetContents = QtGui.QWidget(self.channelScrollArea)
		self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 100, 100))
		self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")		
		self.channelScrollArea.setWidget(self.scrollAreaWidgetContents)
		self.scrollAreaWidgetContents.scrollarea = self.channelScrollArea
		self.channelsAffectProcessingCheck = QtGui.QCheckBox(self.channelGroup)		
		self.channelsAffectProcessingCheck.setText('Affect processing')
		self.channelsAffectProcessingCheck.setAccessibleName('chAffect')
		self.channelsAffectProcessingCheck.setGeometry(QtCore.QRect(0, 220, 110, 30))
		self.gridLayout_2.addWidget(self.channelGroup, 0, 0, 1, 1)
		
		self.gridLayoutWidget_3 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_3.setGeometry(QtCore.QRect(450, 290, 191, 91))
		self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3")
		self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_3)
		self.gridLayout_3.setMargin(3)
		self.gridLayout_3.setObjectName("gridLayout_3")
		self.motionFileGroup = QtGui.QGroupBox(self.gridLayoutWidget_3)
		self.motionFileGroup.setAlignment(QtCore.Qt.AlignCenter)
		self.motionFileGroup.setFlat(False)
		self.motionFileGroup.setCheckable(False)
		self.motionFileGroup.setObjectName("motionFileGroup")
		self.motionComboBox = QtGui.QComboBox(self.motionFileGroup)
		self.motionComboBox.setGeometry(QtCore.QRect(10, 20, 171, 25))
		self.motionComboBox.setObjectName("motionComboBox")
		self.motionComboBox.setStatusTip('Select a motion...')
		self.motionLoadButton = QtGui.QPushButton(self.motionFileGroup)
		self.motionLoadButton.setGeometry(QtCore.QRect(50, 50, 91, 27))
		self.motionLoadButton.setStatusTip('Load selected motion')		
		self.motionLoadButton.setCursor(QtCore.Qt.PointingHandCursor)
		self.motionLoadButton.setObjectName("motionLoadButton")
		self.gridLayout_3.addWidget(self.motionFileGroup, 1, 0, 1, 1)
		self.gridLayoutWidget = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 0, 511, 251))
		self.gridLayoutWidget.setObjectName("gridLayoutWidget")
		self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
		self.gridLayout.setMargin(3)
		self.gridLayout.setObjectName("gridLayout")
		self.motionTabs = QtGui.QTabWidget(self.gridLayoutWidget)
		self.motionTabs.setObjectName("motionTabs")
		self.tab = QtGui.QWidget()
		self.tab.setObjectName("tab")
		
		self.motionPlot = MyPlot(self.tab)
		self.motionPlot.setGeometry(QtCore.QRect(10, 5, 470, 181))
		self.motionPlot.setObjectName("motionPlot")
		self.motionTabs.addTab(self.tab, "")
		#self.tab_2 = QtGui.QWidget()
		#self.tab_2.setObjectName("tab_2")
		#self.motionTabs.addTab(self.tab_2, "")
		self.gridLayout.addWidget(self.motionTabs, 0, 0, 1, 1)
		self.gridLayoutWidget_4 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_4.setGeometry(QtCore.QRect(450, 390, 191, 91))
		self.gridLayoutWidget_4.setObjectName("gridLayoutWidget_4")
		self.gridLayout_5 = QtGui.QGridLayout(self.gridLayoutWidget_4)
		self.gridLayout_5.setMargin(3)
		self.gridLayout_5.setObjectName("gridLayout_5")
		self.controlsGroup = QtGui.QGroupBox(self.gridLayoutWidget_4)
		self.controlsGroup.setObjectName("controlsGroup")
		self.motionPlayButton = QtGui.QToolButton(self.controlsGroup)
		self.motionPlayButton.setGeometry(QtCore.QRect(50, 20, 51, 22))
		self.motionPlayButton.setCursor(QtCore.Qt.PointingHandCursor)
		icon = QtGui.QIcon()
		icon.addPixmap(QtGui.QPixmap("../../../usr/share/icons/gnome/24x24/actions/gtk-media-play-ltr.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
		self.motionPlayButton.setIcon(icon)
		self.motionPlayButton.setObjectName("motionPlayButton")
		self.motionPlayButton.setStatusTip('Play loaded motion')
		self.motionResetButton = QtGui.QPushButton(self.controlsGroup)
		self.motionResetButton.setGeometry(QtCore.QRect(50, 50, 91, 27))
		self.motionResetButton.setCursor(QtCore.Qt.PointingHandCursor)
		self.motionResetButton.setObjectName("motionResetButton")
		self.motionResetButton.setStatusTip('Reset motion data')
#.........这里部分代码省略.........
开发者ID:msunardi,项目名称:soundmotion,代码行数:101,代码来源:pyMiniUix_v3.py

示例3: setupUi

	def setupUi(self, MainWindow):
		MainWindow.setObjectName("MainWindow")
		MainWindow.resize(657, 550)
		self.centralwidget = QtGui.QWidget(MainWindow)
		self.centralwidget.setObjectName("centralwidget")
		self.exit = QtGui.QAction(QtGui.QIcon('/usr/share/icons/Human/24x24/actions/exit.png'), 'Exit', MainWindow)
		self.exit.setShortcut('Ctrl+Q')
		self.exit.setStatusTip('Exit application')
		self.toolbar = MainWindow.addToolBar('Exit')
		self.toolbar.addAction(self.exit)
		self.gridLayoutWidget_2 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_2.setGeometry(QtCore.QRect(530, 0, 115, 251))
		self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2")
		self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget_2)
		self.gridLayout_2.setMargin(3)
		self.gridLayout_2.setObjectName("gridLayout_2")
		self.channelGroup = QtGui.QGroupBox(self.gridLayoutWidget_2)
		self.channelGroup.setObjectName("channelGroup")
		self.channelScrollArea = QtGui.QScrollArea(self.channelGroup)
		self.channelScrollArea.setGeometry(QtCore.QRect(0, 20, 107, 225))
		self.channelScrollArea.setFrameShape(QtGui.QFrame.WinPanel)
		self.channelScrollArea.setFrameShadow(QtGui.QFrame.Sunken)
		self.channelScrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
		self.channelScrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
		self.channelScrollArea.setWidgetResizable(False)
		self.channelScrollArea.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
		self.channelScrollArea.setObjectName("channelScrollArea")
		self.scrollAreaWidgetContents = QtGui.QWidget(self.channelScrollArea)
		self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 100, 100))
		self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")		
		self.channelScrollArea.setWidget(self.scrollAreaWidgetContents)
		self.scrollAreaWidgetContents.scrollarea = self.channelScrollArea
		self.gridLayout_2.addWidget(self.channelGroup, 0, 0, 1, 1)
		self.gridLayoutWidget_3 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_3.setGeometry(QtCore.QRect(450, 290, 191, 91))
		self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3")
		self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_3)
		self.gridLayout_3.setMargin(3)
		self.gridLayout_3.setObjectName("gridLayout_3")
		self.motionFileGroup = QtGui.QGroupBox(self.gridLayoutWidget_3)
		self.motionFileGroup.setAlignment(QtCore.Qt.AlignCenter)
		self.motionFileGroup.setFlat(False)
		self.motionFileGroup.setCheckable(False)
		self.motionFileGroup.setObjectName("motionFileGroup")
		self.motionComboBox = QtGui.QComboBox(self.motionFileGroup)
		self.motionComboBox.setGeometry(QtCore.QRect(10, 20, 171, 25))
		self.motionComboBox.setObjectName("motionComboBox")
		self.motionComboBox.setStatusTip('Select a motion...')
		self.motionLoadButton = QtGui.QPushButton(self.motionFileGroup)
		self.motionLoadButton.setGeometry(QtCore.QRect(50, 50, 91, 27))
		self.motionLoadButton.setStatusTip('Load selected motion')		
		self.motionLoadButton.setCursor(QtCore.Qt.PointingHandCursor)
		self.motionLoadButton.setObjectName("motionLoadButton")
		self.gridLayout_3.addWidget(self.motionFileGroup, 1, 0, 1, 1)
		self.gridLayoutWidget = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 0, 511, 251))
		self.gridLayoutWidget.setObjectName("gridLayoutWidget")
		self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
		self.gridLayout.setMargin(3)
		self.gridLayout.setObjectName("gridLayout")
		self.motionTabs = QtGui.QTabWidget(self.gridLayoutWidget)
		self.motionTabs.setObjectName("motionTabs")
		self.tab = QtGui.QWidget()
		self.tab.setObjectName("tab")
		
		self.motionPlot = MyPlot(self.tab)
		self.motionPlot.setGeometry(QtCore.QRect(10, 5, 470, 181))
		self.motionPlot.setObjectName("motionPlot")
		self.motionTabs.addTab(self.tab, "")
		#self.tab_2 = QtGui.QWidget()
		#self.tab_2.setObjectName("tab_2")
		#self.motionTabs.addTab(self.tab_2, "")
		self.gridLayout.addWidget(self.motionTabs, 0, 0, 1, 1)
		self.gridLayoutWidget_4 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_4.setGeometry(QtCore.QRect(450, 390, 191, 91))
		self.gridLayoutWidget_4.setObjectName("gridLayoutWidget_4")
		self.gridLayout_5 = QtGui.QGridLayout(self.gridLayoutWidget_4)
		self.gridLayout_5.setMargin(3)
		self.gridLayout_5.setObjectName("gridLayout_5")
		self.controlsGroup = QtGui.QGroupBox(self.gridLayoutWidget_4)
		self.controlsGroup.setObjectName("controlsGroup")
		self.motionPlayButton = QtGui.QToolButton(self.controlsGroup)
		self.motionPlayButton.setGeometry(QtCore.QRect(50, 20, 51, 22))
		self.motionPlayButton.setCursor(QtCore.Qt.PointingHandCursor)
		icon = QtGui.QIcon()
		icon.addPixmap(QtGui.QPixmap("../../../usr/share/icons/gnome/24x24/actions/gtk-media-play-ltr.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
		self.motionPlayButton.setIcon(icon)
		self.motionPlayButton.setObjectName("motionPlayButton")
		self.motionPlayButton.setStatusTip('Play loaded motion')
		self.motionResetButton = QtGui.QPushButton(self.controlsGroup)
		self.motionResetButton.setGeometry(QtCore.QRect(50, 50, 91, 27))
		self.motionResetButton.setCursor(QtCore.Qt.PointingHandCursor)
		self.motionResetButton.setObjectName("motionResetButton")
		self.motionResetButton.setStatusTip('Reset motion data')
		self.motionStopButton = QtGui.QToolButton(self.controlsGroup)
		self.motionStopButton.setGeometry(QtCore.QRect(100, 20, 41, 22))
		icon1 = QtGui.QIcon()
		icon1.addPixmap(QtGui.QPixmap("../../../usr/share/icons/gnome/24x24/actions/gtk-media-stop.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
		self.motionStopButton.setIcon(icon1)
		self.motionStopButton.setObjectName("motionStopButton")
#.........这里部分代码省略.........
开发者ID:msunardi,项目名称:soundmotion,代码行数:101,代码来源:pyMiniUix.py

示例4: setupUi


#.........这里部分代码省略.........
        self.gridLayout_CenterTop = QtGui.QGridLayout(self.gridLayoutWidget_5)
        self.gridLayout_CenterTop.setObjectName("gridLayout_CenterTop")
        self.gridLayoutWidget_6 = QtGui.QWidget(self.frame_Center)
        self.gridLayoutWidget_6.setGeometry(QtCore.QRect(10, 260, 421, 21))
        self.gridLayoutWidget_6.setObjectName("gridLayoutWidget_6")
        self.gridLayout_RobotResponse = QtGui.QGridLayout(self.gridLayoutWidget_6)
        self.gridLayout_RobotResponse.setObjectName("gridLayout_RobotResponse")
        self.label_RobotsResponse = QtGui.QLabel(self.gridLayoutWidget_6)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_RobotsResponse.setFont(font)
        self.label_RobotsResponse.setObjectName("label_RobotsResponse")
        self.gridLayout_RobotResponse.addWidget(self.label_RobotsResponse, 0, 0, 1, 1)
        self.gridLayoutWidget_7 = QtGui.QWidget(self.frame_Center)
        self.gridLayoutWidget_7.setGeometry(QtCore.QRect(10, 279, 421, 131))
        self.gridLayoutWidget_7.setObjectName("gridLayoutWidget_7")
        self.gridLayout_ResponseBrowser = QtGui.QGridLayout(self.gridLayoutWidget_7)
        self.gridLayout_ResponseBrowser.setObjectName("gridLayout_ResponseBrowser")
        self.textBrowserRobotResponse = QtGui.QTextBrowser(self.gridLayoutWidget_7)
        self.textBrowserRobotResponse.setObjectName("textBrowserRobotResponse")
        self.gridLayout_ResponseBrowser.addWidget(self.textBrowserRobotResponse, 0, 0, 1, 1)
        self.gridLayout_Center.addWidget(self.frame_Center, 0, 0, 1, 1)

        self.mainTabWidget.addTab(self.mainTab_0, "")   # Add the first main tab to the mainTabWidget
 
        #=== CREATE THE SECOND TAB OF MAINTABWIDGET (BACKEND UI)
        self.mainTab_1 = QtGui.QWidget()
        self.mainTab_1.setObjectName("mainTab_1")

        #=== CONTENTS OF THE SECOND MAIN TAB:
        ##=== FIRST CONTENT: QWT PLOTTER
        #self.qwtPlot = MyPlot(self.centralwidget)
        self.qwtPlot = MyPlot(self.mainTab_1)
        self.qwtPlot.setGeometry(QtCore.QRect(0, 30, 791, 261))
        self.qwtPlot.setObjectName("qwtPlot")

        ##=== SECOND CONTENT: TAB WIDGET
        #self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget = QtGui.QTabWidget(self.mainTab_1)
        self.tabWidget.setGeometry(QtCore.QRect(10, 300, 781, 251))
        self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget.setObjectName("tabWidget")

        ###=== CREATE FIRST TAB FOR THE BACKEND UI
        self.tab_0 = QtGui.QWidget()
        self.tab_0.setObjectName("tab_0")
        ####=== CONTENTS OF FIRST TAB OF BACKEND UI:
        #####=== BODY PARAMETERS FRAME (Contents will be created dynamically)
        self.bodyFrame = QtGui.QFrame(self.tab_0)
        self.bodyFrame.setGeometry(QtCore.QRect(10, 10, 765, 201))
        self.bodyFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.bodyFrame.setFrameShadow(QtGui.QFrame.Plain)
        self.bodyFrame.setLineWidth(3)
        self.bodyFrame.setObjectName("bodyFrame")
        self.tabWidget.addTab(self.tab_0, "")    # Add the first tab to the backend UI tabWidget
        
        ###=== CREATE SECOND TAB FOR THE BACKEND UI
        self.tab_1 = QtGui.QWidget()
        self.tab_1.setObjectName("tab")        
        ####=== CONTENTS OF THE SECOND TAB OF BACKEND UI:
        #####=== FIRST FRAME: EFFORT PARAMETERS FRAME
        self.effortFrame = QtGui.QFrame(self.tab_1)
        self.effortFrame.setGeometry(QtCore.QRect(10, 10, 241, 201))
        self.effortFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.effortFrame.setFrameShadow(QtGui.QFrame.Plain)
开发者ID:msunardi,项目名称:soundmotion,代码行数:67,代码来源:new_ui4_2.py

示例5: Ui_MainWindow

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(810, 650)

        self.gainLabels = []
        self.gainLineEdits = []
        self.gainSliders = []
        self.bodyStartSpinBoxes = []
        self.bodyEndSpinBoxes = []
        self.bodyLabels =[]
        
        #=== CREATE MAIN WINDOW ===
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")

        #=== CREATE MAIN TAB WIDGET ===
        self.mainTabWidget = QtGui.QTabWidget(self.centralwidget)
        self.mainTabWidget.setGeometry(QtCore.QRect(0, 0, 800, 580))
        self.mainTabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.mainTabWidget.setObjectName("mainTabWidget")

        #=== CREATE THE FIRST TAB OF MAINTABWIDGET (MAIN UI)
        self.mainTab_0 = QtGui.QWidget()
        self.mainTab_0.setObjectName("mainTab_0")
        #=== CONTENT OF THE FIRST MAIN TAB:

        self.mainTabWidget.addTab(self.mainTab_0, "")   # Add the first main tab to the mainTabWidget
 
        #=== CREATE THE SECOND TAB OF MAINTABWIDGET (BACKEND UI)
        self.mainTab_1 = QtGui.QWidget()
        self.mainTab_1.setObjectName("mainTab_1")

        #=== CONTENTS OF THE SECOND MAIN TAB:
        ##=== FIRST CONTENT: QWT PLOTTER
        #self.qwtPlot = MyPlot(self.centralwidget)
        self.qwtPlot = MyPlot(self.mainTab_1)
        self.qwtPlot.setGeometry(QtCore.QRect(0, 30, 791, 261))
        self.qwtPlot.setObjectName("qwtPlot")

        ##=== SECOND CONTENT: TAB WIDGET
        #self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget = QtGui.QTabWidget(self.mainTab_1)
        self.tabWidget.setGeometry(QtCore.QRect(10, 300, 781, 251))
        self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget.setObjectName("tabWidget")

        ###=== CREATE FIRST TAB FOR THE BACKEND UI
        self.tab_0 = QtGui.QWidget()
        self.tab_0.setObjectName("tab_0")
        ####=== CONTENTS OF FIRST TAB OF BACKEND UI:
        #####=== BODY PARAMETERS FRAME (Contents will be created dynamically)
        self.bodyFrame = QtGui.QFrame(self.tab_0)
        self.bodyFrame.setGeometry(QtCore.QRect(10, 10, 765, 201))
        self.bodyFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.bodyFrame.setFrameShadow(QtGui.QFrame.Plain)
        self.bodyFrame.setLineWidth(3)
        self.bodyFrame.setObjectName("bodyFrame")
        self.tabWidget.addTab(self.tab_0, "")    # Add the first tab to the backend UI tabWidget
        
        ###=== CREATE SECOND TAB FOR THE BACKEND UI
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")        
        ####=== CONTENTS OF THE SECOND TAB OF BACKEND UI:
        #####=== FIRST FRAME: EFFORT PARAMETERS FRAME
        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)

        #####=== FIRST CONTENT IN FRAME: EFFORT PARAMETERS SLIDERS
        self.effortFrame.setObjectName("effortFrame")
        self.weightSlider = QtGui.QSlider(self.effortFrame)
        self.weightSlider.setGeometry(QtCore.QRect(20, 90, 20, 101))
        self.weightSlider.setOrientation(QtCore.Qt.Vertical)
        self.weightSlider.setObjectName("weightSlider")
        self.weightSlider.setMaximum(10)
        self.weightSlider.setMinimum(-10)
        self.weightSlider.setSliderPosition(0)
        self.timeSlider = QtGui.QSlider(self.effortFrame)
        self.timeSlider.setGeometry(QtCore.QRect(80, 90, 20, 101))
        self.timeSlider.setOrientation(QtCore.Qt.Vertical)
        self.timeSlider.setObjectName("timeSlider")
        self.timeSlider.setMaximum(10)
        self.timeSlider.setMinimum(-10)
        self.timeSlider.setSliderPosition(0)
        self.spaceSlider = QtGui.QSlider(self.effortFrame)
        self.spaceSlider.setGeometry(QtCore.QRect(140, 90, 20, 101))
        self.spaceSlider.setOrientation(QtCore.Qt.Vertical)
        self.spaceSlider.setObjectName("spaceSlider")
        self.spaceSlider.setMaximum(10)
        self.spaceSlider.setMinimum(-10)
        self.spaceSlider.setSliderPosition(0)
        self.flowSlider = QtGui.QSlider(self.effortFrame)
        self.flowSlider.setGeometry(QtCore.QRect(200, 90, 20, 101))
        self.flowSlider.setOrientation(QtCore.Qt.Vertical)
        self.flowSlider.setObjectName("flowSlider")
        self.flowSlider.setMaximum(10)
        self.flowSlider.setMinimum(-10)
#.........这里部分代码省略.........
开发者ID:msunardi,项目名称:soundmotion,代码行数:101,代码来源:new_ui4.py

示例6: setupUi

	def setupUi(self, MainWindow):
		MainWindow.setObjectName("MainWindow")
		MainWindow.resize(657, 550)
		self.centralwidget = QtGui.QWidget(MainWindow)
		self.centralwidget.setObjectName("centralwidget")
		self.exit = QtGui.QAction(QtGui.QIcon('/usr/share/icons/Human/24x24/actions/exit.png'), 'Exit', MainWindow)
		self.exit.setShortcut('Ctrl+Q')
		self.exit.setStatusTip('Exit application')
		self.toolbar = MainWindow.addToolBar('Exit')
		self.toolbar.addAction(self.exit)
		self.gridLayoutWidget_2 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_2.setGeometry(QtCore.QRect(530, 0, 115, 251))
		self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2")
		self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget_2)
		self.gridLayout_2.setMargin(3)
		self.gridLayout_2.setObjectName("gridLayout_2")
		self.channelGroup = QtGui.QGroupBox(self.gridLayoutWidget_2)
		self.channelGroup.setObjectName("channelGroup")
		self.channelScrollArea = QtGui.QScrollArea(self.channelGroup)
		self.channelScrollArea.setGeometry(QtCore.QRect(10, 20, 91, 211))
		self.channelScrollArea.setFrameShape(QtGui.QFrame.WinPanel)
		self.channelScrollArea.setFrameShadow(QtGui.QFrame.Sunken)
		self.channelScrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
		self.channelScrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
		self.channelScrollArea.setWidgetResizable(False)
		self.channelScrollArea.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
		self.channelScrollArea.setObjectName("channelScrollArea")
		self.scrollAreaWidgetContents = QtGui.QWidget(self.channelScrollArea)
		self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 70, 100))
		self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")		
		self.channelScrollArea.setWidget(self.scrollAreaWidgetContents)
		self.scrollAreaWidgetContents.scrollarea = self.channelScrollArea
		self.gridLayout_2.addWidget(self.channelGroup, 0, 0, 1, 1)
		self.gridLayoutWidget_3 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_3.setGeometry(QtCore.QRect(10, 290, 191, 91))
		self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3")
		self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_3)
		self.gridLayout_3.setMargin(3)
		self.gridLayout_3.setObjectName("gridLayout_3")
		self.motionFileGroup = QtGui.QGroupBox(self.gridLayoutWidget_3)
		self.motionFileGroup.setAlignment(QtCore.Qt.AlignCenter)
		self.motionFileGroup.setFlat(False)
		self.motionFileGroup.setCheckable(False)
		self.motionFileGroup.setObjectName("motionFileGroup")
		self.motionComboBox = QtGui.QComboBox(self.motionFileGroup)
		self.motionComboBox.setGeometry(QtCore.QRect(10, 20, 171, 25))
		self.motionComboBox.setObjectName("motionComboBox")
		self.motionLoadButton = QtGui.QPushButton(self.motionFileGroup)
		self.motionLoadButton.setGeometry(QtCore.QRect(50, 50, 91, 27))
		sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
		sizePolicy.setHorizontalStretch(0)
		sizePolicy.setVerticalStretch(0)
		sizePolicy.setHeightForWidth(self.motionLoadButton.sizePolicy().hasHeightForWidth())
		self.motionLoadButton.setSizePolicy(sizePolicy)
		self.motionLoadButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
		font = QtGui.QFont()
		self.motionLoadButton.setFont(font)
		self.motionLoadButton.setCursor(QtCore.Qt.PointingHandCursor)
		self.motionLoadButton.setObjectName("motionLoadButton")
		self.gridLayout_3.addWidget(self.motionFileGroup, 1, 0, 1, 1)
		self.gridLayoutWidget = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 0, 511, 251))
		self.gridLayoutWidget.setObjectName("gridLayoutWidget")
		self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
		self.gridLayout.setMargin(3)
		self.gridLayout.setObjectName("gridLayout")
		self.motionTabs = QtGui.QTabWidget(self.gridLayoutWidget)
		self.motionTabs.setObjectName("motionTabs")
		self.tab = QtGui.QWidget()
		self.tab.setObjectName("tab")
		
		self.motionPlot = MyPlot(self.tab)
		self.motionPlot.setGeometry(QtCore.QRect(10, 5, 470, 181))
		self.motionPlot.setObjectName("motionPlot")
		self.motionTabs.addTab(self.tab, "")
		#self.tab_2 = QtGui.QWidget()
		#self.tab_2.setObjectName("tab_2")
		#self.motionTabs.addTab(self.tab_2, "")
		self.gridLayout.addWidget(self.motionTabs, 0, 0, 1, 1)
		self.gridLayoutWidget_4 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_4.setGeometry(QtCore.QRect(10, 390, 191, 91))
		self.gridLayoutWidget_4.setObjectName("gridLayoutWidget_4")
		self.gridLayout_5 = QtGui.QGridLayout(self.gridLayoutWidget_4)
		self.gridLayout_5.setMargin(3)
		self.gridLayout_5.setObjectName("gridLayout_5")
		self.controlsGroup = QtGui.QGroupBox(self.gridLayoutWidget_4)
		self.controlsGroup.setObjectName("controlsGroup")
		self.motionPlayButton = QtGui.QToolButton(self.controlsGroup)
		self.motionPlayButton.setGeometry(QtCore.QRect(50, 20, 51, 22))
		self.motionPlayButton.setCursor(QtCore.Qt.PointingHandCursor)
		icon = QtGui.QIcon()
		icon.addPixmap(QtGui.QPixmap("../../../usr/share/icons/gnome/24x24/actions/gtk-media-play-ltr.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
		self.motionPlayButton.setIcon(icon)
		self.motionPlayButton.setObjectName("motionPlayButton")
		self.motionResetButton = QtGui.QPushButton(self.controlsGroup)
		self.motionResetButton.setGeometry(QtCore.QRect(50, 50, 91, 27))
		self.motionResetButton.setCursor(QtCore.Qt.PointingHandCursor)
		self.motionResetButton.setObjectName("motionResetButton")
		self.motionStopButton = QtGui.QToolButton(self.controlsGroup)
		self.motionStopButton.setGeometry(QtCore.QRect(100, 20, 41, 22))
#.........这里部分代码省略.........
开发者ID:msunardi,项目名称:soundmotion,代码行数:101,代码来源:pyMiniUix_bak002.py

示例7: Ui_MainWindow

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)

        self.gainLabels = []
        self.gainLineEdits = []
        self.gainSliders = []        
        
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.qwtPlot = MyPlot(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.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.weightSlider = QtGui.QSlider(self.effortFrame)
        self.weightSlider.setGeometry(QtCore.QRect(20, 90, 20, 101))
        self.weightSlider.setOrientation(QtCore.Qt.Vertical)
        self.weightSlider.setObjectName("weightSlider")
        self.weightSlider.setMaximum(10)
        self.weightSlider.setMinimum(-10)
        self.weightSlider.setSliderPosition(0)
        self.timeSlider = QtGui.QSlider(self.effortFrame)
        self.timeSlider.setGeometry(QtCore.QRect(80, 90, 20, 101))
        self.timeSlider.setOrientation(QtCore.Qt.Vertical)
        self.timeSlider.setObjectName("timeSlider")
        self.timeSlider.setMaximum(10)
        self.timeSlider.setMinimum(-10)
        self.timeSlider.setSliderPosition(0)
        self.spaceSlider = QtGui.QSlider(self.effortFrame)
        self.spaceSlider.setGeometry(QtCore.QRect(140, 90, 20, 101))
        self.spaceSlider.setOrientation(QtCore.Qt.Vertical)
        self.spaceSlider.setObjectName("spaceSlider")
        self.spaceSlider.setMaximum(10)
        self.spaceSlider.setMinimum(-10)
        self.spaceSlider.setSliderPosition(0)
        self.flowSlider = QtGui.QSlider(self.effortFrame)
        self.flowSlider.setGeometry(QtCore.QRect(200, 90, 20, 101))
        self.flowSlider.setOrientation(QtCore.Qt.Vertical)
        self.flowSlider.setObjectName("flowSlider")
        self.flowSlider.setMaximum(10)
        self.flowSlider.setMinimum(-10)
        self.flowSlider.setSliderPosition(0)
        self.weightLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.weightLineEdit.setGeometry(QtCore.QRect(10, 50, 41, 28))
        self.weightLineEdit.setObjectName("weightLineEdit")
        self.weightLineEdit.setText("0")
        self.timeLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.timeLineEdit.setGeometry(QtCore.QRect(70, 50, 41, 28))
        self.timeLineEdit.setObjectName("timeLineEdit")
        self.timeLineEdit.setText("0")
        self.spaceLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.spaceLineEdit.setGeometry(QtCore.QRect(130, 50, 41, 28))
        self.spaceLineEdit.setObjectName("spaceLineEdit")
        self.spaceLineEdit.setText("0")
        self.flowLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.flowLineEdit.setGeometry(QtCore.QRect(190, 50, 41, 28))
        self.flowLineEdit.setObjectName("flowLineEdit")
        self.flowLineEdit.setText("0")
        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")
#.........这里部分代码省略.........
开发者ID:msunardi,项目名称:soundmotion,代码行数:101,代码来源:new_ui3_copy3.py

示例8: Ui_MainWindow


#.........这里部分代码省略.........
		self.gridLayoutWidget_3b.setGeometry(QtCore.QRect(450, 345, 191, 150))
		self.gridLayoutWidget_3b.setObjectName("gridLayoutWidget_3b")
		self.gridLayout_3b = QtGui.QGridLayout(self.gridLayoutWidget_3b)
		self.gridLayout_3b.setMargin(3)
		self.gridLayout_3b.setObjectName("gridLayout_3b")
		self.khr1MotionGroup = QtGui.QGroupBox(self.gridLayoutWidget_3b)
		self.khr1MotionGroup.setAlignment(QtCore.Qt.AlignCenter)
		self.khr1MotionGroup.setFlat(False)
		self.khr1MotionGroup.setCheckable(False)
		self.khr1MotionGroup.setObjectName("khr1MotionGroup")
		self.khr1MotionComboBox = QtGui.QComboBox(self.khr1MotionGroup)
		self.khr1MotionComboBox.setGeometry(QtCore.QRect(35, 20, 60, 27))
		self.khr1MotionComboBox.setObjectName("khr1MotionComboBox")
		self.khr1MotionComboBox.setStatusTip('Select a motion...')
		self.khr1MotionRunButton = QtGui.QPushButton(self.khr1MotionGroup)
		self.khr1MotionRunButton.setGeometry(QtCore.QRect(95, 20, 60, 27))
		self.khr1MotionRunButton.setStatusTip('Run selected motion')		
		self.khr1MotionRunButton.setCursor(QtCore.Qt.PointingHandCursor)
		self.khr1MotionRunButton.setObjectName("khr1MotionRunButton")
		self.gridLayout_3b.addWidget(self.khr1MotionGroup, 0, 0, 1, 1)		
		
		self.gridLayoutWidget = QtGui.QWidget(self.mainTab_SignalProcessing)
		#self.gridLayoutWidget = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 0, 511, 251))
		self.gridLayoutWidget.setObjectName("gridLayoutWidget")
		self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
		self.gridLayout.setMargin(3)
		self.gridLayout.setObjectName("gridLayout")
		self.motionTabs = QtGui.QTabWidget(self.gridLayoutWidget)
		self.motionTabs.setObjectName("motionTabs")
		self.tab = QtGui.QWidget()
		self.tab.setObjectName("tab")
		
		self.motionPlot = MyPlot(self.tab)
		self.motionPlot.setGeometry(QtCore.QRect(10, 0, 470, 200))
		self.motionPlot.setObjectName("motionPlot")
		self.motionTabs.addTab(self.tab, "")
		#self.tab_2 = QtGui.QWidget()
		#self.tab_2.setObjectName("tab_2")
		#self.motionTabs.addTab(self.tab_2, "")
		self.gridLayout.addWidget(self.motionTabs, 0, 0, 1, 1)
		
		self.gridLayoutWidget_4 = QtGui.QWidget(self.mainTab_SignalProcessing)
		#self.gridLayoutWidget_4 = QtGui.QWidget(self.centralwidget)
		self.gridLayoutWidget_4.setGeometry(QtCore.QRect(450, 400, 191, 91))
		self.gridLayoutWidget_4.setObjectName("gridLayoutWidget_4")
		self.gridLayout_5 = QtGui.QGridLayout(self.gridLayoutWidget_4)
		self.gridLayout_5.setMargin(3)
		self.gridLayout_5.setObjectName("gridLayout_5")
		self.controlsGroup = QtGui.QGroupBox(self.gridLayoutWidget_4)
		self.controlsGroup.setObjectName("controlsGroup")
		self.motionPlayButton = QtGui.QToolButton(self.controlsGroup)
		self.motionPlayButton.setGeometry(QtCore.QRect(50, 20, 51, 22))
		self.motionPlayButton.setCursor(QtCore.Qt.PointingHandCursor)
		icon = QtGui.QIcon()
		icon.addPixmap(QtGui.QPixmap("../../../usr/share/icons/gnome/24x24/actions/gtk-media-play-ltr.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
		self.motionPlayButton.setIcon(icon)
		self.motionPlayButton.setObjectName("motionPlayButton")
		self.motionPlayButton.setStatusTip('Play loaded motion')
		self.motionResetButton = QtGui.QPushButton(self.controlsGroup)
		self.motionResetButton.setGeometry(QtCore.QRect(50, 50, 91, 27))
		self.motionResetButton.setCursor(QtCore.Qt.PointingHandCursor)
		self.motionResetButton.setObjectName("motionResetButton")
		self.motionResetButton.setStatusTip('Reset motion data')
		self.motionStopButton = QtGui.QToolButton(self.controlsGroup)
		self.motionStopButton.setGeometry(QtCore.QRect(100, 20, 41, 22))
开发者ID:msunardi,项目名称:soundmotion,代码行数:67,代码来源:pyMiniUix_v9.py

示例9: Ui_MainWindow

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 620)

        self.gainLabels = []
        self.gainLineEdits = []
        self.gainSliders = []
        self.bodyStartSpinBoxes = []
        self.bodyEndSpinBoxes = []
        self.bodyLabels =[]
        
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.qwtPlot = MyPlot(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_0 = QtGui.QWidget()
        self.tab_0.setObjectName("tab_0")
        self.bodyFrame = QtGui.QFrame(self.tab_0)
        self.bodyFrame.setGeometry(QtCore.QRect(10, 10, 765, 201))
        self.bodyFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.bodyFrame.setFrameShadow(QtGui.QFrame.Plain)
        self.bodyFrame.setLineWidth(3)
        self.bodyFrame.setObjectName("bodyFrame")
        self.tabWidget.addTab(self.tab_0, "")
        
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")        
        
        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.weightSlider = QtGui.QSlider(self.effortFrame)
        self.weightSlider.setGeometry(QtCore.QRect(20, 90, 20, 101))
        self.weightSlider.setOrientation(QtCore.Qt.Vertical)
        self.weightSlider.setObjectName("weightSlider")
        self.weightSlider.setMaximum(10)
        self.weightSlider.setMinimum(-10)
        self.weightSlider.setSliderPosition(0)
        self.timeSlider = QtGui.QSlider(self.effortFrame)
        self.timeSlider.setGeometry(QtCore.QRect(80, 90, 20, 101))
        self.timeSlider.setOrientation(QtCore.Qt.Vertical)
        self.timeSlider.setObjectName("timeSlider")
        self.timeSlider.setMaximum(10)
        self.timeSlider.setMinimum(-10)
        self.timeSlider.setSliderPosition(0)
        self.spaceSlider = QtGui.QSlider(self.effortFrame)
        self.spaceSlider.setGeometry(QtCore.QRect(140, 90, 20, 101))
        self.spaceSlider.setOrientation(QtCore.Qt.Vertical)
        self.spaceSlider.setObjectName("spaceSlider")
        self.spaceSlider.setMaximum(10)
        self.spaceSlider.setMinimum(-10)
        self.spaceSlider.setSliderPosition(0)
        self.flowSlider = QtGui.QSlider(self.effortFrame)
        self.flowSlider.setGeometry(QtCore.QRect(200, 90, 20, 101))
        self.flowSlider.setOrientation(QtCore.Qt.Vertical)
        self.flowSlider.setObjectName("flowSlider")
        self.flowSlider.setMaximum(10)
        self.flowSlider.setMinimum(-10)
        self.flowSlider.setSliderPosition(0)
        self.weightLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.weightLineEdit.setGeometry(QtCore.QRect(10, 50, 41, 28))
        self.weightLineEdit.setObjectName("weightLineEdit")
        self.weightLineEdit.setText("0")
        self.timeLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.timeLineEdit.setGeometry(QtCore.QRect(70, 50, 41, 28))
        self.timeLineEdit.setObjectName("timeLineEdit")
        self.timeLineEdit.setText("0")
        self.spaceLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.spaceLineEdit.setGeometry(QtCore.QRect(130, 50, 41, 28))
        self.spaceLineEdit.setObjectName("spaceLineEdit")
        self.spaceLineEdit.setText("0")
        self.flowLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.flowLineEdit.setGeometry(QtCore.QRect(190, 50, 41, 28))
        self.flowLineEdit.setObjectName("flowLineEdit")
        self.flowLineEdit.setText("0")
        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")
#.........这里部分代码省略.........
开发者ID:msunardi,项目名称:soundmotion,代码行数:101,代码来源:new_ui3_copy7.py

示例10: setupUi

    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 620)

        self.gainLabels = []
        self.gainLineEdits = []
        self.gainSliders = []
        self.bodyStartSpinBoxes = []
        self.bodyEndSpinBoxes = []
        self.bodyLabels =[]
        
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.qwtPlot = MyPlot(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_0 = QtGui.QWidget()
        self.tab_0.setObjectName("tab_0")
        self.bodyFrame = QtGui.QFrame(self.tab_0)
        self.bodyFrame.setGeometry(QtCore.QRect(10, 10, 765, 201))
        self.bodyFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.bodyFrame.setFrameShadow(QtGui.QFrame.Plain)
        self.bodyFrame.setLineWidth(3)
        self.bodyFrame.setObjectName("bodyFrame")
        self.tabWidget.addTab(self.tab_0, "")
        
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")        
        
        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.weightSlider = QtGui.QSlider(self.effortFrame)
        self.weightSlider.setGeometry(QtCore.QRect(20, 90, 20, 101))
        self.weightSlider.setOrientation(QtCore.Qt.Vertical)
        self.weightSlider.setObjectName("weightSlider")
        self.weightSlider.setMaximum(10)
        self.weightSlider.setMinimum(-10)
        self.weightSlider.setSliderPosition(0)
        self.timeSlider = QtGui.QSlider(self.effortFrame)
        self.timeSlider.setGeometry(QtCore.QRect(80, 90, 20, 101))
        self.timeSlider.setOrientation(QtCore.Qt.Vertical)
        self.timeSlider.setObjectName("timeSlider")
        self.timeSlider.setMaximum(10)
        self.timeSlider.setMinimum(-10)
        self.timeSlider.setSliderPosition(0)
        self.spaceSlider = QtGui.QSlider(self.effortFrame)
        self.spaceSlider.setGeometry(QtCore.QRect(140, 90, 20, 101))
        self.spaceSlider.setOrientation(QtCore.Qt.Vertical)
        self.spaceSlider.setObjectName("spaceSlider")
        self.spaceSlider.setMaximum(10)
        self.spaceSlider.setMinimum(-10)
        self.spaceSlider.setSliderPosition(0)
        self.flowSlider = QtGui.QSlider(self.effortFrame)
        self.flowSlider.setGeometry(QtCore.QRect(200, 90, 20, 101))
        self.flowSlider.setOrientation(QtCore.Qt.Vertical)
        self.flowSlider.setObjectName("flowSlider")
        self.flowSlider.setMaximum(10)
        self.flowSlider.setMinimum(-10)
        self.flowSlider.setSliderPosition(0)
        self.weightLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.weightLineEdit.setGeometry(QtCore.QRect(10, 50, 41, 28))
        self.weightLineEdit.setObjectName("weightLineEdit")
        self.weightLineEdit.setText("0")
        self.timeLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.timeLineEdit.setGeometry(QtCore.QRect(70, 50, 41, 28))
        self.timeLineEdit.setObjectName("timeLineEdit")
        self.timeLineEdit.setText("0")
        self.spaceLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.spaceLineEdit.setGeometry(QtCore.QRect(130, 50, 41, 28))
        self.spaceLineEdit.setObjectName("spaceLineEdit")
        self.spaceLineEdit.setText("0")
        self.flowLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.flowLineEdit.setGeometry(QtCore.QRect(190, 50, 41, 28))
        self.flowLineEdit.setObjectName("flowLineEdit")
        self.flowLineEdit.setText("0")
        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)
#.........这里部分代码省略.........
开发者ID:msunardi,项目名称:soundmotion,代码行数:101,代码来源:new_ui3_copy7.py

示例11: setupUi

    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)

        self.gainSliders = []
        
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.qwtPlot = MyPlot(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, "")
        #self.object1 = QtGui.QTextEdit(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)
开发者ID:msunardi,项目名称:soundmotion,代码行数:68,代码来源:new_ui2_copy3.py

示例12: Ui_MainWindow

class Ui_MainWindow(object):
        
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)

        self.gainSliders = []
        
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.qwtPlot = MyPlot(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, "")
        #self.object1 = QtGui.QTextEdit(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))

    def addGainSliders(self, how_many):
        for i in range(how_many):
            self.gainSliders.append(QtGui.QSlider(self.tab_2))
            self.gainSliders[i].setGeometry(QtCore.QRect(20 + i*40 , 40, 16, 160))
            self.gainSliders[i].setAccessibleName(str(i))
            self.gainSliders[i].setMaximum(99)
            self.gainSliders[i].setMinimum(-99)
            self.gainSliders[i].setSliderPosition(0)
开发者ID:msunardi,项目名称:soundmotion,代码行数:84,代码来源:new_ui2_copy3.py

示例13: setupUi

    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(810, 650)

        self.gainLabels = []
        self.gainLineEdits = []
        self.gainSliders = []
        self.bodyStartSpinBoxes = []
        self.bodyEndSpinBoxes = []
        self.bodyLabels =[]
        
        #=== CREATE MAIN WINDOW ===
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")

        #=== CREATE MAIN TAB WIDGET ===
        self.mainTabWidget = QtGui.QTabWidget(self.centralwidget)
        self.mainTabWidget.setGeometry(QtCore.QRect(0, 0, 800, 580))
        self.mainTabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.mainTabWidget.setObjectName("mainTabWidget")

        #=== CREATE THE FIRST TAB OF MAINTABWIDGET (MAIN UI)
        self.mainTab_0 = QtGui.QWidget()
        self.mainTab_0.setObjectName("mainTab_0")
        #=== CONTENT OF THE FIRST MAIN TAB:

        self.mainTabWidget.addTab(self.mainTab_0, "")   # Add the first main tab to the mainTabWidget
 
        #=== CREATE THE SECOND TAB OF MAINTABWIDGET (BACKEND UI)
        self.mainTab_1 = QtGui.QWidget()
        self.mainTab_1.setObjectName("mainTab_1")

        #=== CONTENTS OF THE SECOND MAIN TAB:
        ##=== FIRST CONTENT: QWT PLOTTER
        #self.qwtPlot = MyPlot(self.centralwidget)
        self.qwtPlot = MyPlot(self.mainTab_1)
        self.qwtPlot.setGeometry(QtCore.QRect(0, 30, 791, 261))
        self.qwtPlot.setObjectName("qwtPlot")

        ##=== SECOND CONTENT: TAB WIDGET
        #self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget = QtGui.QTabWidget(self.mainTab_1)
        self.tabWidget.setGeometry(QtCore.QRect(10, 300, 781, 251))
        self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget.setObjectName("tabWidget")

        ###=== CREATE FIRST TAB FOR THE BACKEND UI
        self.tab_0 = QtGui.QWidget()
        self.tab_0.setObjectName("tab_0")
        ####=== CONTENTS OF FIRST TAB OF BACKEND UI:
        #####=== BODY PARAMETERS FRAME (Contents will be created dynamically)
        self.bodyFrame = QtGui.QFrame(self.tab_0)
        self.bodyFrame.setGeometry(QtCore.QRect(10, 10, 765, 201))
        self.bodyFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.bodyFrame.setFrameShadow(QtGui.QFrame.Plain)
        self.bodyFrame.setLineWidth(3)
        self.bodyFrame.setObjectName("bodyFrame")
        self.tabWidget.addTab(self.tab_0, "")    # Add the first tab to the backend UI tabWidget
        
        ###=== CREATE SECOND TAB FOR THE BACKEND UI
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")        
        ####=== CONTENTS OF THE SECOND TAB OF BACKEND UI:
        #####=== FIRST FRAME: EFFORT PARAMETERS FRAME
        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)

        #####=== FIRST CONTENT IN FRAME: EFFORT PARAMETERS SLIDERS
        self.effortFrame.setObjectName("effortFrame")
        self.weightSlider = QtGui.QSlider(self.effortFrame)
        self.weightSlider.setGeometry(QtCore.QRect(20, 90, 20, 101))
        self.weightSlider.setOrientation(QtCore.Qt.Vertical)
        self.weightSlider.setObjectName("weightSlider")
        self.weightSlider.setMaximum(10)
        self.weightSlider.setMinimum(-10)
        self.weightSlider.setSliderPosition(0)
        self.timeSlider = QtGui.QSlider(self.effortFrame)
        self.timeSlider.setGeometry(QtCore.QRect(80, 90, 20, 101))
        self.timeSlider.setOrientation(QtCore.Qt.Vertical)
        self.timeSlider.setObjectName("timeSlider")
        self.timeSlider.setMaximum(10)
        self.timeSlider.setMinimum(-10)
        self.timeSlider.setSliderPosition(0)
        self.spaceSlider = QtGui.QSlider(self.effortFrame)
        self.spaceSlider.setGeometry(QtCore.QRect(140, 90, 20, 101))
        self.spaceSlider.setOrientation(QtCore.Qt.Vertical)
        self.spaceSlider.setObjectName("spaceSlider")
        self.spaceSlider.setMaximum(10)
        self.spaceSlider.setMinimum(-10)
        self.spaceSlider.setSliderPosition(0)
        self.flowSlider = QtGui.QSlider(self.effortFrame)
        self.flowSlider.setGeometry(QtCore.QRect(200, 90, 20, 101))
        self.flowSlider.setOrientation(QtCore.Qt.Vertical)
        self.flowSlider.setObjectName("flowSlider")
        self.flowSlider.setMaximum(10)
        self.flowSlider.setMinimum(-10)
        self.flowSlider.setSliderPosition(0)
#.........这里部分代码省略.........
开发者ID:msunardi,项目名称:soundmotion,代码行数:101,代码来源:new_ui4.py

示例14: Ui_MainWindow


#.........这里部分代码省略.........
        self.labelAction.setObjectName("labelAction")
        self.lineEditAction = QtGui.QLineEdit(self.frame)
        self.lineEditAction.setEnabled(False)
        self.lineEditAction.setGeometry(QtCore.QRect(80, 210, 92, 28))
        self.lineEditAction.setFrame(True)
        self.lineEditAction.setReadOnly(False)
        self.lineEditAction.setObjectName("lineEditAction")

        self.labelMotion = QtGui.QLabel(self.mainTab_0)
        self.labelMotion.setGeometry(QtCore.QRect(700, 20, 100, 25))
        self.labelMotion.setObjectName("labelMotion")
        self.labelMotion.setText("Motion")
        self.labelMotion.setFont(font)
        self.comboBoxMotion = QtGui.QComboBox(self.mainTab_0)
        self.comboBoxMotion.setGeometry(QtCore.QRect(700, 45, 100, 25))
        self.comboBoxMotion.setObjectName("comboBoxMotion")
        self.pushButtonMotion = QtGui.QPushButton(self.mainTab_0)
        self.pushButtonMotion.setGeometry(QtCore.QRect(700, 70, 50, 35))
        self.pushButtonMotion.setText("Move It!")

        self.comboBoxMusic = QtGui.QComboBox(self.mainTab_0)
        self.comboBoxMusic.setGeometry(QtCore.QRect(700, 120, 120, 25))
        self.comboBoxMusic.setObjectName("comboBoxMusic")

        self.mainTabWidget.addTab(self.mainTab_0, "")   # Add the first main tab to the mainTabWidget
 
        #=== CREATE THE SECOND TAB OF MAINTABWIDGET (BACKEND UI)
        self.mainTab_1 = QtGui.QWidget()
        self.mainTab_1.setObjectName("mainTab_1")

        #=== CONTENTS OF THE SECOND MAIN TAB:
        ##=== FIRST CONTENT: QWT PLOTTER
        #self.qwtPlot = MyPlot(self.centralwidget)
        self.qwtPlot = MyPlot(self.mainTab_1)
        self.qwtPlot.setGeometry(QtCore.QRect(0, 30, 791, 261))
        self.qwtPlot.setObjectName("qwtPlot")

        ##=== SECOND CONTENT: TAB WIDGET
        #self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget = QtGui.QTabWidget(self.mainTab_1)
        self.tabWidget.setGeometry(QtCore.QRect(10, 300, 781, 251))
        self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget.setObjectName("tabWidget")

        ###=== CREATE FIRST TAB FOR THE BACKEND UI
        #self.createBackend()
        
        self.tab_0 = QtGui.QWidget()
        self.tab_0.setObjectName("tab_0")
        ####=== CONTENTS OF FIRST TAB OF BACKEND UI:
        #####=== BODY PARAMETERS FRAME (Contents will be created dynamically)
        self.bodyFrame = QtGui.QFrame(self.tab_0)
        self.bodyFrame.setGeometry(QtCore.QRect(10, 10, 765, 201))
        self.bodyFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.bodyFrame.setFrameShadow(QtGui.QFrame.Plain)
        self.bodyFrame.setLineWidth(3)
        self.bodyFrame.setObjectName("bodyFrame")
        self.tabWidget.addTab(self.tab_0, "")    # Add the first tab to the backend UI tabWidget
        
        ###=== CREATE SECOND TAB FOR THE BACKEND UI
        self.tab_1 = QtGui.QWidget()
        self.tab_1.setObjectName("tab")        
        ####=== CONTENTS OF THE SECOND TAB OF BACKEND UI:
        #####=== FIRST FRAME: EFFORT PARAMETERS FRAME
        self.effortFrame = QtGui.QFrame(self.tab_1)
        self.effortFrame.setGeometry(QtCore.QRect(10, 10, 241, 201))
开发者ID:msunardi,项目名称:soundmotion,代码行数:67,代码来源:new_ui4_8b.py

示例15: setupUi

    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)

        self.gainLabels = []
        self.gainLineEdits = []
        self.gainSliders = []        
        
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.qwtPlot = MyPlot(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.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.weightSlider = QtGui.QSlider(self.effortFrame)
        self.weightSlider.setGeometry(QtCore.QRect(20, 90, 20, 101))
        self.weightSlider.setOrientation(QtCore.Qt.Vertical)
        self.weightSlider.setObjectName("weightSlider")
        self.weightSlider.setMaximum(10)
        self.weightSlider.setMinimum(-10)
        self.weightSlider.setSliderPosition(0)
        self.timeSlider = QtGui.QSlider(self.effortFrame)
        self.timeSlider.setGeometry(QtCore.QRect(80, 90, 20, 101))
        self.timeSlider.setOrientation(QtCore.Qt.Vertical)
        self.timeSlider.setObjectName("timeSlider")
        self.timeSlider.setMaximum(10)
        self.timeSlider.setMinimum(-10)
        self.timeSlider.setSliderPosition(0)
        self.spaceSlider = QtGui.QSlider(self.effortFrame)
        self.spaceSlider.setGeometry(QtCore.QRect(140, 90, 20, 101))
        self.spaceSlider.setOrientation(QtCore.Qt.Vertical)
        self.spaceSlider.setObjectName("spaceSlider")
        self.spaceSlider.setMaximum(10)
        self.spaceSlider.setMinimum(-10)
        self.spaceSlider.setSliderPosition(0)
        self.flowSlider = QtGui.QSlider(self.effortFrame)
        self.flowSlider.setGeometry(QtCore.QRect(200, 90, 20, 101))
        self.flowSlider.setOrientation(QtCore.Qt.Vertical)
        self.flowSlider.setObjectName("flowSlider")
        self.flowSlider.setMaximum(10)
        self.flowSlider.setMinimum(-10)
        self.flowSlider.setSliderPosition(0)
        self.weightLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.weightLineEdit.setGeometry(QtCore.QRect(10, 50, 41, 28))
        self.weightLineEdit.setObjectName("weightLineEdit")
        self.weightLineEdit.setText("0")
        self.timeLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.timeLineEdit.setGeometry(QtCore.QRect(70, 50, 41, 28))
        self.timeLineEdit.setObjectName("timeLineEdit")
        self.timeLineEdit.setText("0")
        self.spaceLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.spaceLineEdit.setGeometry(QtCore.QRect(130, 50, 41, 28))
        self.spaceLineEdit.setObjectName("spaceLineEdit")
        self.spaceLineEdit.setText("0")
        self.flowLineEdit = QtGui.QLineEdit(self.effortFrame)
        self.flowLineEdit.setGeometry(QtCore.QRect(190, 50, 41, 28))
        self.flowLineEdit.setObjectName("flowLineEdit")
        self.flowLineEdit.setText("0")
        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)
#.........这里部分代码省略.........
开发者ID:msunardi,项目名称:soundmotion,代码行数:101,代码来源:new_ui3_copy3.py


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