本文整理汇总了Python中plotter.MyPlot.setGeometry方法的典型用法代码示例。如果您正苦于以下问题:Python MyPlot.setGeometry方法的具体用法?Python MyPlot.setGeometry怎么用?Python MyPlot.setGeometry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类plotter.MyPlot
的用法示例。
在下文中一共展示了MyPlot.setGeometry方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_MainWindow
# 需要导入模块: from plotter import MyPlot [as 别名]
# 或者: from plotter.MyPlot import setGeometry [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(657, 595)
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)
font0 = QtGui.QFont()
font0.setBold(True)
font0.setPointSize(14)
font1 = QtGui.QFont()
font1.setBold(True)
font1.setPointSize(12)
font2 = QtGui.QFont()
font2.setBold(False)
font2.setPointSize(10)
self.mainTab = QtGui.QTabWidget(self.centralwidget)
self.mainTab.setObjectName("maintab")
self.mainTab.setGeometry(QtCore.QRect(3, 0, 650, 550))
self.mainTab.setTabShape(QtGui.QTabWidget.Rounded)
self.mainTab_Chat = QtGui.QWidget()
self.mainTab_Chat.setObjectName("maintab_chat")
self.mainTab.addTab(self.mainTab_Chat, "")
self.mainTab_SignalProcessing = QtGui.QWidget()
self.mainTab_SignalProcessing.setObjectName("maintab_signalprocessing")
# --- Widgets in Chat UI tab
# --- Chat UI > Chat section
self.chatFrame = QtGui.QFrame(self.mainTab_Chat)
self.chatFrame.setGeometry(QtCore.QRect(5,5,420,480))
self.chatFrame.setObjectName("chatframe")
self.chatFrame.setFrameShape(QtGui.QFrame.StyledPanel)
self.chatFrame.setFrameShadow(QtGui.QFrame.Raised)
self.chatOutputGroup = QtGui.QGroupBox(self.chatFrame)
self.chatOutputGroup.setGeometry(QtCore.QRect(10,10,410,280))
self.chatOutputGroup.setObjectName('chatOutputgroup')
self.chatAreaLabel = QtGui.QLabel(self.chatOutputGroup)
self.chatAreaLabel.setGeometry(QtCore.QRect(0,0,120,25))
self.chatAreaLabel.setObjectName("chatarealabel")
self.chatAreaLabel.setFont(font0)
self.chatAreaLabel.setText("Chat History")
self.chatArea = QtGui.QTextBrowser(self.chatOutputGroup)
self.chatArea.setGeometry(QtCore.QRect(0, 30, 400, 250))
self.chatArea.setObjectName("chatarea")
self.chatInputGroup = QtGui.QGroupBox(self.chatFrame)
self.chatInputGroup.setGeometry(QtCore.QRect(10,290,410,100))
self.chatInputGroup.setObjectName('chatinputgroup')
self.chatInputLabel = QtGui.QLabel(self.chatInputGroup)
self.chatInputLabel.setGeometry(QtCore.QRect(0, 10, 200, 25))
self.chatInputLabel.setObjectName("chatinputlabel")
self.chatInputLabel.setFont(font0)
self.chatInputLabel.setText("Your response:")
self.chatInput = QtGui.QLineEdit(self.chatInputGroup)
self.chatInput.setGeometry(QtCore.QRect(0, 38, 400, 25))
self.chatInput.setObjectName("chatinput")
self.chatInput.setFocus()
self.chatInputEnterButton = QtGui.QPushButton(self.chatInputGroup)
self.chatInputEnterButton.setGeometry(QtCore.QRect(0,68,230,30))
self.chatInputEnterButton.setObjectName("chatinputenterbutton")
self.chatInputEnterButton.setFont(font1)
self.chatInputEnterButton.setText("Enter")
self.chatInputClearButton = QtGui.QPushButton(self.chatInputGroup)
self.chatInputClearButton.setGeometry(QtCore.QRect(270,68,130,30))
self.chatInputClearButton.setObjectName("chatinputclearbutton")
self.chatInputClearButton.setFont(font1)
self.chatInputClearButton.setText("Clear")
self.chatContextGroup = QtGui.QGroupBox(self.chatFrame)
self.chatContextGroup.setGeometry(QtCore.QRect(10,395,410,100))
self.chatContextGroup.setObjectName('chatcontextgroup')
self.chatContextLabel = QtGui.QLabel(self.chatContextGroup)
self.chatContextLabel.setGeometry(QtCore.QRect(0,0,100,25))
self.chatContextLabel.setObjectName('chatcontextlabel')
self.chatContextLabel.setFont(font1)
self.chatContextLabel.setText('Chat Context')
self.chatContextCheckbox = QtGui.QCheckBox(self.chatContextGroup)
self.chatContextCheckbox.setGeometry(QtCore.QRect(120,0,100,25))
self.chatContextCheckbox.setObjectName('chatcontextcheckbox')
self.chatContextCheckbox.setText('show/hide')
self.chatContextCheckbox.setChecked(True)
self.chatContextGroupin = QtGui.QGroupBox(self.chatContextGroup)
self.chatContextGroupin.setGeometry(QtCore.QRect(0,27,410,100))
self.chatContextGroupin.setObjectName('chatcontextgroupin')
#.........这里部分代码省略.........
示例2: Ui_MainWindow
# 需要导入模块: from plotter import MyPlot [as 别名]
# 或者: from plotter.MyPlot import setGeometry [as 别名]
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")
#.........这里部分代码省略.........
示例3: Ui_MainWindow
# 需要导入模块: from plotter import MyPlot [as 别名]
# 或者: from plotter.MyPlot import setGeometry [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(875, 665)
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, 870, 600))
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.ecg = DataPlot(self.mainTab_0)
self.ecg.setGeometry(QtCore.QRect(20, 400, 160, 160))
self.frame_Center = QtGui.QFrame(self.mainTab_0)
self.frame_Center.setGeometry(QtCore.QRect(210, 20, 439, 519))
self.frame_Center.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame_Center.setFrameShadow(QtGui.QFrame.Raised)
self.frame_Center.setObjectName("frame_Center")
self.pushButtonDialogueOK = QtGui.QPushButton(self.frame_Center)
self.pushButtonDialogueOK.setGeometry(QtCore.QRect(120, 480, 80, 28))
self.pushButtonDialogueOK.setObjectName("pushButtonDialogueOK")
self.pushButtonDialogueClear = QtGui.QPushButton(self.frame_Center)
self.pushButtonDialogueClear.setGeometry(QtCore.QRect(230, 480, 80, 28))
self.pushButtonDialogueClear.setObjectName("pushButtonDialogueClear")
self.label_RobotsResponse = QtGui.QLabel(self.frame_Center)
self.label_RobotsResponse.setGeometry(QtCore.QRect(10, 150, 419, 19))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.label_RobotsResponse.setFont(font)
self.label_RobotsResponse.setObjectName("label_RobotsResponse")
self.textBrowserRobotResponse = QtGui.QTextBrowser(self.frame_Center)
self.textBrowserRobotResponse.setGeometry(QtCore.QRect(10, 190, 419, 129))
self.textBrowserRobotResponse.setObjectName("textBrowserRobotResponse")
self.label_say = QtGui.QLabel(self.frame_Center)
self.label_say.setGeometry(QtCore.QRect(10, 390, 419, 19))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.label_say.setFont(font)
self.label_say.setObjectName("label_say")
self.lineEditUserDialogue = QtGui.QLineEdit(self.frame_Center)
self.lineEditUserDialogue.setGeometry(QtCore.QRect(10, 410, 419, 28))
self.lineEditUserDialogue.setObjectName("lineEditUserDialogue")
self.frame = QtGui.QFrame(self.mainTab_0)
self.frame.setGeometry(QtCore.QRect(670, 280, 179, 259))
self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame.setFrameShadow(QtGui.QFrame.Raised)
self.frame.setObjectName("frame")
self.label_currentdialoguecontext = QtGui.QLabel(self.frame)
self.label_currentdialoguecontext.setGeometry(QtCore.QRect(3, 3, 151, 18))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.label_currentdialoguecontext.setFont(font)
self.label_currentdialoguecontext.setObjectName("label_currentdialoguecontext")
self.labelTopic = QtGui.QLabel(self.frame)
self.labelTopic.setGeometry(QtCore.QRect(0, 30, 79, 29))
self.labelTopic.setMargin(2)
self.labelTopic.setIndent(2)
self.labelTopic.setObjectName("labelTopic")
self.lineEditTopic = QtGui.QLineEdit(self.frame)
self.lineEditTopic.setEnabled(False)
self.lineEditTopic.setGeometry(QtCore.QRect(80, 30, 92, 28))
self.lineEditTopic.setFrame(True)
self.lineEditTopic.setReadOnly(False)
self.lineEditTopic.setObjectName("lineEditTopic")
self.labelIt = QtGui.QLabel(self.frame)
self.labelIt.setGeometry(QtCore.QRect(0, 60, 79, 29))
self.labelIt.setMargin(2)
self.labelIt.setIndent(2)
self.labelIt.setObjectName("labelIt")
self.lineEditIt = QtGui.QLineEdit(self.frame)
self.lineEditIt.setEnabled(False)
self.lineEditIt.setGeometry(QtCore.QRect(80, 60, 92, 28))
self.lineEditIt.setFrame(True)
self.lineEditIt.setReadOnly(False)
self.lineEditIt.setObjectName("lineEditIt")
self.labelUsername = QtGui.QLabel(self.frame)
self.labelUsername.setGeometry(QtCore.QRect(0, 90, 79, 29))
self.labelUsername.setMargin(2)
self.labelUsername.setIndent(2)
self.labelUsername.setObjectName("labelUsername")
self.lineEditUsername = QtGui.QLineEdit(self.frame)
#.........这里部分代码省略.........
示例4: Ui_MainWindow
# 需要导入模块: from plotter import MyPlot [as 别名]
# 或者: from plotter.MyPlot import setGeometry [as 别名]
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.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)
#.........这里部分代码省略.........
示例5: Ui_MainWindow
# 需要导入模块: from plotter import MyPlot [as 别名]
# 或者: from plotter.MyPlot import setGeometry [as 别名]
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")
#.........这里部分代码省略.........
示例6: Ui_MainWindow
# 需要导入模块: from plotter import MyPlot [as 别名]
# 或者: from plotter.MyPlot import setGeometry [as 别名]
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")
#.........这里部分代码省略.........
示例7: Ui_MainWindow
# 需要导入模块: from plotter import MyPlot [as 别名]
# 或者: from plotter.MyPlot import setGeometry [as 别名]
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)
示例8: Ui_MainWindow
# 需要导入模块: from plotter import MyPlot [as 别名]
# 或者: from plotter.MyPlot import setGeometry [as 别名]
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)
#.........这里部分代码省略.........