SHARE
TWEET

Untitled

a guest May 19th, 2017 56 in 3 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'gui/main.ui'
  4. #
  5. # Created by: PyQt5 UI code generator 5.8
  6. #
  7. # WARNING! All changes made in this file will be lost!
  8.  
  9. from PyQt5 import QtCore, QtGui, QtWidgets
  10.  
  11. class Ui_PyreeMainWindow(object):
  12.     def setupUi(self, PyreeMainWindow):
  13.         PyreeMainWindow.setObjectName("PyreeMainWindow")
  14.         PyreeMainWindow.resize(971, 634)
  15.         self.centralwidget = QtWidgets.QWidget(PyreeMainWindow)
  16.         self.centralwidget.setObjectName("centralwidget")
  17.         self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
  18.         self.gridLayout.setContentsMargins(9, -1, -1, -1)
  19.         self.gridLayout.setObjectName("gridLayout")
  20.         self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
  21.         self.tabWidget.setTabPosition(QtWidgets.QTabWidget.South)
  22.         self.tabWidget.setTabsClosable(True)
  23.         self.tabWidget.setMovable(True)
  24.         self.tabWidget.setObjectName("tabWidget")
  25.         self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
  26.         PyreeMainWindow.setCentralWidget(self.centralwidget)
  27.         self.menubar = QtWidgets.QMenuBar(PyreeMainWindow)
  28.         self.menubar.setGeometry(QtCore.QRect(0, 0, 971, 21))
  29.         self.menubar.setObjectName("menubar")
  30.         self.menuFile = QtWidgets.QMenu(self.menubar)
  31.         self.menuFile.setObjectName("menuFile")
  32.         self.menuEdit = QtWidgets.QMenu(self.menubar)
  33.         self.menuEdit.setObjectName("menuEdit")
  34.         PyreeMainWindow.setMenuBar(self.menubar)
  35.         self.statusbar = QtWidgets.QStatusBar(PyreeMainWindow)
  36.         self.statusbar.setObjectName("statusbar")
  37.         PyreeMainWindow.setStatusBar(self.statusbar)
  38.         self.workersDockWidget = QtWidgets.QDockWidget(PyreeMainWindow)
  39.         self.workersDockWidget.setObjectName("workersDockWidget")
  40.         self.dockWidgetContents = QtWidgets.QWidget()
  41.         self.dockWidgetContents.setObjectName("dockWidgetContents")
  42.         self.gridLayout_2 = QtWidgets.QGridLayout(self.dockWidgetContents)
  43.         self.gridLayout_2.setContentsMargins(9, 9, 9, 9)
  44.         self.gridLayout_2.setHorizontalSpacing(4)
  45.         self.gridLayout_2.setObjectName("gridLayout_2")
  46.         self.horizontalLayout = QtWidgets.QHBoxLayout()
  47.         self.horizontalLayout.setContentsMargins(-1, 0, -1, -1)
  48.         self.horizontalLayout.setObjectName("horizontalLayout")
  49.         self.monitorPlayButton = QtWidgets.QPushButton(self.dockWidgetContents)
  50.         self.monitorPlayButton.setText("")
  51.         icon = QtGui.QIcon()
  52.         icon.addPixmap(QtGui.QPixmap("resources/icons/control_play.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  53.         self.monitorPlayButton.setIcon(icon)
  54.         self.monitorPlayButton.setObjectName("monitorPlayButton")
  55.         self.horizontalLayout.addWidget(self.monitorPlayButton)
  56.         self.monitorPauseButton = QtWidgets.QPushButton(self.dockWidgetContents)
  57.         self.monitorPauseButton.setText("")
  58.         icon1 = QtGui.QIcon()
  59.         icon1.addPixmap(QtGui.QPixmap("../resources/icons/control_pause.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  60.         self.monitorPauseButton.setIcon(icon1)
  61.         self.monitorPauseButton.setObjectName("monitorPauseButton")
  62.         self.horizontalLayout.addWidget(self.monitorPauseButton)
  63.         self.monitorStopButton = QtWidgets.QPushButton(self.dockWidgetContents)
  64.         self.monitorStopButton.setText("")
  65.         icon2 = QtGui.QIcon()
  66.         icon2.addPixmap(QtGui.QPixmap("../resources/icons/control_stop.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  67.         self.monitorStopButton.setIcon(icon2)
  68.         self.monitorStopButton.setObjectName("monitorStopButton")
  69.         self.horizontalLayout.addWidget(self.monitorStopButton)
  70.         spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
  71.         self.horizontalLayout.addItem(spacerItem)
  72.         self.monitorSetsheetButton = QtWidgets.QPushButton(self.dockWidgetContents)
  73.         self.monitorSetsheetButton.setText("")
  74.         icon3 = QtGui.QIcon()
  75.         icon3.addPixmap(QtGui.QPixmap("../resources/icons/script_go.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  76.         self.monitorSetsheetButton.setIcon(icon3)
  77.         self.monitorSetsheetButton.setObjectName("monitorSetsheetButton")
  78.         self.horizontalLayout.addWidget(self.monitorSetsheetButton)
  79.         self.gridLayout_2.addLayout(self.horizontalLayout, 0, 1, 1, 1)
  80.         self.workersTreeWidget = QtWidgets.QTreeWidget(self.dockWidgetContents)
  81.         self.workersTreeWidget.setItemsExpandable(True)
  82.         self.workersTreeWidget.setObjectName("workersTreeWidget")
  83.         self.workersTreeWidget.headerItem().setText(0, "1")
  84.         self.workersTreeWidget.header().setVisible(False)
  85.         self.gridLayout_2.addWidget(self.workersTreeWidget, 1, 1, 1, 1)
  86.         self.workersDockWidget.setWidget(self.dockWidgetContents)
  87.         PyreeMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.workersDockWidget)
  88.         self.sheetsDockWidget = QtWidgets.QDockWidget(PyreeMainWindow)
  89.         self.sheetsDockWidget.setObjectName("sheetsDockWidget")
  90.         self.dockWidgetContents_2 = QtWidgets.QWidget()
  91.         self.dockWidgetContents_2.setObjectName("dockWidgetContents_2")
  92.         self.verticalLayout = QtWidgets.QVBoxLayout(self.dockWidgetContents_2)
  93.         self.verticalLayout.setContentsMargins(9, 9, 9, 9)
  94.         self.verticalLayout.setSpacing(6)
  95.         self.verticalLayout.setObjectName("verticalLayout")
  96.         self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
  97.         self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
  98.         self.horizontalLayout_2.setObjectName("horizontalLayout_2")
  99.         self.addSheetPushButton = QtWidgets.QPushButton(self.dockWidgetContents_2)
  100.         sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
  101.         sizePolicy.setHorizontalStretch(0)
  102.         sizePolicy.setVerticalStretch(0)
  103.         sizePolicy.setHeightForWidth(self.addSheetPushButton.sizePolicy().hasHeightForWidth())
  104.         self.addSheetPushButton.setSizePolicy(sizePolicy)
  105.         self.addSheetPushButton.setMinimumSize(QtCore.QSize(0, 0))
  106.         self.addSheetPushButton.setFlat(False)
  107.         self.addSheetPushButton.setObjectName("addSheetPushButton")
  108.         self.horizontalLayout_2.addWidget(self.addSheetPushButton)
  109.         self.addSheetLineEdit = QtWidgets.QLineEdit(self.dockWidgetContents_2)
  110.         sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
  111.         sizePolicy.setHorizontalStretch(0)
  112.         sizePolicy.setVerticalStretch(0)
  113.         sizePolicy.setHeightForWidth(self.addSheetLineEdit.sizePolicy().hasHeightForWidth())
  114.         self.addSheetLineEdit.setSizePolicy(sizePolicy)
  115.         self.addSheetLineEdit.setObjectName("addSheetLineEdit")
  116.         self.horizontalLayout_2.addWidget(self.addSheetLineEdit)
  117.         self.verticalLayout.addLayout(self.horizontalLayout_2)
  118.         self.sheetListWidget = QtWidgets.QListWidget(self.dockWidgetContents_2)
  119.         self.sheetListWidget.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
  120.         self.sheetListWidget.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)
  121.         self.sheetListWidget.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
  122.         self.sheetListWidget.setObjectName("sheetListWidget")
  123.         self.verticalLayout.addWidget(self.sheetListWidget)
  124.         self.sheetsDockWidget.setWidget(self.dockWidgetContents_2)
  125.         PyreeMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.sheetsDockWidget)
  126.         self.propertiesDockWidget = QtWidgets.QDockWidget(PyreeMainWindow)
  127.         self.propertiesDockWidget.setObjectName("propertiesDockWidget")
  128.         self.dockWidgetContents_3 = QtWidgets.QWidget()
  129.         self.dockWidgetContents_3.setObjectName("dockWidgetContents_3")
  130.         self.propertiesDockWidget.setWidget(self.dockWidgetContents_3)
  131.         PyreeMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.propertiesDockWidget)
  132.         self.actionOpen = QtWidgets.QAction(PyreeMainWindow)
  133.         self.actionOpen.setObjectName("actionOpen")
  134.         self.actionSave = QtWidgets.QAction(PyreeMainWindow)
  135.         self.actionSave.setObjectName("actionSave")
  136.         self.actionSave_as = QtWidgets.QAction(PyreeMainWindow)
  137.         self.actionSave_as.setObjectName("actionSave_as")
  138.         self.actionNew_Project = QtWidgets.QAction(PyreeMainWindow)
  139.         self.actionNew_Project.setObjectName("actionNew_Project")
  140.         self.actionExit = QtWidgets.QAction(PyreeMainWindow)
  141.         self.actionExit.setObjectName("actionExit")
  142.         self.actionUndo = QtWidgets.QAction(PyreeMainWindow)
  143.         self.actionUndo.setObjectName("actionUndo")
  144.         self.actionRedo = QtWidgets.QAction(PyreeMainWindow)
  145.         self.actionRedo.setObjectName("actionRedo")
  146.         self.actionImport_sheet = QtWidgets.QAction(PyreeMainWindow)
  147.         self.actionImport_sheet.setObjectName("actionImport_sheet")
  148.         self.menuFile.addAction(self.actionNew_Project)
  149.         self.menuFile.addAction(self.actionOpen)
  150.         self.menuFile.addAction(self.actionSave)
  151.         self.menuFile.addAction(self.actionSave_as)
  152.         self.menuFile.addSeparator()
  153.         self.menuFile.addAction(self.actionImport_sheet)
  154.         self.menuFile.addSeparator()
  155.         self.menuFile.addAction(self.actionExit)
  156.         self.menuEdit.addAction(self.actionUndo)
  157.         self.menuEdit.addAction(self.actionRedo)
  158.         self.menubar.addAction(self.menuFile.menuAction())
  159.         self.menubar.addAction(self.menuEdit.menuAction())
  160.  
  161.         self.retranslateUi(PyreeMainWindow)
  162.         self.tabWidget.setCurrentIndex(-1)
  163.         self.addSheetLineEdit.returnPressed.connect(self.addSheetPushButton.click)
  164.         QtCore.QMetaObject.connectSlotsByName(PyreeMainWindow)
  165.  
  166.     def retranslateUi(self, PyreeMainWindow):
  167.         _translate = QtCore.QCoreApplication.translate
  168.         PyreeMainWindow.setWindowTitle(_translate("PyreeMainWindow", "PyreeMainWindow"))
  169.         self.menuFile.setTitle(_translate("PyreeMainWindow", "File"))
  170.         self.menuEdit.setTitle(_translate("PyreeMainWindow", "Edit"))
  171.         self.workersDockWidget.setWindowTitle(_translate("PyreeMainWindow", "Workers"))
  172.         self.sheetsDockWidget.setWindowTitle(_translate("PyreeMainWindow", "Sheets"))
  173.         self.addSheetPushButton.setToolTip(_translate("PyreeMainWindow", "Create a new sheet"))
  174.         self.addSheetPushButton.setText(_translate("PyreeMainWindow", "+"))
  175.         self.addSheetLineEdit.setToolTip(_translate("PyreeMainWindow", "Name the new sheet shall have"))
  176.         self.addSheetLineEdit.setPlaceholderText(_translate("PyreeMainWindow", "Name of new sheet"))
  177.         self.propertiesDockWidget.setWindowTitle(_translate("PyreeMainWindow", "Properties"))
  178.         self.actionOpen.setText(_translate("PyreeMainWindow", "Open"))
  179.         self.actionSave.setText(_translate("PyreeMainWindow", "Save"))
  180.         self.actionSave_as.setText(_translate("PyreeMainWindow", "Save as"))
  181.         self.actionNew_Project.setText(_translate("PyreeMainWindow", "New Project"))
  182.         self.actionExit.setText(_translate("PyreeMainWindow", "Exit"))
  183.         self.actionUndo.setText(_translate("PyreeMainWindow", "Undo"))
  184.         self.actionRedo.setText(_translate("PyreeMainWindow", "Redo"))
  185.         self.actionImport_sheet.setText(_translate("PyreeMainWindow", "Import sheet"))
RAW Paste Data
Want to get better at Python?
Learn to code Python in 2017
Top