2014-05-17 14:35:22 -04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Form implementation generated from reading ui file 'example.ui'
|
|
|
|
#
|
2015-01-09 11:08:28 -05:00
|
|
|
# Created: Fri Jan 9 17:06:23 2015
|
2015-01-09 11:01:11 -05:00
|
|
|
# by: PyQt5 UI code generator 5.4
|
2014-05-17 14:35:22 -04:00
|
|
|
#
|
|
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
|
|
class Ui_MainWindow(object):
|
|
|
|
def setupUi(self, MainWindow):
|
|
|
|
MainWindow.setObjectName("MainWindow")
|
2015-01-09 11:08:28 -05:00
|
|
|
MainWindow.resize(877, 750)
|
2014-05-17 14:35:22 -04:00
|
|
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
|
|
|
self.centralwidget.setObjectName("centralwidget")
|
|
|
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.centralwidget)
|
|
|
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
|
|
|
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
|
|
|
|
self.tabWidget.setTabPosition(QtWidgets.QTabWidget.East)
|
|
|
|
self.tabWidget.setTabsClosable(True)
|
|
|
|
self.tabWidget.setObjectName("tabWidget")
|
|
|
|
self.tab = QtWidgets.QWidget()
|
|
|
|
self.tab.setObjectName("tab")
|
|
|
|
self.gridLayout = QtWidgets.QGridLayout(self.tab)
|
|
|
|
self.gridLayout.setObjectName("gridLayout")
|
|
|
|
self.groupBox = QtWidgets.QGroupBox(self.tab)
|
|
|
|
self.groupBox.setObjectName("groupBox")
|
|
|
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox)
|
|
|
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
|
|
|
self.toolBox = QtWidgets.QToolBox(self.groupBox)
|
|
|
|
self.toolBox.setObjectName("toolBox")
|
|
|
|
self.page = QtWidgets.QWidget()
|
2015-01-09 11:08:28 -05:00
|
|
|
self.page.setGeometry(QtCore.QRect(0, 0, 401, 522))
|
2014-05-17 14:35:22 -04:00
|
|
|
self.page.setObjectName("page")
|
|
|
|
self.gridLayout_4 = QtWidgets.QGridLayout(self.page)
|
|
|
|
self.gridLayout_4.setObjectName("gridLayout_4")
|
|
|
|
self.lineEdit = QtWidgets.QLineEdit(self.page)
|
|
|
|
self.lineEdit.setObjectName("lineEdit")
|
|
|
|
self.gridLayout_4.addWidget(self.lineEdit, 0, 0, 1, 1)
|
|
|
|
self.toolBox.addItem(self.page, "")
|
|
|
|
self.page_2 = QtWidgets.QWidget()
|
2015-01-09 11:08:28 -05:00
|
|
|
self.page_2.setGeometry(QtCore.QRect(0, 0, 401, 522))
|
2014-05-17 14:35:22 -04:00
|
|
|
self.page_2.setObjectName("page_2")
|
|
|
|
self.gridLayout_5 = QtWidgets.QGridLayout(self.page_2)
|
|
|
|
self.gridLayout_5.setObjectName("gridLayout_5")
|
|
|
|
self.listWidget = QtWidgets.QListWidget(self.page_2)
|
|
|
|
self.listWidget.setObjectName("listWidget")
|
|
|
|
item = QtWidgets.QListWidgetItem()
|
|
|
|
self.listWidget.addItem(item)
|
|
|
|
item = QtWidgets.QListWidgetItem()
|
|
|
|
self.listWidget.addItem(item)
|
|
|
|
item = QtWidgets.QListWidgetItem()
|
|
|
|
self.listWidget.addItem(item)
|
|
|
|
item = QtWidgets.QListWidgetItem()
|
|
|
|
self.listWidget.addItem(item)
|
|
|
|
item = QtWidgets.QListWidgetItem()
|
|
|
|
self.listWidget.addItem(item)
|
|
|
|
item = QtWidgets.QListWidgetItem()
|
|
|
|
self.listWidget.addItem(item)
|
|
|
|
item = QtWidgets.QListWidgetItem()
|
|
|
|
self.listWidget.addItem(item)
|
|
|
|
item = QtWidgets.QListWidgetItem()
|
|
|
|
self.listWidget.addItem(item)
|
|
|
|
self.gridLayout_5.addWidget(self.listWidget, 0, 0, 1, 1)
|
|
|
|
self.toolBox.addItem(self.page_2, "")
|
|
|
|
self.verticalLayout_3.addWidget(self.toolBox)
|
|
|
|
self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
|
|
|
|
self.tabWidget.addTab(self.tab, "")
|
|
|
|
self.tab_2 = QtWidgets.QWidget()
|
|
|
|
self.tab_2.setObjectName("tab_2")
|
|
|
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.tab_2)
|
|
|
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
|
|
|
self.groupBox_2 = QtWidgets.QGroupBox(self.tab_2)
|
|
|
|
self.groupBox_2.setObjectName("groupBox_2")
|
|
|
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_2)
|
|
|
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
|
|
|
self.label = QtWidgets.QLabel(self.groupBox_2)
|
|
|
|
self.label.setObjectName("label")
|
|
|
|
self.verticalLayout_4.addWidget(self.label)
|
|
|
|
self.radioButton = QtWidgets.QRadioButton(self.groupBox_2)
|
|
|
|
self.radioButton.setObjectName("radioButton")
|
|
|
|
self.verticalLayout_4.addWidget(self.radioButton)
|
|
|
|
self.checkBox = QtWidgets.QCheckBox(self.groupBox_2)
|
|
|
|
self.checkBox.setObjectName("checkBox")
|
|
|
|
self.verticalLayout_4.addWidget(self.checkBox)
|
2015-01-09 11:01:11 -05:00
|
|
|
self.checkBox_2 = QtWidgets.QCheckBox(self.groupBox_2)
|
|
|
|
self.checkBox_2.setTristate(True)
|
|
|
|
self.checkBox_2.setObjectName("checkBox_2")
|
|
|
|
self.verticalLayout_4.addWidget(self.checkBox_2)
|
2014-05-17 14:35:22 -04:00
|
|
|
self.treeWidget = QtWidgets.QTreeWidget(self.groupBox_2)
|
|
|
|
self.treeWidget.setObjectName("treeWidget")
|
|
|
|
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
|
|
|
|
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
|
|
|
|
self.verticalLayout_4.addWidget(self.treeWidget)
|
|
|
|
self.gridLayout_2.addWidget(self.groupBox_2, 0, 0, 1, 1)
|
|
|
|
self.tabWidget.addTab(self.tab_2, "")
|
|
|
|
self.horizontalLayout_2.addWidget(self.tabWidget)
|
|
|
|
MainWindow.setCentralWidget(self.centralwidget)
|
|
|
|
self.menubar = QtWidgets.QMenuBar(MainWindow)
|
2015-01-09 11:08:28 -05:00
|
|
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 877, 28))
|
2014-05-17 14:35:22 -04:00
|
|
|
self.menubar.setObjectName("menubar")
|
|
|
|
self.menuMenu = QtWidgets.QMenu(self.menubar)
|
|
|
|
self.menuMenu.setObjectName("menuMenu")
|
|
|
|
self.menuSubmenu_2 = QtWidgets.QMenu(self.menuMenu)
|
|
|
|
self.menuSubmenu_2.setObjectName("menuSubmenu_2")
|
|
|
|
MainWindow.setMenuBar(self.menubar)
|
|
|
|
self.statusbar = QtWidgets.QStatusBar(MainWindow)
|
|
|
|
self.statusbar.setObjectName("statusbar")
|
|
|
|
MainWindow.setStatusBar(self.statusbar)
|
|
|
|
self.dockWidget1 = QtWidgets.QDockWidget(MainWindow)
|
|
|
|
self.dockWidget1.setObjectName("dockWidget1")
|
|
|
|
self.dockWidgetContents = QtWidgets.QWidget()
|
|
|
|
self.dockWidgetContents.setObjectName("dockWidgetContents")
|
|
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.dockWidgetContents)
|
|
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
|
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
|
|
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
|
|
|
self.pushButton_2 = QtWidgets.QPushButton(self.dockWidgetContents)
|
|
|
|
self.pushButton_2.setObjectName("pushButton_2")
|
|
|
|
self.horizontalLayout.addWidget(self.pushButton_2)
|
|
|
|
self.pushButton = QtWidgets.QPushButton(self.dockWidgetContents)
|
|
|
|
self.pushButton.setObjectName("pushButton")
|
|
|
|
self.horizontalLayout.addWidget(self.pushButton)
|
2015-01-09 11:08:28 -05:00
|
|
|
self.line_2 = QtWidgets.QFrame(self.dockWidgetContents)
|
|
|
|
self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
|
|
|
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
|
|
|
|
self.line_2.setObjectName("line_2")
|
|
|
|
self.horizontalLayout.addWidget(self.line_2)
|
2014-05-17 14:35:22 -04:00
|
|
|
self.pushButton_3 = QtWidgets.QPushButton(self.dockWidgetContents)
|
|
|
|
self.pushButton_3.setEnabled(False)
|
|
|
|
self.pushButton_3.setObjectName("pushButton_3")
|
|
|
|
self.horizontalLayout.addWidget(self.pushButton_3)
|
|
|
|
self.doubleSpinBox = QtWidgets.QDoubleSpinBox(self.dockWidgetContents)
|
|
|
|
self.doubleSpinBox.setObjectName("doubleSpinBox")
|
|
|
|
self.horizontalLayout.addWidget(self.doubleSpinBox)
|
|
|
|
self.toolButton = QtWidgets.QToolButton(self.dockWidgetContents)
|
|
|
|
self.toolButton.setObjectName("toolButton")
|
|
|
|
self.horizontalLayout.addWidget(self.toolButton)
|
|
|
|
self.verticalLayout_2.addLayout(self.horizontalLayout)
|
|
|
|
self.verticalLayout = QtWidgets.QVBoxLayout()
|
|
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
|
|
self.comboBox = QtWidgets.QComboBox(self.dockWidgetContents)
|
|
|
|
self.comboBox.setObjectName("comboBox")
|
|
|
|
self.comboBox.addItem("")
|
|
|
|
self.comboBox.addItem("")
|
|
|
|
self.verticalLayout.addWidget(self.comboBox)
|
|
|
|
self.textEdit = QtWidgets.QTextEdit(self.dockWidgetContents)
|
|
|
|
self.textEdit.setObjectName("textEdit")
|
|
|
|
self.verticalLayout.addWidget(self.textEdit)
|
2015-01-09 11:08:28 -05:00
|
|
|
self.line = QtWidgets.QFrame(self.dockWidgetContents)
|
|
|
|
self.line.setFrameShape(QtWidgets.QFrame.HLine)
|
|
|
|
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
|
|
|
self.line.setObjectName("line")
|
|
|
|
self.verticalLayout.addWidget(self.line)
|
2014-05-17 14:35:22 -04:00
|
|
|
self.progressBar = QtWidgets.QProgressBar(self.dockWidgetContents)
|
|
|
|
self.progressBar.setProperty("value", 24)
|
|
|
|
self.progressBar.setObjectName("progressBar")
|
|
|
|
self.verticalLayout.addWidget(self.progressBar)
|
|
|
|
self.verticalLayout_2.addLayout(self.verticalLayout)
|
|
|
|
self.dockWidget1.setWidget(self.dockWidgetContents)
|
|
|
|
MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget1)
|
|
|
|
self.dockWidget2 = QtWidgets.QDockWidget(MainWindow)
|
|
|
|
self.dockWidget2.setObjectName("dockWidget2")
|
|
|
|
self.dockWidgetContents_2 = QtWidgets.QWidget()
|
|
|
|
self.dockWidgetContents_2.setObjectName("dockWidgetContents_2")
|
|
|
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.dockWidgetContents_2)
|
|
|
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
|
|
|
self.tableWidget = QtWidgets.QTableWidget(self.dockWidgetContents_2)
|
|
|
|
self.tableWidget.setObjectName("tableWidget")
|
|
|
|
self.tableWidget.setColumnCount(2)
|
|
|
|
self.tableWidget.setRowCount(4)
|
|
|
|
item = QtWidgets.QTableWidgetItem()
|
|
|
|
self.tableWidget.setVerticalHeaderItem(0, item)
|
|
|
|
item = QtWidgets.QTableWidgetItem()
|
|
|
|
self.tableWidget.setVerticalHeaderItem(1, item)
|
|
|
|
item = QtWidgets.QTableWidgetItem()
|
|
|
|
self.tableWidget.setVerticalHeaderItem(2, item)
|
|
|
|
item = QtWidgets.QTableWidgetItem()
|
|
|
|
self.tableWidget.setVerticalHeaderItem(3, item)
|
|
|
|
item = QtWidgets.QTableWidgetItem()
|
|
|
|
self.tableWidget.setHorizontalHeaderItem(0, item)
|
|
|
|
item = QtWidgets.QTableWidgetItem()
|
|
|
|
self.tableWidget.setHorizontalHeaderItem(1, item)
|
|
|
|
self.gridLayout_3.addWidget(self.tableWidget, 0, 0, 1, 1)
|
|
|
|
self.dockWidget2.setWidget(self.dockWidgetContents_2)
|
|
|
|
MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget2)
|
|
|
|
self.toolBar = QtWidgets.QToolBar(MainWindow)
|
|
|
|
self.toolBar.setObjectName("toolBar")
|
|
|
|
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
|
|
|
|
self.actionAction = QtWidgets.QAction(MainWindow)
|
|
|
|
self.actionAction.setObjectName("actionAction")
|
|
|
|
self.actionSub_menu = QtWidgets.QAction(MainWindow)
|
|
|
|
self.actionSub_menu.setObjectName("actionSub_menu")
|
|
|
|
self.actionAction_C = QtWidgets.QAction(MainWindow)
|
|
|
|
self.actionAction_C.setObjectName("actionAction_C")
|
|
|
|
self.menuSubmenu_2.addAction(self.actionSub_menu)
|
|
|
|
self.menuSubmenu_2.addAction(self.actionAction_C)
|
|
|
|
self.menuMenu.addAction(self.actionAction)
|
|
|
|
self.menuMenu.addAction(self.menuSubmenu_2.menuAction())
|
|
|
|
self.menubar.addAction(self.menuMenu.menuAction())
|
|
|
|
self.toolBar.addAction(self.actionAction)
|
|
|
|
self.toolBar.addAction(self.actionSub_menu)
|
|
|
|
|
|
|
|
self.retranslateUi(MainWindow)
|
2015-01-09 11:01:11 -05:00
|
|
|
self.tabWidget.setCurrentIndex(1)
|
2014-05-17 14:35:22 -04:00
|
|
|
self.toolBox.setCurrentIndex(1)
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
|
|
|
|
|
|
|
def retranslateUi(self, MainWindow):
|
|
|
|
_translate = QtCore.QCoreApplication.translate
|
|
|
|
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
|
|
|
|
self.groupBox.setTitle(_translate("MainWindow", "GroupBox"))
|
|
|
|
self.toolBox.setItemText(self.toolBox.indexOf(self.page), _translate("MainWindow", "Page 1"))
|
|
|
|
__sortingEnabled = self.listWidget.isSortingEnabled()
|
|
|
|
self.listWidget.setSortingEnabled(False)
|
|
|
|
item = self.listWidget.item(0)
|
|
|
|
item.setText(_translate("MainWindow", "New Item"))
|
|
|
|
item = self.listWidget.item(1)
|
|
|
|
item.setText(_translate("MainWindow", "New Item"))
|
|
|
|
item = self.listWidget.item(2)
|
|
|
|
item.setText(_translate("MainWindow", "New Item"))
|
|
|
|
item = self.listWidget.item(3)
|
|
|
|
item.setText(_translate("MainWindow", "New Item"))
|
|
|
|
item = self.listWidget.item(4)
|
|
|
|
item.setText(_translate("MainWindow", "New Item"))
|
|
|
|
item = self.listWidget.item(5)
|
|
|
|
item.setText(_translate("MainWindow", "New Item"))
|
|
|
|
item = self.listWidget.item(6)
|
|
|
|
item.setText(_translate("MainWindow", "New Item"))
|
|
|
|
item = self.listWidget.item(7)
|
|
|
|
item.setText(_translate("MainWindow", "New Item"))
|
|
|
|
self.listWidget.setSortingEnabled(__sortingEnabled)
|
|
|
|
self.toolBox.setItemText(self.toolBox.indexOf(self.page_2), _translate("MainWindow", "Page 2"))
|
|
|
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Tab 1"))
|
|
|
|
self.groupBox_2.setTitle(_translate("MainWindow", "GroupBox"))
|
|
|
|
self.label.setText(_translate("MainWindow", "TextLabel"))
|
|
|
|
self.radioButton.setText(_translate("MainWindow", "RadioButton"))
|
|
|
|
self.checkBox.setText(_translate("MainWindow", "CheckBox"))
|
2015-01-09 11:01:11 -05:00
|
|
|
self.checkBox_2.setText(_translate("MainWindow", "CheckBox Tristate"))
|
2014-05-17 14:35:22 -04:00
|
|
|
self.treeWidget.headerItem().setText(0, _translate("MainWindow", "qdz"))
|
|
|
|
__sortingEnabled = self.treeWidget.isSortingEnabled()
|
|
|
|
self.treeWidget.setSortingEnabled(False)
|
|
|
|
self.treeWidget.topLevelItem(0).setText(0, _translate("MainWindow", "qzd"))
|
|
|
|
self.treeWidget.topLevelItem(1).setText(0, _translate("MainWindow", "effefe"))
|
|
|
|
self.treeWidget.setSortingEnabled(__sortingEnabled)
|
|
|
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Tab 2"))
|
|
|
|
self.menuMenu.setTitle(_translate("MainWindow", "Menu"))
|
|
|
|
self.menuSubmenu_2.setTitle(_translate("MainWindow", "Submenu 2"))
|
|
|
|
self.dockWidget1.setWindowTitle(_translate("MainWindow", "Dock widget 1"))
|
|
|
|
self.pushButton_2.setText(_translate("MainWindow", "PushButton"))
|
|
|
|
self.pushButton.setText(_translate("MainWindow", "PushButton"))
|
|
|
|
self.pushButton_3.setText(_translate("MainWindow", "Disabled"))
|
|
|
|
self.toolButton.setText(_translate("MainWindow", "..."))
|
|
|
|
self.comboBox.setItemText(0, _translate("MainWindow", "Item 0"))
|
|
|
|
self.comboBox.setItemText(1, _translate("MainWindow", "Item 2"))
|
|
|
|
self.dockWidget2.setWindowTitle(_translate("MainWindow", "Dock widget 2"))
|
|
|
|
item = self.tableWidget.verticalHeaderItem(0)
|
|
|
|
item.setText(_translate("MainWindow", "New Row"))
|
|
|
|
item = self.tableWidget.verticalHeaderItem(1)
|
|
|
|
item.setText(_translate("MainWindow", "New Row"))
|
|
|
|
item = self.tableWidget.verticalHeaderItem(2)
|
|
|
|
item.setText(_translate("MainWindow", "New Row"))
|
|
|
|
item = self.tableWidget.verticalHeaderItem(3)
|
|
|
|
item.setText(_translate("MainWindow", "New Row"))
|
|
|
|
item = self.tableWidget.horizontalHeaderItem(0)
|
|
|
|
item.setText(_translate("MainWindow", "New Column"))
|
|
|
|
item = self.tableWidget.horizontalHeaderItem(1)
|
|
|
|
item.setText(_translate("MainWindow", "New Column 2"))
|
|
|
|
self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar"))
|
|
|
|
self.actionAction.setText(_translate("MainWindow", "Action"))
|
|
|
|
self.actionSub_menu.setText(_translate("MainWindow", "Action B"))
|
|
|
|
self.actionSub_menu.setToolTip(_translate("MainWindow", "submenu"))
|
|
|
|
self.actionAction_C.setText(_translate("MainWindow", "Action C"))
|
|
|
|
|