Example #1
0
    def paintEvent(self, event):
        rect = QRect(10, 20, 80, 60)

        path = QPainterPath()
        path.moveTo(20, 80)
        path.lineTo(20, 30)
        path.cubicTo(80, 0, 50, 50, 80, 80)

        startAngle = 30 * 16
        arcLength = 120 * 16

        painter = QPainter(self)
        painter.setPen(self.pen)
        painter.setBrush(self.brush)
        if self.antialiased:
            painter.setRenderHint(QPainter.Antialiasing)

        for x in range(0, self.width(), 100):
            for y in range(0, self.height(), 100):
                painter.save()
                painter.translate(x, y)
                if self.transformed:
                    painter.translate(50, 50)
                    painter.rotate(60.0)
                    painter.scale(0.6, 0.9)
                    painter.translate(-50, -50)

                if self.shape == RenderArea.Line:
                    painter.drawLine(rect.bottomLeft(), rect.topRight())
                elif self.shape == RenderArea.Points:
                    painter.drawPoints(RenderArea.points)
                elif self.shape == RenderArea.Polyline:
                    painter.drawPolyline(RenderArea.points)
                elif self.shape == RenderArea.Polygon:
                    painter.drawPolygon(RenderArea.points)
                elif self.shape == RenderArea.Rect:
                    painter.drawRect(rect)
                elif self.shape == RenderArea.RoundedRect:
                    painter.drawRoundedRect(rect, 25, 25, Qt.RelativeSize)
                elif self.shape == RenderArea.Ellipse:
                    painter.drawEllipse(rect)
                elif self.shape == RenderArea.Arc:
                    painter.drawArc(rect, startAngle, arcLength)
                elif self.shape == RenderArea.Chord:
                    painter.drawChord(rect, startAngle, arcLength)
                elif self.shape == RenderArea.Pie:
                    painter.drawPie(rect, startAngle, arcLength)
                elif self.shape == RenderArea.Path:
                    painter.drawPath(path)
                elif self.shape == RenderArea.Text:
                    painter.drawText(rect, Qt.AlignCenter,
                                     "PySide 2\nQt %s" % qVersion())
                elif self.shape == RenderArea.Pixmap:
                    painter.drawPixmap(10, 10, self.pixmap)

                painter.restore()

        painter.setPen(self.palette().dark().color())
        painter.setBrush(Qt.NoBrush)
        painter.drawRect(QRect(0, 0, self.width() - 1, self.height() - 1))
Example #2
0
    def paintEvent(self, event):
        super(PixmapWidget, self).paintEvent(event)
        if not self.pixmap or self.pixmap.isNull():
            return
        p = QPainter(self)

        source = QRect(0, 0, self.pixmap.width(), self.pixmap.height())

        sw = float(source.width())
        sh = float(source.height())
        tw = float(self.width())+1
        th = float(self.height())+1
        tx = 0
        ty = 0
        if sw/tw > sh/th:
            ntw = tw
            nth = sh/sw*tw
            ty = (th-nth)/2
        else:
            nth = th
            ntw = sw/sh*th
            tx = (tw-ntw)/2

        target = QRect(tx, ty, ntw, nth)

        p.setBrush(self.bgBrush)
        p.setPen(self.bgPen)
        p.drawRect(self.rect())

        p.drawPixmap(target, self.pixmap, source)
Example #3
0
    def testGetCoordsAndRect(self):
        rect1 = QRect(1, 2, 3, 4)
        self.assertEqual(rect1.getRect(), (1, 2, 3, 4))
        self.assertEqual(rect1.getCoords(), (1, 2, 3, 5))

        rect1 = QRectF(1, 2, 3, 4)
        self.assertEqual(rect1.getRect(), (1, 2, 3, 4))
        self.assertEqual(rect1.getCoords(), (1, 2, 4, 6))
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(377, 472)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.verticalLayout = QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.formLayout = QFormLayout()
        self.formLayout.setObjectName(u"formLayout")
        self.label_2 = QLabel(self.centralwidget)
        self.label_2.setObjectName(u"label_2")

        self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_2)

        self.label = QLabel(self.centralwidget)
        self.label.setObjectName(u"label")

        self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label)

        self.nombre = QLineEdit(self.centralwidget)
        self.nombre.setObjectName(u"nombre")

        self.formLayout.setWidget(0, QFormLayout.FieldRole, self.nombre)

        self.label_3 = QLabel(self.centralwidget)
        self.label_3.setObjectName(u"label_3")

        self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_3)

        self.Email = QLineEdit(self.centralwidget)
        self.Email.setObjectName(u"Email")

        self.formLayout.setWidget(1, QFormLayout.FieldRole, self.Email)

        self.Password = QLineEdit(self.centralwidget)
        self.Password.setObjectName(u"Password")

        self.formLayout.setWidget(2, QFormLayout.FieldRole, self.Password)


        self.verticalLayout.addLayout(self.formLayout)

        self.horizontalLayout_2 = QHBoxLayout()
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.Registrar = QPushButton(self.centralwidget)
        self.Registrar.setObjectName(u"Registrar")

        self.horizontalLayout_2.addWidget(self.Registrar)

        self.Buscar = QPushButton(self.centralwidget)
        self.Buscar.setObjectName(u"Buscar")

        self.horizontalLayout_2.addWidget(self.Buscar)

        self.Actualizar = QPushButton(self.centralwidget)
        self.Actualizar.setObjectName(u"Actualizar")

        self.horizontalLayout_2.addWidget(self.Actualizar)

        self.Eliminar = QPushButton(self.centralwidget)
        self.Eliminar.setObjectName(u"Eliminar")

        self.horizontalLayout_2.addWidget(self.Eliminar)


        self.verticalLayout.addLayout(self.horizontalLayout_2)

        self.cuadro = QTextEdit(self.centralwidget)
        self.cuadro.setObjectName(u"cuadro")

        self.verticalLayout.addWidget(self.cuadro)

        self.Limpiar = QPushButton(self.centralwidget)
        self.Limpiar.setObjectName(u"Limpiar")

        self.verticalLayout.addWidget(self.Limpiar)

        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 377, 21))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)

        QMetaObject.connectSlotsByName(MainWindow)
    def setupUi(self, Form):
        if not Form.objectName():
            Form.setObjectName(u"Form")
        Form.resize(294, 370)
        self.verticalLayout = QVBoxLayout(Form)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.item_name_label = QLabel(Form)
        self.item_name_label.setObjectName(u"item_name_label")
        sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.item_name_label.sizePolicy().hasHeightForWidth())
        self.item_name_label.setSizePolicy(sizePolicy)
        self.item_name_label.setMinimumSize(QSize(0, 20))
        self.item_name_label.setMaximumSize(QSize(16777215, 20))
        font = QFont()
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.item_name_label.setFont(font)
        self.item_name_label.setStyleSheet(u"background-color: #ecd8c6;")
        self.item_name_label.setFrameShape(QFrame.Box)
        self.item_name_label.setFrameShadow(QFrame.Sunken)
        self.item_name_label.setAlignment(Qt.AlignCenter)
        self.item_name_label.setWordWrap(True)

        self.verticalLayout.addWidget(self.item_name_label)

        self.scrollArea_6 = QScrollArea(Form)
        self.scrollArea_6.setObjectName(u"scrollArea_6")
        self.scrollArea_6.setWidgetResizable(True)
        self.scrollAreaWidgetContents_5 = QWidget()
        self.scrollAreaWidgetContents_5.setObjectName(
            u"scrollAreaWidgetContents_5")
        self.scrollAreaWidgetContents_5.setGeometry(QRect(0, 0, 292, 348))
        self.verticalLayout_21 = QVBoxLayout(self.scrollAreaWidgetContents_5)
        self.verticalLayout_21.setObjectName(u"verticalLayout_21")
        self.databases_list_layout = QVBoxLayout()
        self.databases_list_layout.setObjectName(u"databases_list_layout")

        self.verticalLayout_21.addLayout(self.databases_list_layout)

        self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum,
                                          QSizePolicy.Expanding)

        self.verticalLayout_21.addItem(self.verticalSpacer)

        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.cancel_on_error_check_box = QCheckBox(
            self.scrollAreaWidgetContents_5)
        self.cancel_on_error_check_box.setObjectName(
            u"cancel_on_error_check_box")
        self.cancel_on_error_check_box.setChecked(True)

        self.horizontalLayout.addWidget(self.cancel_on_error_check_box)

        self.verticalLayout_21.addLayout(self.horizontalLayout)

        self.line_6 = QFrame(self.scrollAreaWidgetContents_5)
        self.line_6.setObjectName(u"line_6")
        self.line_6.setFrameShape(QFrame.HLine)
        self.line_6.setFrameShadow(QFrame.Sunken)

        self.verticalLayout_21.addWidget(self.line_6)

        self.horizontalLayout_13 = QHBoxLayout()
        self.horizontalLayout_13.setObjectName(u"horizontalLayout_13")
        self.horizontalSpacer_17 = QSpacerItem(40, 20, QSizePolicy.Expanding,
                                               QSizePolicy.Minimum)

        self.horizontalLayout_13.addItem(self.horizontalSpacer_17)

        self.open_directory_button = QToolButton(
            self.scrollAreaWidgetContents_5)
        self.open_directory_button.setObjectName(u"open_directory_button")
        sizePolicy1 = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
        sizePolicy1.setHorizontalStretch(0)
        sizePolicy1.setVerticalStretch(0)
        sizePolicy1.setHeightForWidth(
            self.open_directory_button.sizePolicy().hasHeightForWidth())
        self.open_directory_button.setSizePolicy(sizePolicy1)
        self.open_directory_button.setMinimumSize(QSize(22, 22))
        self.open_directory_button.setMaximumSize(QSize(22, 22))
        icon = QIcon()
        icon.addFile(u":/icons/menu_icons/folder-open-solid.svg", QSize(),
                     QIcon.Normal, QIcon.Off)
        self.open_directory_button.setIcon(icon)

        self.horizontalLayout_13.addWidget(self.open_directory_button)

        self.verticalLayout_21.addLayout(self.horizontalLayout_13)

        self.scrollArea_6.setWidget(self.scrollAreaWidgetContents_5)

        self.verticalLayout.addWidget(self.scrollArea_6)

        self.retranslateUi(Form)

        QMetaObject.connectSlotsByName(Form)
Example #6
0
    def draw(self, qp):
        qp.setWindow(0, 0, self.width(), self.height())  # 设置窗口
        # 画框架背景
        qp.setBrush(QColor('#cecece'))  # 框架背景色
        qp.setPen(Qt.NoPen)
        rect = QRect(0, 0, self.width(), self.height())
        qp.drawRect(rect)

        sw, sh = self.width(), self.height()  # 图像窗口宽高
        sh -= 40
        pw, ph = 0, 0  # 缩放后的QPixmap大小

        # 画图
        yh = 0
        if self.image is not None:
            ih, iw, _ = self.image.shape
            self.scale = sw / iw if sw / iw < sh / ih else sh / ih  # 缩放比例
            yh = round((self.height() - 40 - ih * self.scale) / 2)
            #print(yh)
            qimage = QImage(self.image.data, iw, ih, 3 * iw,
                            QImage.Format_RGB888)  # 转QImage
            qpixmap = QPixmap.fromImage(
                qimage.scaled(self.width(),
                              self.height() - 40,
                              Qt.KeepAspectRatio))  # 转QPixmap
            pw, ph = qpixmap.width(), qpixmap.height()
            qp.drawPixmap(0, yh + 40, qpixmap)

        font = QFont()
        font.setFamily('Microsoft YaHei')
        if self.fps > 0:
            font.setPointSize(14)
            qp.setFont(font)
            pen = QPen()
            pen.setColor(Qt.white)
            qp.setPen(pen)
            qp.drawText(self.width() - 150, 20,
                        'FPS: ' + str(round(self.fps, 2)))

        # 画目标框
        pen = QPen()
        pen.setWidth(2)  # 边框宽度
        person = 0
        hat = 0
        for obj in self.objects:
            if obj["class"] == "person":
                person += 1
            else:
                hat += 1
            font.setPointSize(10)
            qp.setFont(font)
            rgb = [round(c) for c in obj['color']]
            pen.setColor(QColor(rgb[0], rgb[1], rgb[2]))  # 边框颜色
            brush1 = QBrush(Qt.NoBrush)  # 内部不填充
            qp.setBrush(brush1)
            qp.setPen(pen)
            # 坐标 宽高
            tx, ty = round(pw * obj['x']), yh + round(ph * obj['y'])
            tw, th = round(pw * obj['w']), round(ph * obj['h'])
            obj_rect = QRect(tx, ty + 40, tw, th)
            qp.drawRect(obj_rect)  # 画矩形框
            # 画 类别 和 置信度
            qp.drawText(tx, ty + 40 - 5,
                        str(obj['class']) + str(round(obj['confidence'], 2)))
        if self.fps > 0:
            pen = QPen()
            pen.setColor(Qt.red)
            font.setPointSize(14)
            qp.setFont(font)
            qp.setPen(pen)
            qp.drawText(0, 20, "there are {0} person".format(person + hat))
            qp.drawText(
                0, 40, "{0} people did not wear safety helmets".format(person))
Example #7
0
    def main_ui(self):
        self.setGeometry(QRect(40, 100, 714, 537))
        self.setFixedSize(714, 537)
        self.setStyleSheet("background-color: rgb(50, 50, 55);\n"
                           "font: 12pt \"Roboto\";\n"
                           "color: rgb(255, 255, 255);")

        self.centralwidget = QWidget(self)

        self.horizontalLayoutWidget = QWidget(self.centralwidget)
        self.horizontalLayoutWidget.setGeometry(QRect(10, 0, 641, 71))
        self.sender_email = QHBoxLayout(self.horizontalLayoutWidget)
        self.sender_email.setSpacing(10)
        self.sender_email.setContentsMargins(0, 10, 10, 10)
        self.label = QLabel(self.horizontalLayoutWidget)
        self.label_2 = QLabel(self.horizontalLayoutWidget)
        self.label_2.setText("Sender's Email Account        ")
        self.sender_email_edit = QLineEdit(self.horizontalLayoutWidget)
        self.sender_email_edit.setMinimumSize(QSize(0, 40))

        self.sender_email.addWidget(self.label)
        self.sender_email.addWidget(self.label_2)
        self.sender_email.addWidget(self.sender_email_edit)

        self.horizontalLayoutWidget_2 = QWidget(self.centralwidget)
        self.horizontalLayoutWidget_2.setGeometry(QRect(10, 90, 641, 61))
        self.reciever_email = QHBoxLayout(self.horizontalLayoutWidget_2)
        self.reciever_email.setContentsMargins(10, 10, 10, 10)
        self.label_3 = QLabel(self.horizontalLayoutWidget_2)
        self.label_3.setText("Receiver's Email Account         ")
        self.receiver = QLineEdit(self.horizontalLayoutWidget_2)
        self.receiver.setMinimumSize(QSize(0, 40))

        self.reciever_email.addWidget(self.label_3)
        self.reciever_email.addWidget(self.receiver)

        self.horizontalLayoutWidget_3 = QWidget(self.centralwidget)
        self.horizontalLayoutWidget_3.setGeometry(QRect(10, 170, 641, 221))
        self.message_layout = QHBoxLayout(self.horizontalLayoutWidget_3)
        self.message_layout.setContentsMargins(10, 10, 10, 10)
        self.label_5 = QLabel(self.horizontalLayoutWidget_3)
        self.label_5.setText("Your message:                           ")
        self.message = QTextEdit(self.horizontalLayoutWidget_3)

        self.message_layout.addWidget(self.label_5)
        self.message_layout.addWidget(self.message)

        self.label_4 = QLabel(self.centralwidget)
        self.label_4.setObjectName(u"label_4")
        self.label_4.setGeometry(QRect(10, 460, 641, 41))
        self.label_4.setText(
            "A tip: Just type \"default\" as Sender's email account")

        self.go_button = QPushButton(self.centralwidget)
        self.go_button.setGeometry(QRect(430, 400, 211, 31))
        self.go_button.setText("Let\'s Go")
        self.go_button.clicked.connect(lambda: self.send_email())

        self.setCentralWidget(self.centralwidget)

        self.menubar = QMenuBar(self)
        self.menubar.setGeometry(QRect(0, 0, 667, 26))
        self.setMenuBar(self.menubar)

        self.statusbar = QStatusBar(self)
        self.setStatusBar(self.statusbar)

        QMetaObject.connectSlotsByName(self)
Example #8
0
    def setupUi(self, MainWindow):
        if MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(796, 883)
        MainWindow.setInputMethodHints(Qt.ImhLatinOnly)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.TITLE = QLabel(self.centralwidget)
        self.TITLE.setObjectName(u"TITLE")
        self.TITLE.setGeometry(QRect(90, 20, 621, 31))
        font = QFont()
        font.setFamily(u"Segoe UI Black")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.TITLE.setFont(font)
        self.TITLE_2 = QLabel(self.centralwidget)
        self.TITLE_2.setObjectName(u"TITLE_2")
        self.TITLE_2.setGeometry(QRect(310, 60, 621, 31))
        self.TITLE_2.setFont(font)
        self.IP_LABEL = QLabel(self.centralwidget)
        self.IP_LABEL.setObjectName(u"IP_LABEL")
        self.IP_LABEL.setGeometry(QRect(100, 150, 71, 31))
        self.IP_LABEL.setFont(font)
        self.PORT_LABEL = QLabel(self.centralwidget)
        self.PORT_LABEL.setObjectName(u"PORT_LABEL")
        self.PORT_LABEL.setGeometry(QRect(410, 110, 121, 31))
        self.PORT_LABEL.setFont(font)
        self.IP = QTextEdit(self.centralwidget)
        self.IP.setObjectName(u"IP")
        self.IP.setGeometry(QRect(150, 150, 121, 31))
        font1 = QFont()
        font1.setFamily(u"Segoe UI Black")
        font1.setPointSize(9)
        font1.setBold(True)
        font1.setWeight(75)
        self.IP.setFont(font1)
        self.IP.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.IP.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.PORT_RX = QTextEdit(self.centralwidget)
        self.PORT_RX.setObjectName(u"PORT_RX")
        self.PORT_RX.setGeometry(QRect(550, 110, 121, 31))
        self.PORT_RX.setFont(font1)
        self.PORT_RX.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.PORT_RX.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.CREARESOCKET = QPushButton(self.centralwidget)
        self.CREARESOCKET.setObjectName(u"CREARESOCKET")
        self.CREARESOCKET.setGeometry(QRect(320, 260, 141, 31))
        font2 = QFont()
        font2.setFamily(u"Segoe UI")
        font2.setPointSize(10)
        font2.setBold(True)
        font2.setWeight(75)
        self.CREARESOCKET.setFont(font2)
        self.CREARESOCKETSTATUS = QLabel(self.centralwidget)
        self.CREARESOCKETSTATUS.setObjectName(u"CREARESOCKETSTATUS")
        self.CREARESOCKETSTATUS.setGeometry(QRect(290, 320, 271, 31))
        font3 = QFont()
        font3.setFamily(u"Segoe UI Black")
        font3.setPointSize(10)
        font3.setBold(True)
        font3.setWeight(75)
        self.CREARESOCKETSTATUS.setFont(font3)
        self.SELECTFILELABEL = QLabel(self.centralwidget)
        self.SELECTFILELABEL.setObjectName(u"SELECTFILELABEL")
        self.SELECTFILELABEL.setGeometry(QRect(100, 380, 171, 16))
        font4 = QFont()
        font4.setFamily(u"Segoe UI Black")
        font4.setPointSize(11)
        font4.setBold(True)
        font4.setWeight(75)
        self.SELECTFILELABEL.setFont(font4)
        self.SELECTFILE_TEXT = QTextEdit(self.centralwidget)
        self.SELECTFILE_TEXT.setObjectName(u"SELECTFILE_TEXT")
        self.SELECTFILE_TEXT.setEnabled(True)
        self.SELECTFILE_TEXT.setGeometry(QRect(280, 370, 271, 31))
        self.SELECTFILE_TEXT.setFont(font1)
        self.SELECTFILE_TEXT.setMouseTracking(False)
        self.SELECTFILE_TEXT.setAcceptDrops(False)
        self.SELECTFILE_TEXT.setInputMethodHints(Qt.ImhMultiLine)
        self.SELECTFILE_TEXT.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.SELECTFILE_TEXT.setHorizontalScrollBarPolicy(
            Qt.ScrollBarAlwaysOff)
        self.SELECTFILE_TEXT.setSizeAdjustPolicy(
            QAbstractScrollArea.AdjustToContents)
        self.BROWSE_FILE = QPushButton(self.centralwidget)
        self.BROWSE_FILE.setObjectName(u"BROWSE_FILE")
        self.BROWSE_FILE.setGeometry(QRect(570, 370, 101, 31))
        font5 = QFont()
        font5.setFamily(u"Segoe UI Black")
        font5.setBold(True)
        font5.setWeight(75)
        self.BROWSE_FILE.setFont(font5)
        self.IP_OK = QPushButton(self.centralwidget)
        self.IP_OK.setObjectName(u"IP_OK")
        self.IP_OK.setGeometry(QRect(290, 150, 51, 28))
        self.IP_OK.setFont(font1)
        self.PORT_OK_RX = QPushButton(self.centralwidget)
        self.PORT_OK_RX.setObjectName(u"PORT_OK_RX")
        self.PORT_OK_RX.setGeometry(QRect(690, 110, 41, 28))
        self.PORT_OK_RX.setFont(font1)
        self.START = QPushButton(self.centralwidget)
        self.START.setObjectName(u"START")
        self.START.setGeometry(QRect(550, 470, 171, 31))
        self.START.setFont(font1)
        self.CONSOLE = QTextEdit(self.centralwidget)
        self.CONSOLE.setObjectName(u"CONSOLE")
        self.CONSOLE.setGeometry(QRect(40, 530, 721, 291))
        font6 = QFont()
        font6.setFamily(u"Times New Roman")
        font6.setPointSize(9)
        font6.setBold(False)
        font6.setWeight(50)
        self.CONSOLE.setFont(font6)
        self.CONSOLE.setContextMenuPolicy(Qt.ActionsContextMenu)
        self.CONSOLE.setToolTipDuration(-1)
        self.CONSOLE.setTabChangesFocus(True)
        self.PORT_TX = QTextEdit(self.centralwidget)
        self.PORT_TX.setObjectName(u"PORT_TX")
        self.PORT_TX.setGeometry(QRect(550, 180, 121, 31))
        self.PORT_TX.setFont(font1)
        self.PORT_TX.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.PORT_TX.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.PORT_OK_TX = QPushButton(self.centralwidget)
        self.PORT_OK_TX.setObjectName(u"PORT_OK_TX")
        self.PORT_OK_TX.setGeometry(QRect(690, 180, 41, 28))
        self.PORT_OK_TX.setFont(font1)
        self.PORT_LABEL_2 = QLabel(self.centralwidget)
        self.PORT_LABEL_2.setObjectName(u"PORT_LABEL_2")
        self.PORT_LABEL_2.setGeometry(QRect(410, 180, 131, 31))
        self.PORT_LABEL_2.setFont(font)
        self.LABEL_PPP = QTextEdit(self.centralwidget)
        self.LABEL_PPP.setObjectName(u"LABEL_PPP")
        self.LABEL_PPP.setGeometry(QRect(280, 470, 121, 31))
        self.LABEL_PPP.setFont(font1)
        self.LABEL_PPP.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.LABEL_PPP.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.PORT_OK_PPP = QPushButton(self.centralwidget)
        self.PORT_OK_PPP.setObjectName(u"PORT_OK_PPP")
        self.PORT_OK_PPP.setGeometry(QRect(420, 470, 41, 28))
        self.PORT_OK_PPP.setFont(font1)
        self.PORT_LABEL_ = QLabel(self.centralwidget)
        self.PORT_LABEL_.setObjectName(u"PORT_LABEL_")
        self.PORT_LABEL_.setGeometry(QRect(50, 440, 331, 31))
        font7 = QFont()
        font7.setFamily(u"Segoe UI Black")
        font7.setPointSize(12)
        font7.setBold(True)
        font7.setWeight(75)
        self.PORT_LABEL_.setFont(font7)
        self.PORT_LABEL_4 = QLabel(self.centralwidget)
        self.PORT_LABEL_4.setObjectName(u"PORT_LABEL_4")
        self.PORT_LABEL_4.setGeometry(QRect(50, 470, 201, 31))
        self.PORT_LABEL_4.setFont(font7)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 796, 26))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)

        QMetaObject.connectSlotsByName(MainWindow)
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(370, 391)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.servidorGBox = QGroupBox(self.centralwidget)
        self.servidorGBox.setObjectName(u"servidorGBox")
        self.servidorGBox.setGeometry(QRect(0, 0, 371, 91))
        font = QFont()
        font.setPointSize(10)
        self.servidorGBox.setFont(font)
        self.ipLabel = QLabel(self.servidorGBox)
        self.ipLabel.setObjectName(u"ipLabel")
        self.ipLabel.setGeometry(QRect(10, 30, 21, 16))
        self.ipLineEdit = QLineEdit(self.servidorGBox)
        self.ipLineEdit.setObjectName(u"ipLineEdit")
        self.ipLineEdit.setGeometry(QRect(40, 30, 113, 21))
        self.puertoLabel = QLabel(self.servidorGBox)
        self.puertoLabel.setObjectName(u"puertoLabel")
        self.puertoLabel.setGeometry(QRect(200, 30, 41, 16))
        self.puertoLineEdit = QLineEdit(self.servidorGBox)
        self.puertoLineEdit.setObjectName(u"puertoLineEdit")
        self.puertoLineEdit.setGeometry(QRect(250, 30, 113, 21))
        self.conectarButton = QPushButton(self.servidorGBox)
        self.conectarButton.setObjectName(u"conectarButton")
        self.conectarButton.setGeometry(QRect(10, 60, 351, 22))
        self.estudianteGBox = QGroupBox(self.centralwidget)
        self.estudianteGBox.setObjectName(u"estudianteGBox")
        self.estudianteGBox.setGeometry(QRect(0, 100, 371, 151))
        self.estudianteGBox.setFont(font)
        self.nombreLabel = QLabel(self.estudianteGBox)
        self.nombreLabel.setObjectName(u"nombreLabel")
        self.nombreLabel.setGeometry(QRect(10, 30, 51, 16))
        self.nombreLineEdit = QLineEdit(self.estudianteGBox)
        self.nombreLineEdit.setObjectName(u"nombreLineEdit")
        self.nombreLineEdit.setGeometry(QRect(90, 30, 271, 21))
        self.correoLineEdit = QLineEdit(self.estudianteGBox)
        self.correoLineEdit.setObjectName(u"correoLineEdit")
        self.correoLineEdit.setGeometry(QRect(90, 60, 271, 21))
        self.contraseniaLineEdit = QLineEdit(self.estudianteGBox)
        self.contraseniaLineEdit.setObjectName(u"contraseniaLineEdit")
        self.contraseniaLineEdit.setGeometry(QRect(90, 90, 271, 21))
        self.correoLabel = QLabel(self.estudianteGBox)
        self.correoLabel.setObjectName(u"correoLabel")
        self.correoLabel.setGeometry(QRect(10, 60, 47, 14))
        self.contraseniaLabel = QLabel(self.estudianteGBox)
        self.contraseniaLabel.setObjectName(u"contraseniaLabel")
        self.contraseniaLabel.setGeometry(QRect(10, 90, 71, 16))
        self.enviarEButton = QPushButton(self.estudianteGBox)
        self.enviarEButton.setObjectName(u"enviarEButton")
        self.enviarEButton.setGeometry(QRect(10, 120, 351, 22))
        self.archivoGBox = QGroupBox(self.centralwidget)
        self.archivoGBox.setObjectName(u"archivoGBox")
        self.archivoGBox.setGeometry(QRect(0, 260, 371, 91))
        self.archivoGBox.setFont(font)
        self.buscarButton = QPushButton(self.archivoGBox)
        self.buscarButton.setObjectName(u"buscarButton")
        self.buscarButton.setGeometry(QRect(10, 30, 80, 22))
        self.buscarLineEdit = QLineEdit(self.archivoGBox)
        self.buscarLineEdit.setObjectName(u"buscarLineEdit")
        self.buscarLineEdit.setGeometry(QRect(100, 30, 261, 21))
        self.enviarAButton = QPushButton(self.archivoGBox)
        self.enviarAButton.setObjectName(u"enviarAButton")
        self.enviarAButton.setGeometry(QRect(10, 60, 351, 22))
        self.horizontalLayoutWidget = QWidget(self.centralwidget)
        self.horizontalLayoutWidget.setObjectName(u"horizontalLayoutWidget")
        self.horizontalLayoutWidget.setGeometry(QRect(0, 360, 371, 31))
        self.estadoLayout = QHBoxLayout(self.horizontalLayoutWidget)
        self.estadoLayout.setObjectName(u"estadoLayout")
        self.estadoLayout.setContentsMargins(0, 0, 0, 0)
        self.estadoLabel = QLabel(self.horizontalLayoutWidget)
        self.estadoLabel.setObjectName(u"estadoLabel")
        self.estadoLabel.setFont(font)

        self.estadoLayout.addWidget(self.estadoLabel, 0, Qt.AlignRight)

        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)

        QMetaObject.connectSlotsByName(MainWindow)
    def setupUi(self, Form):
        if not Form.objectName():
            Form.setObjectName(u"Form")
        Form.resize(515, 357)
        self.gridLayoutWidget = QWidget(Form)
        self.gridLayoutWidget.setObjectName(u"gridLayoutWidget")
        self.gridLayoutWidget.setGeometry(QRect(10, 0, 491, 331))
        self.gridLayout = QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setObjectName(u"gridLayout")
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.lineEdit_pass = QLineEdit(self.gridLayoutWidget)
        self.lineEdit_pass.setObjectName(u"lineEdit_pass")

        self.gridLayout.addWidget(self.lineEdit_pass, 5, 1, 1, 1)

        self.verticalSpacer_4 = QSpacerItem(20, 40, QSizePolicy.Minimum,
                                            QSizePolicy.Expanding)

        self.gridLayout.addItem(self.verticalSpacer_4, 6, 1, 1, 1)

        self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Minimum,
                                            QSizePolicy.Expanding)

        self.gridLayout.addItem(self.verticalSpacer_2, 8, 1, 1, 1)

        self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding,
                                            QSizePolicy.Minimum)

        self.gridLayout.addItem(self.horizontalSpacer, 0, 0, 1, 1)

        self.lineEdit_login = QLineEdit(self.gridLayoutWidget)
        self.lineEdit_login.setObjectName(u"lineEdit_login")

        self.gridLayout.addWidget(self.lineEdit_login, 2, 1, 1, 1)

        self.label_enter_log_and_pass = QLabel(self.gridLayoutWidget)
        self.label_enter_log_and_pass.setObjectName(
            u"label_enter_log_and_pass")

        self.gridLayout.addWidget(self.label_enter_log_and_pass, 0, 1, 1, 1)

        self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum,
                                          QSizePolicy.Expanding)

        self.gridLayout.addItem(self.verticalSpacer, 3, 1, 1, 1)

        self.label_pass = QLabel(self.gridLayoutWidget)
        self.label_pass.setObjectName(u"label_pass")

        self.gridLayout.addWidget(self.label_pass, 4, 1, 1, 1)

        self.label_login = QLabel(self.gridLayoutWidget)
        self.label_login.setObjectName(u"label_login")

        self.gridLayout.addWidget(self.label_login, 1, 1, 1, 1)

        self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding,
                                              QSizePolicy.Minimum)

        self.gridLayout.addItem(self.horizontalSpacer_3, 0, 2, 1, 1)

        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding,
                                              QSizePolicy.Minimum)

        self.horizontalLayout.addItem(self.horizontalSpacer_2)

        self.pushButton_enter = QPushButton(self.gridLayoutWidget)
        self.pushButton_enter.setObjectName(u"pushButton_enter")

        self.horizontalLayout.addWidget(self.pushButton_enter)

        self.horizontalSpacer_4 = QSpacerItem(40, 20, QSizePolicy.Expanding,
                                              QSizePolicy.Minimum)

        self.horizontalLayout.addItem(self.horizontalSpacer_4)

        self.gridLayout.addLayout(self.horizontalLayout, 7, 1, 1, 1)

        self.pushButton_settings = QPushButton(self.gridLayoutWidget)
        self.pushButton_settings.setObjectName(u"pushButton_settings")

        self.gridLayout.addWidget(self.pushButton_settings, 8, 2, 1, 1)

        self.retranslateUi(Form)

        QMetaObject.connectSlotsByName(Form)
Example #11
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(207, 503)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QVBoxLayout(self.centralwidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QWidget(self.centralwidget)
        self.widget.setObjectName("widget")
        self.head = QLabel(self.widget)
        self.head.setGeometry(QRect(0, -40, 201, 261))
        self.head.setText("")
        self.head.setPixmap(QPixmap("images/cat-head-glasses.png"))
        self.head.setAlignment(Qt.AlignCenter)
        self.head.setObjectName("head")
        self.verticalLayoutWidget = QWidget(self.widget)
        self.verticalLayoutWidget.setGeometry(QRect(90, 232, 81, 131))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.fileBar = QVBoxLayout(self.verticalLayoutWidget)
        self.fileBar.setContentsMargins(0, 0, 0, 0)
        self.fileBar.setSpacing(0)
        self.fileBar.setObjectName("fileBar")
        self.progress_1 = QLabel(self.verticalLayoutWidget)
        font = QFont()
        font.setPointSize(8)
        self.progress_1.setFont(font)
        self.progress_1.setStyleSheet("QLabel {\n"
                                      "   background-color: rgb(233,30,99);\n"
                                      "border: 2px solid rgb(194,24,91);\n"
                                      "color: rgb(136,14,79);\n"
                                      "}")
        self.progress_1.setAlignment(Qt.AlignCenter)
        self.progress_1.setObjectName("progress_1")
        self.fileBar.addWidget(self.progress_1)
        self.progress_2 = QLabel(self.verticalLayoutWidget)
        font = QFont()
        font.setPointSize(8)
        self.progress_2.setFont(font)
        self.progress_2.setStyleSheet("QLabel {\n"
                                      "   background-color: rgb(233,30,99);\n"
                                      "border: 2px solid rgb(194,24,91);\n"
                                      "color: rgb(136,14,79);\n"
                                      "}")
        self.progress_2.setAlignment(Qt.AlignCenter)
        self.progress_2.setObjectName("progress_2")
        self.fileBar.addWidget(self.progress_2)
        self.progress_3 = QLabel(self.verticalLayoutWidget)
        font = QFont()
        font.setPointSize(8)
        self.progress_3.setFont(font)
        self.progress_3.setStyleSheet("QLabel {\n"
                                      "   background-color: rgb(233,30,99);\n"
                                      "border: 2px solid rgb(194,24,91);\n"
                                      "color: rgb(136,14,79);\n"
                                      "}")
        self.progress_3.setAlignment(Qt.AlignCenter)
        self.progress_3.setObjectName("progress_3")
        self.fileBar.addWidget(self.progress_3)
        self.progress_4 = QLabel(self.verticalLayoutWidget)
        font = QFont()
        font.setPointSize(8)
        self.progress_4.setFont(font)
        self.progress_4.setStyleSheet("QLabel {\n"
                                      "   background-color: rgb(233,30,99);\n"
                                      "border: 2px solid rgb(194,24,91);\n"
                                      "color: rgb(136,14,79);\n"
                                      "}")
        self.progress_4.setAlignment(Qt.AlignCenter)
        self.progress_4.setObjectName("progress_4")
        self.fileBar.addWidget(self.progress_4)
        self.progress_5 = QLabel(self.verticalLayoutWidget)
        font = QFont()
        font.setPointSize(8)
        self.progress_5.setFont(font)
        self.progress_5.setStyleSheet("QLabel {\n"
                                      "   background-color: rgb(233,30,99);\n"
                                      "border: 2px solid rgb(194,24,91);\n"
                                      "color: rgb(136,14,79);\n"
                                      "}")
        self.progress_5.setAlignment(Qt.AlignCenter)
        self.progress_5.setObjectName("progress_5")
        self.fileBar.addWidget(self.progress_5)
        self.progress_6 = QLabel(self.verticalLayoutWidget)
        font = QFont()
        font.setPointSize(8)
        self.progress_6.setFont(font)
        self.progress_6.setStyleSheet("QLabel {\n"
                                      "   background-color: rgb(233,30,99);\n"
                                      "border: 2px solid rgb(194,24,91);\n"
                                      "color: rgb(136,14,79);\n"
                                      "}")
        self.progress_6.setAlignment(Qt.AlignCenter)
        self.progress_6.setObjectName("progress_6")
        self.fileBar.addWidget(self.progress_6)
        self.progress_7 = QLabel(self.verticalLayoutWidget)
        font = QFont()
        font.setPointSize(8)
        self.progress_7.setFont(font)
        self.progress_7.setStyleSheet("QLabel {\n"
                                      "   background-color: rgb(233,30,99);\n"
                                      "border: 2px solid rgb(194,24,91);\n"
                                      "color: rgb(136,14,79);\n"
                                      "}")
        self.progress_7.setAlignment(Qt.AlignCenter)
        self.progress_7.setObjectName("progress_7")
        self.fileBar.addWidget(self.progress_7)
        self.progress_8 = QLabel(self.verticalLayoutWidget)
        font = QFont()
        font.setPointSize(8)
        self.progress_8.setFont(font)
        self.progress_8.setStyleSheet("QLabel {\n"
                                      "   background-color: rgb(233,30,99);\n"
                                      "border: 2px solid rgb(194,24,91);\n"
                                      "color: rgb(136,14,79);\n"
                                      "}")
        self.progress_8.setAlignment(Qt.AlignCenter)
        self.progress_8.setObjectName("progress_8")
        self.fileBar.addWidget(self.progress_8)
        self.progress_9 = QLabel(self.verticalLayoutWidget)
        font = QFont()
        font.setPointSize(8)
        self.progress_9.setFont(font)
        self.progress_9.setStyleSheet("QLabel {\n"
                                      "   background-color: rgb(233,30,99);\n"
                                      "border: 2px solid rgb(194,24,91);\n"
                                      "color: rgb(136,14,79);\n"
                                      "}")
        self.progress_9.setAlignment(Qt.AlignCenter)
        self.progress_9.setObjectName("progress_9")
        self.fileBar.addWidget(self.progress_9)
        self.progress_10 = QLabel(self.verticalLayoutWidget)
        font = QFont()
        font.setPointSize(8)
        self.progress_10.setFont(font)
        self.progress_10.setStyleSheet("QLabel {\n"
                                       "   background-color: rgb(233,30,99);\n"
                                       "border: 2px solid rgb(194,24,91);\n"
                                       "color: rgb(136,14,79);\n"
                                       "}")
        self.progress_10.setAlignment(Qt.AlignCenter)
        self.progress_10.setObjectName("progress_10")
        self.fileBar.addWidget(self.progress_10)
        self.body = QLabel(self.widget)
        self.body.setGeometry(QRect(20, 120, 191, 381))
        self.body.setText("")
        self.body.setPixmap(QPixmap("images/cat-body-space.png"))
        self.body.setObjectName("body")
        self.verticalLayoutWidget.raise_()
        self.body.raise_()
        self.head.raise_()
        self.verticalLayout.addWidget(self.widget)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        QMetaObject.connectSlotsByName(MainWindow)
Example #12
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1201, 635)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.top_frame = QFrame(self.centralwidget)
        self.top_frame.setGeometry(QRect(0, 0, 1211, 51))
        palette = QPalette()
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.WindowText, brush)
        brush = QBrush(QColor(243, 249, 251))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Button, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Light, brush)
        brush = QBrush(QColor(249, 252, 253))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Midlight, brush)
        brush = QBrush(QColor(121, 124, 125))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Dark, brush)
        brush = QBrush(QColor(162, 166, 167))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Mid, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Text, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.BrightText, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.ButtonText, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Base, brush)
        brush = QBrush(QColor(243, 249, 251))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Window, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Shadow, brush)
        brush = QBrush(QColor(249, 252, 253))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.AlternateBase, brush)
        brush = QBrush(QColor(255, 255, 220))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.ToolTipBase, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.ToolTipText, brush)
        brush = QBrush(QColor(0, 0, 0, 128))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.PlaceholderText, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
        brush = QBrush(QColor(243, 249, 251))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Button, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Light, brush)
        brush = QBrush(QColor(249, 252, 253))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Midlight, brush)
        brush = QBrush(QColor(121, 124, 125))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Dark, brush)
        brush = QBrush(QColor(162, 166, 167))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Mid, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Text, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.BrightText, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Base, brush)
        brush = QBrush(QColor(243, 249, 251))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Window, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Shadow, brush)
        brush = QBrush(QColor(249, 252, 253))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush)
        brush = QBrush(QColor(255, 255, 220))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.ToolTipBase, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.ToolTipText, brush)
        brush = QBrush(QColor(0, 0, 0, 128))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.PlaceholderText, brush)
        brush = QBrush(QColor(121, 124, 125))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.WindowText, brush)
        brush = QBrush(QColor(243, 249, 251))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Button, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Light, brush)
        brush = QBrush(QColor(249, 252, 253))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Midlight, brush)
        brush = QBrush(QColor(121, 124, 125))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Dark, brush)
        brush = QBrush(QColor(162, 166, 167))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Mid, brush)
        brush = QBrush(QColor(121, 124, 125))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Text, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.BrightText, brush)
        brush = QBrush(QColor(121, 124, 125))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.ButtonText, brush)
        brush = QBrush(QColor(243, 249, 251))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Base, brush)
        brush = QBrush(QColor(243, 249, 251))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Window, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Shadow, brush)
        brush = QBrush(QColor(243, 249, 251))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush)
        brush = QBrush(QColor(255, 255, 220))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.ToolTipBase, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.ToolTipText, brush)
        brush = QBrush(QColor(0, 0, 0, 128))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.PlaceholderText, brush)
        self.top_frame.setPalette(palette)
        self.top_frame.setStyleSheet(
            "#top_frame{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/frames/top_frame.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "")
        self.top_frame.setFrameShape(QFrame.StyledPanel)
        self.top_frame.setFrameShadow(QFrame.Raised)
        self.top_frame.setObjectName("top_frame")
        self.push_original = QPushButton(self.top_frame)
        self.push_original.setGeometry(QRect(20, 10, 141, 41))
        palette = QPalette()
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.WindowText, brush)
        brush = QBrush(QColor(250, 255, 234))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Button, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Light, brush)
        brush = QBrush(QColor(252, 255, 244))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Midlight, brush)
        brush = QBrush(QColor(125, 127, 117))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Dark, brush)
        brush = QBrush(QColor(166, 170, 156))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Mid, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Text, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.BrightText, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.ButtonText, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Base, brush)
        brush = QBrush(QColor(250, 255, 234))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Window, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.Shadow, brush)
        brush = QBrush(QColor(252, 255, 244))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.AlternateBase, brush)
        brush = QBrush(QColor(255, 255, 220))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.ToolTipBase, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.ToolTipText, brush)
        brush = QBrush(QColor(0, 0, 0, 128))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.PlaceholderText, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
        brush = QBrush(QColor(250, 255, 234))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Button, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Light, brush)
        brush = QBrush(QColor(252, 255, 244))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Midlight, brush)
        brush = QBrush(QColor(125, 127, 117))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Dark, brush)
        brush = QBrush(QColor(166, 170, 156))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Mid, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Text, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.BrightText, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Base, brush)
        brush = QBrush(QColor(250, 255, 234))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Window, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.Shadow, brush)
        brush = QBrush(QColor(252, 255, 244))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush)
        brush = QBrush(QColor(255, 255, 220))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.ToolTipBase, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.ToolTipText, brush)
        brush = QBrush(QColor(0, 0, 0, 128))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Inactive, QPalette.PlaceholderText, brush)
        brush = QBrush(QColor(125, 127, 117))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.WindowText, brush)
        brush = QBrush(QColor(250, 255, 234))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Button, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Light, brush)
        brush = QBrush(QColor(252, 255, 244))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Midlight, brush)
        brush = QBrush(QColor(125, 127, 117))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Dark, brush)
        brush = QBrush(QColor(166, 170, 156))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Mid, brush)
        brush = QBrush(QColor(125, 127, 117))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Text, brush)
        brush = QBrush(QColor(255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.BrightText, brush)
        brush = QBrush(QColor(125, 127, 117))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.ButtonText, brush)
        brush = QBrush(QColor(250, 255, 234))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Base, brush)
        brush = QBrush(QColor(250, 255, 234))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Window, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.Shadow, brush)
        brush = QBrush(QColor(250, 255, 234))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush)
        brush = QBrush(QColor(255, 255, 220))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.ToolTipBase, brush)
        brush = QBrush(QColor(0, 0, 0))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.ToolTipText, brush)
        brush = QBrush(QColor(0, 0, 0, 128))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Disabled, QPalette.PlaceholderText, brush)
        self.push_original.setPalette(palette)
        self.push_original.setStyleSheet(
            "#push_original{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/buttons/original.png);\n"
            "background:none;\n"
            "border:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "#push_original:pressed\n"
            "{\n"
            "border-image:url(resources/buttons/original_videos.png)\n"
            "}")
        self.push_original.setText("")
        self.push_original.setObjectName("push_original")
        self.push_extracted = QPushButton(self.top_frame)
        self.push_extracted.setGeometry(QRect(160, 10, 141, 41))
        self.push_extracted.setStyleSheet(
            "#push_extracted{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/buttons/extracted.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "#push_extracted:pressed\n"
            "{\n"
            "border-image:url(resources/buttons/extracted_videos.png)\n"
            "}")
        self.push_extracted.setText("")
        self.push_extracted.setObjectName("push_extracted")
        self.second_mediaplayer = QFrame(self.centralwidget)
        self.second_mediaplayer.setGeometry(QRect(810, 50, 391, 301))
        self.second_mediaplayer.setStyleSheet(
            "#second_mediaplayer{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/frames/media_player.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "")
        self.second_mediaplayer.setFrameShape(QFrame.StyledPanel)
        self.second_mediaplayer.setFrameShadow(QFrame.Raised)
        self.second_mediaplayer.setObjectName("second_mediaplayer")
        self.first_mediaplayer = QFrame(self.centralwidget)
        self.first_mediaplayer.setGeometry(QRect(420, 50, 391, 301))
        self.first_mediaplayer.setStyleSheet(
            "#first_mediaplayer{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/frames/media_player.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "")
        self.first_mediaplayer.setFrameShape(QFrame.StyledPanel)
        self.first_mediaplayer.setFrameShadow(QFrame.Raised)
        self.first_mediaplayer.setObjectName("first_mediaplayer")
        self.view_file = QFrame(self.centralwidget)
        self.view_file.setGeometry(QRect(0, 50, 421, 301))
        self.view_file.setStyleSheet(
            "#view_file{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/frames/box_frame.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "")
        self.view_file.setFrameShape(QFrame.StyledPanel)
        self.view_file.setFrameShadow(QFrame.Raised)
        self.view_file.setObjectName("view_file")
        self.stackedWidget = QStackedWidget(self.view_file)
        self.stackedWidget.setGeometry(QRect(59, 9, 361, 281))
        self.stackedWidget.setObjectName("stackedWidget")
        self.original_filepage = QWidget()
        self.original_filepage.setObjectName("original_filepage")
        self.stackedWidget.addWidget(self.original_filepage)
        self.extracted_filepage = QWidget()
        self.extracted_filepage.setObjectName("extracted_filepage")
        self.stackedWidget.addWidget(self.extracted_filepage)
        self.push_add_files = QPushButton(self.view_file)
        self.push_add_files.setGeometry(QRect(0, 10, 61, 81))
        self.push_add_files.setStyleSheet(
            "#push_add_files{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/buttons/add_files.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "#push_add_files:pressed\n"
            "{\n"
            "border-image:url(resources/buttons/add_files_small.png)\n"
            "}")
        self.push_add_files.setText("")
        self.push_add_files.setObjectName("push_add_files")
        self.mini_viewer = QFrame(self.centralwidget)
        self.mini_viewer.setGeometry(QRect(0, 350, 1201, 291))
        self.mini_viewer.setStyleSheet(
            "#mini_viewer{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/frames/mini_viewer.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "")
        self.mini_viewer.setFrameShape(QFrame.StyledPanel)
        self.mini_viewer.setFrameShadow(QFrame.Raised)
        self.mini_viewer.setObjectName("mini_viewer")
        self.timeline_1 = QGraphicsView(self.mini_viewer)
        self.timeline_1.setGeometry(QRect(90, 20, 1091, 21))
        self.timeline_1.setStyleSheet(
            "#timeline_1{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/frames/timeline.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "")
        self.timeline_1.setObjectName("timeline_1")
        self.mini_view_1 = QGraphicsView(self.mini_viewer)
        self.mini_view_1.setGeometry(QRect(90, 50, 1091, 81))
        self.mini_view_1.setStyleSheet(
            "#mini_view_1{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/frames/mini_view.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "")
        self.mini_view_1.setObjectName("mini_view_1")
        self.timeline_2 = QGraphicsView(self.mini_viewer)
        self.timeline_2.setGeometry(QRect(90, 160, 1091, 21))
        self.timeline_2.setStyleSheet(
            "#timeline_2{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/frames/timeline.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}")
        self.timeline_2.setObjectName("timeline_2")
        self.mini_view_2 = QGraphicsView(self.mini_viewer)
        self.mini_view_2.setGeometry(QRect(90, 190, 1091, 81))
        self.mini_view_2.setStyleSheet(
            "#mini_view_2{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/frames/mini_view.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "")
        self.mini_view_2.setObjectName("mini_view_2")
        self.push_extract_1 = QPushButton(self.mini_viewer)
        self.push_extract_1.setGeometry(QRect(10, 20, 81, 31))
        self.push_extract_1.setStyleSheet(
            "#push_extract_1{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/buttons/extract.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "#push_extract_1:pressed\n"
            "{\n"
            "border-image:url(resources/buttons/extract_small.png)\n"
            "}")
        self.push_extract_1.setText("")
        self.push_extract_1.setObjectName("push_extract_1")
        self.push_extract_2 = QPushButton(self.mini_viewer)
        self.push_extract_2.setGeometry(QRect(10, 160, 81, 31))
        self.push_extract_2.setStyleSheet(
            "#push_extract_2{\n"
            "background-clolor:transparent;\n"
            "border-image:url(resources/buttons/extract.png);\n"
            "border:none;\n"
            "background:none;\n"
            "background-repeat:none;\n"
            "}\n"
            "#push_extract_2:pressed\n"
            "{\n"
            "border-image:url(resources/buttons/extract_small.png)\n"
            "}")
        self.push_extract_2.setText("")
        self.push_extract_2.setObjectName("push_extract_2")
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        self.stackedWidget.setCurrentIndex(0)
        QMetaObject.connectSlotsByName(MainWindow)
Example #13
0
 def paint(self, painter):
     painter.drawImage(QRect(0, 0, self.width(), self.height()), self.image)
Example #14
0
 def geometry(self):
     return QRect(self.geometry_rect)
class RandomWalker(object):
    MOVE_UP = 0
    MOVE_DOWN = 1
    MOVE_RIGHT = 2
    MOVE_LEFT = 3

    def __init__(self):
        self.rect = QRect()
        self.path = []
        self.start_pos = QVector2D()
        self.pos = QVector2D()
        self.resolution = QSize()

        self.up_vector = QVector2D(0, -1)
        self.down_vector = QVector2D(0, 1)
        self.left_vector = QVector2D(-1, 0)
        self.right_vector = QVector2D(1, 0)

        self.head_color = QColor(250, 60, 50)
        self.tail_color = QColor(70, 70, 70)

    def reset(self):
        self.path = []
        self.pos = self.start_pos

    def setup(self):
        self.reset()

    def get_option(self):
        choice = random.randint(0, 3)
        pos_copy = QVector2D(self.pos)

        if choice == self.MOVE_UP:
            pos_copy += self.up_vector
        elif choice == self.MOVE_DOWN:
            pos_copy += self.down_vector
        elif choice == self.MOVE_LEFT:
            pos_copy += self.left_vector
        elif choice == self.MOVE_RIGHT:
            pos_copy += self.right_vector
        return pos_copy

    def tick(self):
        """
        Tick the random walker to do something
        """
        while True:
            pos = self.get_option()
            is_valid = True
            if pos.x() > self.resolution.width():
                is_valid = False
            elif pos.x() < 0:
                is_valid = False
            elif pos.y() > self.resolution.height():
                is_valid = False
            elif pos.y() < 0:
                is_valid = False

            if is_valid:
                self.path.append(pos)
                self.pos = pos
                break

    def paint_cell(self, painter, pos, color):
        chunk_x = float(self.rect.width()) / self.resolution.width()
        chunk_y = float(self.rect.height()) / self.resolution.height()
        x = pos.x() * chunk_x
        y = pos.y() * chunk_y
        painter.fillRect(x - chunk_x / 2, y - chunk_y - 2, math.ceil(chunk_x),
                         math.ceil(chunk_y), color)

    def paint(self, painter):
        for p in self.path:
            self.paint_cell(painter, p, self.tail_color)

        self.paint_cell(painter, self.pos, self.head_color)
Example #16
0
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(774, 531)
        sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setMinimumSize(QSize(774, 531))
        MainWindow.setContextMenuPolicy(Qt.NoContextMenu)
        icon = QIcon()
        icon.addFile(u"plot-icon.png", QSize(), QIcon.Normal, QIcon.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setIconSize(QSize(50, 50))
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.functionPattern = QLineEdit(self.centralwidget)
        self.functionPattern.setObjectName(u"functionPattern")
        self.functionPattern.setGeometry(QRect(580, 80, 151, 31))
        font = QFont()
        font.setPointSize(9)
        self.functionPattern.setFont(font)
        self.functionRange = QLineEdit(self.centralwidget)
        self.functionRange.setObjectName(u"functionRange")
        self.functionRange.setGeometry(QRect(580, 120, 151, 31))
        self.functionRange.setFont(font)
        self.functionRange.setStyleSheet(u"")
        self.label = QLabel(self.centralwidget)
        self.label.setObjectName(u"label")
        self.label.setGeometry(QRect(530, 80, 47, 31))
        font1 = QFont()
        font1.setPointSize(11)
        font1.setBold(True)
        font1.setWeight(75)
        self.label.setFont(font1)
        self.label_2 = QLabel(self.centralwidget)
        self.label_2.setObjectName(u"label_2")
        self.label_2.setGeometry(QRect(180, 20, 401, 31))
        font2 = QFont()
        font2.setPointSize(18)
        font2.setBold(True)
        font2.setWeight(75)
        self.label_2.setFont(font2)
        self.label_3 = QLabel(self.centralwidget)
        self.label_3.setObjectName(u"label_3")
        self.label_3.setGeometry(QRect(530, 120, 47, 31))
        self.label_3.setFont(font1)
        self.cleanButton = QPushButton(self.centralwidget)
        self.cleanButton.setObjectName(u"cleanButton")
        self.cleanButton.setGeometry(QRect(650, 170, 91, 41))
        font3 = QFont()
        font3.setPointSize(12)
        font3.setBold(True)
        font3.setWeight(75)
        self.cleanButton.setFont(font3)
        self.drawButton = QPushButton(self.centralwidget)
        self.drawButton.setObjectName(u"drawButton")
        self.drawButton.setGeometry(QRect(530, 170, 91, 41))
        self.drawButton.setFont(font3)
        self.widget = QWidget(self.centralwidget)
        self.widget.setObjectName(u"widget")
        self.widget.setGeometry(QRect(40, 90, 451, 381))
        sizePolicy1 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
        sizePolicy1.setHorizontalStretch(0)
        sizePolicy1.setVerticalStretch(0)
        sizePolicy1.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy1)
        self.verticalLayout = QVBoxLayout(self.widget)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.userCommunication = QTextEdit(self.centralwidget)
        self.userCommunication.setObjectName(u"userCommunication")
        self.userCommunication.setGeometry(QRect(530, 230, 211, 191))
        self.userCommunication.setFont(font)
        self.userCommunication.setReadOnly(True)
        self.userCommunication.setAcceptRichText(True)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 774, 21))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)
        QWidget.setTabOrder(self.functionPattern, self.functionRange)
        QWidget.setTabOrder(self.functionRange, self.drawButton)
        QWidget.setTabOrder(self.drawButton, self.cleanButton)
        QWidget.setTabOrder(self.cleanButton, self.userCommunication)

        self.retranslateUi(MainWindow)

        QMetaObject.connectSlotsByName(MainWindow)
Example #17
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(484, 433)
        self.centralWidget = QWidget(MainWindow)
        sizePolicy = QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralWidget.sizePolicy().hasHeightForWidth())
        self.centralWidget.setSizePolicy(sizePolicy)
        self.centralWidget.setObjectName("centralWidget")
        self.verticalLayout_2 = QVBoxLayout(self.centralWidget)
        self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QVBoxLayout()
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.lcdNumber = QLCDNumber(self.centralWidget)
        self.lcdNumber.setDigitCount(10)
        self.lcdNumber.setObjectName("lcdNumber")
        self.verticalLayout.addWidget(self.lcdNumber)
        self.gridLayout = QGridLayout()
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.pushButton_n4 = QPushButton(self.centralWidget)
        self.pushButton_n4.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_n4.setFont(font)
        self.pushButton_n4.setStyleSheet("QPushButton {\n"
"color: #1976D2;\n"
"}")
        self.pushButton_n4.setObjectName("pushButton_n4")
        self.gridLayout.addWidget(self.pushButton_n4, 3, 0, 1, 1)
        self.pushButton_n1 = QPushButton(self.centralWidget)
        self.pushButton_n1.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_n1.setFont(font)
        self.pushButton_n1.setStyleSheet("QPushButton {\n"
"color: #1976D2;\n"
"}")
        self.pushButton_n1.setObjectName("pushButton_n1")
        self.gridLayout.addWidget(self.pushButton_n1, 4, 0, 1, 1)
        self.pushButton_n8 = QPushButton(self.centralWidget)
        self.pushButton_n8.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_n8.setFont(font)
        self.pushButton_n8.setStyleSheet("QPushButton {\n"
"color: #1976D2;\n"
"}")
        self.pushButton_n8.setObjectName("pushButton_n8")
        self.gridLayout.addWidget(self.pushButton_n8, 2, 1, 1, 1)
        self.pushButton_mul = QPushButton(self.centralWidget)
        self.pushButton_mul.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton_mul.setFont(font)
        self.pushButton_mul.setObjectName("pushButton_mul")
        self.gridLayout.addWidget(self.pushButton_mul, 2, 3, 1, 1)
        self.pushButton_n7 = QPushButton(self.centralWidget)
        self.pushButton_n7.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_n7.setFont(font)
        self.pushButton_n7.setStyleSheet("QPushButton {\n"
"color: #1976D2;\n"
"}")
        self.pushButton_n7.setObjectName("pushButton_n7")
        self.gridLayout.addWidget(self.pushButton_n7, 2, 0, 1, 1)
        self.pushButton_n6 = QPushButton(self.centralWidget)
        self.pushButton_n6.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_n6.setFont(font)
        self.pushButton_n6.setStyleSheet("QPushButton {\n"
"color: #1976D2;\n"
"}")
        self.pushButton_n6.setObjectName("pushButton_n6")
        self.gridLayout.addWidget(self.pushButton_n6, 3, 2, 1, 1)
        self.pushButton_n5 = QPushButton(self.centralWidget)
        self.pushButton_n5.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_n5.setFont(font)
        self.pushButton_n5.setStyleSheet("QPushButton {\n"
"color: #1976D2;\n"
"}")
        self.pushButton_n5.setObjectName("pushButton_n5")
        self.gridLayout.addWidget(self.pushButton_n5, 3, 1, 1, 1)
        self.pushButton_n0 = QPushButton(self.centralWidget)
        self.pushButton_n0.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_n0.setFont(font)
        self.pushButton_n0.setStyleSheet("QPushButton {\n"
"color: #1976D2;\n"
"}")
        self.pushButton_n0.setObjectName("pushButton_n0")
        self.gridLayout.addWidget(self.pushButton_n0, 5, 0, 1, 1)
        self.pushButton_n2 = QPushButton(self.centralWidget)
        self.pushButton_n2.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_n2.setFont(font)
        self.pushButton_n2.setStyleSheet("QPushButton {\n"
"color: #1976D2;\n"
"}")
        self.pushButton_n2.setObjectName("pushButton_n2")
        self.gridLayout.addWidget(self.pushButton_n2, 4, 1, 1, 1)
        self.pushButton_n9 = QPushButton(self.centralWidget)
        self.pushButton_n9.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_n9.setFont(font)
        self.pushButton_n9.setStyleSheet("QPushButton {\n"
"color: #1976D2;\n"
"}")
        self.pushButton_n9.setObjectName("pushButton_n9")
        self.gridLayout.addWidget(self.pushButton_n9, 2, 2, 1, 1)
        self.pushButton_n3 = QPushButton(self.centralWidget)
        self.pushButton_n3.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_n3.setFont(font)
        self.pushButton_n3.setStyleSheet("QPushButton {\n"
"color: #1976D2;\n"
"}")
        self.pushButton_n3.setObjectName("pushButton_n3")
        self.gridLayout.addWidget(self.pushButton_n3, 4, 2, 1, 1)
        self.pushButton_div = QPushButton(self.centralWidget)
        self.pushButton_div.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton_div.setFont(font)
        self.pushButton_div.setObjectName("pushButton_div")
        self.gridLayout.addWidget(self.pushButton_div, 1, 3, 1, 1)
        self.pushButton_sub = QPushButton(self.centralWidget)
        self.pushButton_sub.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton_sub.setFont(font)
        self.pushButton_sub.setObjectName("pushButton_sub")
        self.gridLayout.addWidget(self.pushButton_sub, 3, 3, 1, 1)
        self.pushButton_add = QPushButton(self.centralWidget)
        self.pushButton_add.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton_add.setFont(font)
        self.pushButton_add.setObjectName("pushButton_add")
        self.gridLayout.addWidget(self.pushButton_add, 4, 3, 1, 1)
        self.pushButton_ac = QPushButton(self.centralWidget)
        self.pushButton_ac.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton_ac.setFont(font)
        self.pushButton_ac.setStyleSheet("QPushButton {\n"
"    color: #f44336;\n"
"}")
        self.pushButton_ac.setObjectName("pushButton_ac")
        self.gridLayout.addWidget(self.pushButton_ac, 1, 0, 1, 1)
        self.pushButton_mr = QPushButton(self.centralWidget)
        self.pushButton_mr.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton_mr.setFont(font)
        self.pushButton_mr.setStyleSheet("QPushButton {\n"
"   color: #FFC107;\n"
"}")
        self.pushButton_mr.setObjectName("pushButton_mr")
        self.gridLayout.addWidget(self.pushButton_mr, 1, 2, 1, 1)
        self.pushButton_m = QPushButton(self.centralWidget)
        self.pushButton_m.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton_m.setFont(font)
        self.pushButton_m.setStyleSheet("QPushButton {\n"
"   color: #FFC107;\n"
"}")
        self.pushButton_m.setObjectName("pushButton_m")
        self.gridLayout.addWidget(self.pushButton_m, 1, 1, 1, 1)
        self.pushButton_pc = QPushButton(self.centralWidget)
        self.pushButton_pc.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton_pc.setFont(font)
        self.pushButton_pc.setObjectName("pushButton_pc")
        self.gridLayout.addWidget(self.pushButton_pc, 5, 1, 1, 1)
        self.pushButton_eq = QPushButton(self.centralWidget)
        self.pushButton_eq.setMinimumSize(QSize(0, 50))
        font = QFont()
        font.setPointSize(27)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton_eq.setFont(font)
        self.pushButton_eq.setStyleSheet("QPushButton {\n"
"color: #4CAF50;\n"
"}")
        self.pushButton_eq.setObjectName("pushButton_eq")
        self.gridLayout.addWidget(self.pushButton_eq, 5, 2, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout)
        self.verticalLayout_2.addLayout(self.verticalLayout)
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QMenuBar(MainWindow)
        self.menuBar.setGeometry(QRect(0, 0, 484, 22))
        self.menuBar.setObjectName("menuBar")
        self.menuFile = QMenu(self.menuBar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menuBar)
        self.statusBar = QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.actionExit = QAction(MainWindow)
        self.actionExit.setObjectName("actionExit")
        self.actionReset = QAction(MainWindow)
        self.actionReset.setObjectName("actionReset")
        self.menuFile.addAction(self.actionReset)
        self.menuFile.addAction(self.actionExit)
        self.menuBar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        QMetaObject.connectSlotsByName(MainWindow)
Example #18
0
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(1008, 646)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.gridLayout = QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(u"gridLayout")
        self.tabWidget = QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName(u"tabWidget")
        self.services = QWidget()
        self.services.setObjectName(u"services")
        self.gridLayout_3 = QGridLayout(self.services)
        self.gridLayout_3.setObjectName(u"gridLayout_3")
        self.label_3 = QLabel(self.services)
        self.label_3.setObjectName(u"label_3")
        font = QFont()
        font.setPointSize(11)
        self.label_3.setFont(font)

        self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 1)

        self.horizontalLayout_2 = QHBoxLayout()
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.list_of_services = QTableWidget(self.services)
        self.list_of_services.setObjectName(u"list_of_services")

        self.horizontalLayout_2.addWidget(self.list_of_services)

        self.verticalLayout_2 = QVBoxLayout()
        self.verticalLayout_2.setObjectName(u"verticalLayout_2")
        self.verticalSpacer_3 = QSpacerItem(20, 40, QSizePolicy.Minimum,
                                            QSizePolicy.Expanding)

        self.verticalLayout_2.addItem(self.verticalSpacer_3)

        self.add_serviceButton = QPushButton(self.services)
        self.add_serviceButton.setObjectName(u"add_serviceButton")

        self.verticalLayout_2.addWidget(self.add_serviceButton)

        self.edit_serviceButton = QPushButton(self.services)
        self.edit_serviceButton.setObjectName(u"edit_serviceButton")

        self.verticalLayout_2.addWidget(self.edit_serviceButton)

        self.delete_serviceButton = QPushButton(self.services)
        self.delete_serviceButton.setObjectName(u"delete_serviceButton")

        self.verticalLayout_2.addWidget(self.delete_serviceButton)

        self.verticalSpacer_4 = QSpacerItem(20, 40, QSizePolicy.Minimum,
                                            QSizePolicy.Expanding)

        self.verticalLayout_2.addItem(self.verticalSpacer_4)

        self.horizontalLayout_2.addLayout(self.verticalLayout_2)

        self.gridLayout_3.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)

        self.tabWidget.addTab(self.services, "")
        self.storage = QWidget()
        self.storage.setObjectName(u"storage")
        self.gridLayout_2 = QGridLayout(self.storage)
        self.gridLayout_2.setObjectName(u"gridLayout_2")
        self.label = QLabel(self.storage)
        self.label.setObjectName(u"label")
        self.label.setFont(font)

        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)

        self.label_2 = QLabel(self.storage)
        self.label_2.setObjectName(u"label_2")
        self.label_2.setFont(font)

        self.gridLayout_2.addWidget(self.label_2, 0, 1, 1, 1)

        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.list_of_materials = QTableWidget(self.storage)
        self.list_of_materials.setObjectName(u"list_of_materials")

        self.horizontalLayout.addWidget(self.list_of_materials)

        self.verticalLayout = QVBoxLayout()
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.total_list = QTableWidget(self.storage)
        self.total_list.setObjectName(u"total_list")

        self.verticalLayout.addWidget(self.total_list)

        self.add_materialButton = QPushButton(self.storage)
        self.add_materialButton.setObjectName(u"add_materialButton")

        self.verticalLayout.addWidget(self.add_materialButton)

        self.edit_materialButton = QPushButton(self.storage)
        self.edit_materialButton.setObjectName(u"edit_materialButton")

        self.verticalLayout.addWidget(self.edit_materialButton)

        self.delete_materialButton = QPushButton(self.storage)
        self.delete_materialButton.setObjectName(u"delete_materialButton")

        self.verticalLayout.addWidget(self.delete_materialButton)

        self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Minimum,
                                            QSizePolicy.Expanding)

        self.verticalLayout.addItem(self.verticalSpacer_2)

        self.horizontalLayout.addLayout(self.verticalLayout)

        self.gridLayout_2.addLayout(self.horizontalLayout, 1, 0, 1, 2)

        self.tabWidget.addTab(self.storage, "")

        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)

        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 1008, 26))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)

        self.tabWidget.setCurrentIndex(1)

        QMetaObject.connectSlotsByName(MainWindow)
Example #19
0
 def setup_calculate_button(self):
     self.calculate_button = QPushButton(self.container, text="Calculate")
     self.calculate_button.setObjectName(u"calculate_button")
     self.calculate_button.setEnabled(False)
     self.calculate_button.setGeometry(QRect(220, 190, 112, 32))
     self.calculate_button.setFocusPolicy(Qt.NoFocus)
Example #20
0
    def paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent):
        painter = QPainter(self.viewport())
        painter.translate(
            -self.horizontalScrollBar().value() * self.font_width, 0)

        # Pixel offset of this row
        row_y = 0

        # Starting byte offset
        offset = self.verticalScrollBar().value() * self.row_width

        painter.fillRect(self.viewport().rect(), self.palette().base())

        offset_rect = QRect(self.viewport().rect())
        offset_rect.setWidth(self._offset_width_pixels())
        painter.fillRect(offset_rect, self.palette().window())

        ascii_rect = QRect(self.viewport().rect())
        ascii_rect.setX(ascii_rect.x() + self._offset_width_pixels() +
                        self._hex_width_pixels() + 96)
        ascii_rect.setWidth(2)
        painter.fillRect(ascii_rect, self.palette().window())

        if not self.data:
            return None

        widget_height = self.height()
        leading = self.fontMetrics().leading()

        painter.save()

        while row_y + self.line_height < widget_height and offset < len(
                self.data):
            self._draw_row(painter, offset, row_y)
            offset += self.row_width
            row_y += self.line_height + leading

        painter.restore()
Example #21
0
    def setupUi(self, EventListWindow):
        if not EventListWindow.objectName():
            EventListWindow.setObjectName(u"EventListWindow")
        EventListWindow.resize(900, 520)
        sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(EventListWindow.sizePolicy().hasHeightForWidth())
        EventListWindow.setSizePolicy(sizePolicy)
        EventListWindow.setMinimumSize(QSize(900, 520))
        EventListWindow.setMaximumSize(QSize(900, 520))
        self.centralwidget = QWidget(EventListWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.verticalLayoutWidget = QWidget(self.centralwidget)
        self.verticalLayoutWidget.setObjectName(u"verticalLayoutWidget")
        self.verticalLayoutWidget.setGeometry(QRect(10, 20, 252, 481))
        self.LayoutEventList = QVBoxLayout(self.verticalLayoutWidget)
        self.LayoutEventList.setObjectName(u"LayoutEventList")
        self.LayoutEventList.setContentsMargins(0, 0, 0, 0)
        self.LabelEventList = QLabel(self.verticalLayoutWidget)
        self.LabelEventList.setObjectName(u"LabelEventList")
        font = QFont()
        font.setPointSize(18)
        self.LabelEventList.setFont(font)
        self.LabelEventList.setFrameShape(QFrame.Box)
        self.LabelEventList.setAlignment(Qt.AlignCenter)

        self.LayoutEventList.addWidget(self.LabelEventList)

        self.ExtraButtons = QStackedWidget(self.verticalLayoutWidget)
        self.ExtraButtons.setObjectName(u"ExtraButtons")
        sizePolicy.setHeightForWidth(self.ExtraButtons.sizePolicy().hasHeightForWidth())
        self.ExtraButtons.setSizePolicy(sizePolicy)
        self.ExtraButtons.setMinimumSize(QSize(250, 34))
        self.AdminView_2 = QWidget()
        self.AdminView_2.setObjectName(u"AdminView_2")
        self.horizontalLayoutWidget = QWidget(self.AdminView_2)
        self.horizontalLayoutWidget.setObjectName(u"horizontalLayoutWidget")
        self.horizontalLayoutWidget.setGeometry(QRect(0, 0, 251, 41))
        self.horizontalLayout = QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.ButtonCreateOrganizer = QPushButton(self.horizontalLayoutWidget)
        self.ButtonCreateOrganizer.setObjectName(u"ButtonCreateOrganizer")

        self.horizontalLayout.addWidget(self.ButtonCreateOrganizer)

        self.ButtonCreateEvent = QPushButton(self.horizontalLayoutWidget)
        self.ButtonCreateEvent.setObjectName(u"ButtonCreateEvent")

        self.horizontalLayout.addWidget(self.ButtonCreateEvent)

        self.ExtraButtons.addWidget(self.AdminView_2)
        self.OrganizerView_2 = QWidget()
        self.OrganizerView_2.setObjectName(u"OrganizerView_2")
        self.ExtraButtons.addWidget(self.OrganizerView_2)

        self.LayoutEventList.addWidget(self.ExtraButtons)

        self.horizontalLayout_2 = QHBoxLayout()
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.ButtonFilter = QPushButton(self.verticalLayoutWidget)
        self.ButtonFilter.setObjectName(u"ButtonFilter")

        self.horizontalLayout_2.addWidget(self.ButtonFilter)

        self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_2.addItem(self.horizontalSpacer)

        self.ButtonSort = QPushButton(self.verticalLayoutWidget)
        self.ButtonSort.setObjectName(u"ButtonSort")

        self.horizontalLayout_2.addWidget(self.ButtonSort)


        self.LayoutEventList.addLayout(self.horizontalLayout_2)

        self.ListEvents = QListWidget(self.verticalLayoutWidget)
        self.ListEvents.setObjectName(u"ListEvents")

        self.LayoutEventList.addWidget(self.ListEvents)

        self.EventEditFrame = QFrame(self.centralwidget)
        self.EventEditFrame.setObjectName(u"EventEditFrame")
        self.EventEditFrame.setGeometry(QRect(260, 20, 631, 481))
        self.EventEditFrame.setAutoFillBackground(False)
        self.EventEditFrame.setFrameShape(QFrame.StyledPanel)
        self.EventEditFrame.setFrameShadow(QFrame.Raised)
        self.verticalLayoutWidget_7 = QWidget(self.EventEditFrame)
        self.verticalLayoutWidget_7.setObjectName(u"verticalLayoutWidget_7")
        self.verticalLayoutWidget_7.setGeometry(QRect(0, 0, 631, 481))
        self.LayoutEventDetails = QVBoxLayout(self.verticalLayoutWidget_7)
        self.LayoutEventDetails.setSpacing(0)
        self.LayoutEventDetails.setObjectName(u"LayoutEventDetails")
        self.LayoutEventDetails.setSizeConstraint(QLayout.SetDefaultConstraint)
        self.LayoutEventDetails.setContentsMargins(0, 0, 0, 0)
        self.LabelDetails = QLabel(self.verticalLayoutWidget_7)
        self.LabelDetails.setObjectName(u"LabelDetails")
        self.LabelDetails.setFont(font)
        self.LabelDetails.setAlignment(Qt.AlignCenter)

        self.LayoutEventDetails.addWidget(self.LabelDetails)

        self.stackedWidget_2 = QStackedWidget(self.verticalLayoutWidget_7)
        self.stackedWidget_2.setObjectName(u"stackedWidget_2")
        sizePolicy1 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
        sizePolicy1.setHorizontalStretch(0)
        sizePolicy1.setVerticalStretch(0)
        sizePolicy1.setHeightForWidth(self.stackedWidget_2.sizePolicy().hasHeightForWidth())
        self.stackedWidget_2.setSizePolicy(sizePolicy1)
        self.OrganizerView = QWidget()
        self.OrganizerView.setObjectName(u"OrganizerView")
        sizePolicy1.setHeightForWidth(self.OrganizerView.sizePolicy().hasHeightForWidth())
        self.OrganizerView.setSizePolicy(sizePolicy1)
        self.OrganizerView.setAutoFillBackground(False)
        self.gridLayoutWidget_2 = QWidget(self.OrganizerView)
        self.gridLayoutWidget_2.setObjectName(u"gridLayoutWidget_2")
        self.gridLayoutWidget_2.setGeometry(QRect(10, 0, 621, 453))
        self.gridLayout_3 = QGridLayout(self.gridLayoutWidget_2)
        self.gridLayout_3.setObjectName(u"gridLayout_3")
        self.gridLayout_3.setSizeConstraint(QLayout.SetDefaultConstraint)
        self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalSpacer_27 = QSpacerItem(150, 20, QSizePolicy.MinimumExpanding, QSizePolicy.Minimum)

        self.gridLayout_3.addItem(self.horizontalSpacer_27, 1, 1, 1, 1)

        self.LayoutTimeConstraints = QVBoxLayout()
        self.LayoutTimeConstraints.setSpacing(0)
        self.LayoutTimeConstraints.setObjectName(u"LayoutTimeConstraints")
        self.LayoutTimeConstraints.setSizeConstraint(QLayout.SetDefaultConstraint)
        self.horizontalLayout_15 = QHBoxLayout()
        self.horizontalLayout_15.setObjectName(u"horizontalLayout_15")
        self.horizontalSpacer_29 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_15.addItem(self.horizontalSpacer_29)

        self.LabelTimeConstraints = QLabel(self.gridLayoutWidget_2)
        self.LabelTimeConstraints.setObjectName(u"LabelTimeConstraints")
        sizePolicy2 = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)
        sizePolicy2.setHorizontalStretch(0)
        sizePolicy2.setVerticalStretch(1)
        sizePolicy2.setHeightForWidth(self.LabelTimeConstraints.sizePolicy().hasHeightForWidth())
        self.LabelTimeConstraints.setSizePolicy(sizePolicy2)
        self.LabelTimeConstraints.setMinimumSize(QSize(0, 34))
        font1 = QFont()
        font1.setPointSize(13)
        font1.setBold(True)
        font1.setWeight(75)
        self.LabelTimeConstraints.setFont(font1)
        self.LabelTimeConstraints.setFrameShape(QFrame.Panel)
        self.LabelTimeConstraints.setFrameShadow(QFrame.Raised)
        self.LabelTimeConstraints.setLineWidth(1)
        self.LabelTimeConstraints.setMidLineWidth(1)
        self.LabelTimeConstraints.setAlignment(Qt.AlignCenter)
        self.LabelTimeConstraints.setMargin(6)

        self.horizontalLayout_15.addWidget(self.LabelTimeConstraints)

        self.horizontalSpacer_30 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_15.addItem(self.horizontalSpacer_30)


        self.LayoutTimeConstraints.addLayout(self.horizontalLayout_15)

        self.ListTimeConstraints = QListWidget(self.gridLayoutWidget_2)
        self.ListTimeConstraints.setObjectName(u"ListTimeConstraints")

        self.LayoutTimeConstraints.addWidget(self.ListTimeConstraints)


        self.gridLayout_3.addLayout(self.LayoutTimeConstraints, 0, 0, 1, 3)

        self.LayoutTagConstraints = QVBoxLayout()
        self.LayoutTagConstraints.setSpacing(0)
        self.LayoutTagConstraints.setObjectName(u"LayoutTagConstraints")
        self.LayoutTagConstraints.setSizeConstraint(QLayout.SetDefaultConstraint)
        self.horizontalLayout_13 = QHBoxLayout()
        self.horizontalLayout_13.setObjectName(u"horizontalLayout_13")
        self.horizontalSpacer_25 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_13.addItem(self.horizontalSpacer_25)

        self.LabelTagConstraints = QLabel(self.gridLayoutWidget_2)
        self.LabelTagConstraints.setObjectName(u"LabelTagConstraints")
        sizePolicy2.setHeightForWidth(self.LabelTagConstraints.sizePolicy().hasHeightForWidth())
        self.LabelTagConstraints.setSizePolicy(sizePolicy2)
        self.LabelTagConstraints.setMinimumSize(QSize(0, 34))
        font2 = QFont()
        font2.setPointSize(13)
        font2.setBold(True)
        font2.setWeight(75)
        font2.setStrikeOut(False)
        font2.setKerning(True)
        font2.setStyleStrategy(QFont.PreferDefault)
        self.LabelTagConstraints.setFont(font2)
        self.LabelTagConstraints.setFrameShape(QFrame.Panel)
        self.LabelTagConstraints.setFrameShadow(QFrame.Raised)
        self.LabelTagConstraints.setLineWidth(1)
        self.LabelTagConstraints.setMidLineWidth(1)
        self.LabelTagConstraints.setAlignment(Qt.AlignCenter)
        self.LabelTagConstraints.setMargin(6)

        self.horizontalLayout_13.addWidget(self.LabelTagConstraints)

        self.horizontalSpacer_26 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_13.addItem(self.horizontalSpacer_26)


        self.LayoutTagConstraints.addLayout(self.horizontalLayout_13)

        self.ListTagConstraints = QListWidget(self.gridLayoutWidget_2)
        self.ListTagConstraints.setObjectName(u"ListTagConstraints")

        self.LayoutTagConstraints.addWidget(self.ListTagConstraints)


        self.gridLayout_3.addLayout(self.LayoutTagConstraints, 2, 0, 1, 2)

        self.LabelRoomGroup = QLabel(self.gridLayoutWidget_2)
        self.LabelRoomGroup.setObjectName(u"LabelRoomGroup")

        self.gridLayout_3.addWidget(self.LabelRoomGroup, 6, 1, 1, 1)

        self.LayoutSpaceConstraint = QVBoxLayout()
        self.LayoutSpaceConstraint.setSpacing(0)
        self.LayoutSpaceConstraint.setObjectName(u"LayoutSpaceConstraint")
        self.LayoutSpaceConstraint.setSizeConstraint(QLayout.SetDefaultConstraint)
        self.horizontalLayout_11 = QHBoxLayout()
        self.horizontalLayout_11.setObjectName(u"horizontalLayout_11")
        self.horizontalSpacer_21 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_11.addItem(self.horizontalSpacer_21)

        self.LabelSpaceTitle = QLabel(self.gridLayoutWidget_2)
        self.LabelSpaceTitle.setObjectName(u"LabelSpaceTitle")
        sizePolicy2.setHeightForWidth(self.LabelSpaceTitle.sizePolicy().hasHeightForWidth())
        self.LabelSpaceTitle.setSizePolicy(sizePolicy2)
        self.LabelSpaceTitle.setMinimumSize(QSize(0, 34))
        self.LabelSpaceTitle.setMaximumSize(QSize(16777215, 30))
        self.LabelSpaceTitle.setFont(font2)
        self.LabelSpaceTitle.setFrameShape(QFrame.Panel)
        self.LabelSpaceTitle.setFrameShadow(QFrame.Raised)
        self.LabelSpaceTitle.setLineWidth(1)
        self.LabelSpaceTitle.setMidLineWidth(1)
        self.LabelSpaceTitle.setAlignment(Qt.AlignCenter)
        self.LabelSpaceTitle.setMargin(6)

        self.horizontalLayout_11.addWidget(self.LabelSpaceTitle)

        self.horizontalSpacer_22 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_11.addItem(self.horizontalSpacer_22)


        self.LayoutSpaceConstraint.addLayout(self.horizontalLayout_11)

        self.horizontalLayout_12 = QHBoxLayout()
        self.horizontalLayout_12.setObjectName(u"horizontalLayout_12")
        self.horizontalSpacer_23 = QSpacerItem(60, 20, QSizePolicy.Minimum, QSizePolicy.Minimum)

        self.horizontalLayout_12.addItem(self.horizontalSpacer_23)

        self.FieldSpaceConstraint = QLineEdit(self.gridLayoutWidget_2)
        self.FieldSpaceConstraint.setObjectName(u"FieldSpaceConstraint")

        self.horizontalLayout_12.addWidget(self.FieldSpaceConstraint)

        self.horizontalSpacer_24 = QSpacerItem(60, 20, QSizePolicy.Minimum, QSizePolicy.Minimum)

        self.horizontalLayout_12.addItem(self.horizontalSpacer_24)


        self.LayoutSpaceConstraint.addLayout(self.horizontalLayout_12)

        self.horizontalLayout_16 = QHBoxLayout()
        self.horizontalLayout_16.setObjectName(u"horizontalLayout_16")
        self.ButtonUpdateSpaceConstraint = QPushButton(self.gridLayoutWidget_2)
        self.ButtonUpdateSpaceConstraint.setObjectName(u"ButtonUpdateSpaceConstraint")
        sizePolicy.setHeightForWidth(self.ButtonUpdateSpaceConstraint.sizePolicy().hasHeightForWidth())
        self.ButtonUpdateSpaceConstraint.setSizePolicy(sizePolicy)

        self.horizontalLayout_16.addWidget(self.ButtonUpdateSpaceConstraint)


        self.LayoutSpaceConstraint.addLayout(self.horizontalLayout_16)


        self.gridLayout_3.addLayout(self.LayoutSpaceConstraint, 2, 2, 1, 1)

        self.horizontalLayout_9 = QHBoxLayout()
        self.horizontalLayout_9.setObjectName(u"horizontalLayout_9")
        self.horizontalSpacer_4 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_9.addItem(self.horizontalSpacer_4)

        self.ButtonAddTimeConstraint = QPushButton(self.gridLayoutWidget_2)
        self.ButtonAddTimeConstraint.setObjectName(u"ButtonAddTimeConstraint")

        self.horizontalLayout_9.addWidget(self.ButtonAddTimeConstraint)


        self.gridLayout_3.addLayout(self.horizontalLayout_9, 1, 2, 1, 1)

        self.LabelDateTitle = QLabel(self.gridLayoutWidget_2)
        self.LabelDateTitle.setObjectName(u"LabelDateTitle")

        self.gridLayout_3.addWidget(self.LabelDateTitle, 5, 0, 1, 1)

        self.LabelScheduledDatetime = QLabel(self.gridLayoutWidget_2)
        self.LabelScheduledDatetime.setObjectName(u"LabelScheduledDatetime")

        self.gridLayout_3.addWidget(self.LabelScheduledDatetime, 6, 0, 1, 1)

        self.LabelScheduledRoom = QLabel(self.gridLayoutWidget_2)
        self.LabelScheduledRoom.setObjectName(u"LabelScheduledRoom")

        self.gridLayout_3.addWidget(self.LabelScheduledRoom, 6, 2, 1, 1)

        self.LabelRoomTitle = QLabel(self.gridLayoutWidget_2)
        self.LabelRoomTitle.setObjectName(u"LabelRoomTitle")

        self.gridLayout_3.addWidget(self.LabelRoomTitle, 5, 2, 1, 1)

        self.horizontalLayout_10 = QHBoxLayout()
        self.horizontalLayout_10.setObjectName(u"horizontalLayout_10")
        self.horizontalSpacer_13 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_10.addItem(self.horizontalSpacer_13)

        self.ButtonAddTagConstraint = QPushButton(self.gridLayoutWidget_2)
        self.ButtonAddTagConstraint.setObjectName(u"ButtonAddTagConstraint")

        self.horizontalLayout_10.addWidget(self.ButtonAddTagConstraint)


        self.gridLayout_3.addLayout(self.horizontalLayout_10, 3, 1, 1, 1)

        self.LabelRoomGroupTitle = QLabel(self.gridLayoutWidget_2)
        self.LabelRoomGroupTitle.setObjectName(u"LabelRoomGroupTitle")

        self.gridLayout_3.addWidget(self.LabelRoomGroupTitle, 5, 1, 1, 1)

        self.DividingLine = QFrame(self.gridLayoutWidget_2)
        self.DividingLine.setObjectName(u"DividingLine")
        self.DividingLine.setFrameShape(QFrame.HLine)
        self.DividingLine.setFrameShadow(QFrame.Sunken)

        self.gridLayout_3.addWidget(self.DividingLine, 4, 0, 1, 3)

        self.stackedWidget_2.addWidget(self.OrganizerView)
        self.AdminView = QWidget()
        self.AdminView.setObjectName(u"AdminView")
        sizePolicy1.setHeightForWidth(self.AdminView.sizePolicy().hasHeightForWidth())
        self.AdminView.setSizePolicy(sizePolicy1)
        self.gridLayoutWidget = QWidget(self.AdminView)
        self.gridLayoutWidget.setObjectName(u"gridLayoutWidget")
        self.gridLayoutWidget.setGeometry(QRect(10, 0, 621, 451))
        self.gridLayout = QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setObjectName(u"gridLayout")
        self.gridLayout.setSizeConstraint(QLayout.SetDefaultConstraint)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.LayoutTags = QVBoxLayout()
        self.LayoutTags.setSpacing(0)
        self.LayoutTags.setObjectName(u"LayoutTags")
        self.verticalSpacer_2 = QSpacerItem(20, 30, QSizePolicy.Minimum, QSizePolicy.Minimum)

        self.LayoutTags.addItem(self.verticalSpacer_2)

        self.horizontalLayout_6 = QHBoxLayout()
        self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
        self.LabelTags = QLabel(self.gridLayoutWidget)
        self.LabelTags.setObjectName(u"LabelTags")
        sizePolicy3 = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)
        sizePolicy3.setHorizontalStretch(0)
        sizePolicy3.setVerticalStretch(0)
        sizePolicy3.setHeightForWidth(self.LabelTags.sizePolicy().hasHeightForWidth())
        self.LabelTags.setSizePolicy(sizePolicy3)
        self.LabelTags.setMinimumSize(QSize(0, 30))
        self.LabelTags.setFont(font2)
        self.LabelTags.setFrameShape(QFrame.Panel)
        self.LabelTags.setFrameShadow(QFrame.Raised)
        self.LabelTags.setLineWidth(1)
        self.LabelTags.setMidLineWidth(0)
        self.LabelTags.setAlignment(Qt.AlignCenter)
        self.LabelTags.setMargin(6)

        self.horizontalLayout_6.addWidget(self.LabelTags)

        self.horizontalSpacer_11 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_6.addItem(self.horizontalSpacer_11)

        self.ButtonAddTag = QPushButton(self.gridLayoutWidget)
        self.ButtonAddTag.setObjectName(u"ButtonAddTag")

        self.horizontalLayout_6.addWidget(self.ButtonAddTag)


        self.LayoutTags.addLayout(self.horizontalLayout_6)

        self.listWidget_3 = QListWidget(self.gridLayoutWidget)
        QListWidgetItem(self.listWidget_3)
        QListWidgetItem(self.listWidget_3)
        QListWidgetItem(self.listWidget_3)
        QListWidgetItem(self.listWidget_3)
        QListWidgetItem(self.listWidget_3)
        QListWidgetItem(self.listWidget_3)
        QListWidgetItem(self.listWidget_3)
        QListWidgetItem(self.listWidget_3)
        self.listWidget_3.setObjectName(u"listWidget_3")
        self.listWidget_3.setEnabled(True)
        self.listWidget_3.setFlow(QListView.LeftToRight)

        self.LayoutTags.addWidget(self.listWidget_3)


        self.gridLayout.addLayout(self.LayoutTags, 5, 0, 1, 1)

        self.LabelDateTitle_2 = QLabel(self.gridLayoutWidget)
        self.LabelDateTitle_2.setObjectName(u"LabelDateTitle_2")

        self.gridLayout.addWidget(self.LabelDateTitle_2, 3, 0, 1, 1)

        self.DividingLine_2 = QFrame(self.gridLayoutWidget)
        self.DividingLine_2.setObjectName(u"DividingLine_2")
        self.DividingLine_2.setFrameShape(QFrame.HLine)
        self.DividingLine_2.setFrameShadow(QFrame.Sunken)

        self.gridLayout.addWidget(self.DividingLine_2, 2, 0, 1, 3)

        self.LayoutSpaceConstraint_2 = QVBoxLayout()
        self.LayoutSpaceConstraint_2.setSpacing(0)
        self.LayoutSpaceConstraint_2.setObjectName(u"LayoutSpaceConstraint_2")
        self.LayoutSpaceConstraint_2.setSizeConstraint(QLayout.SetDefaultConstraint)
        self.horizontalLayout_4 = QHBoxLayout()
        self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
        self.horizontalSpacer_9 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_4.addItem(self.horizontalSpacer_9)

        self.LabelSpaceTitle_2 = QLabel(self.gridLayoutWidget)
        self.LabelSpaceTitle_2.setObjectName(u"LabelSpaceTitle_2")
        sizePolicy2.setHeightForWidth(self.LabelSpaceTitle_2.sizePolicy().hasHeightForWidth())
        self.LabelSpaceTitle_2.setSizePolicy(sizePolicy2)
        self.LabelSpaceTitle_2.setMinimumSize(QSize(0, 30))
        self.LabelSpaceTitle_2.setFont(font2)
        self.LabelSpaceTitle_2.setFrameShape(QFrame.Panel)
        self.LabelSpaceTitle_2.setFrameShadow(QFrame.Raised)
        self.LabelSpaceTitle_2.setLineWidth(1)
        self.LabelSpaceTitle_2.setMidLineWidth(1)
        self.LabelSpaceTitle_2.setAlignment(Qt.AlignCenter)
        self.LabelSpaceTitle_2.setMargin(6)

        self.horizontalLayout_4.addWidget(self.LabelSpaceTitle_2)

        self.horizontalSpacer_10 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_4.addItem(self.horizontalSpacer_10)


        self.LayoutSpaceConstraint_2.addLayout(self.horizontalLayout_4)

        self.horizontalLayout_5 = QHBoxLayout()
        self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
        self.horizontalSpacer_7 = QSpacerItem(60, 20, QSizePolicy.Minimum, QSizePolicy.Minimum)

        self.horizontalLayout_5.addItem(self.horizontalSpacer_7)

        self.LabelSpaceConstraint = QLabel(self.gridLayoutWidget)
        self.LabelSpaceConstraint.setObjectName(u"LabelSpaceConstraint")
        self.LabelSpaceConstraint.setAlignment(Qt.AlignCenter)

        self.horizontalLayout_5.addWidget(self.LabelSpaceConstraint)

        self.horizontalSpacer_8 = QSpacerItem(60, 20, QSizePolicy.Minimum, QSizePolicy.Minimum)

        self.horizontalLayout_5.addItem(self.horizontalSpacer_8)


        self.LayoutSpaceConstraint_2.addLayout(self.horizontalLayout_5)


        self.gridLayout.addLayout(self.LayoutSpaceConstraint_2, 1, 0, 1, 1)

        self.LayoutTimeConstraints_2 = QVBoxLayout()
        self.LayoutTimeConstraints_2.setSpacing(0)
        self.LayoutTimeConstraints_2.setObjectName(u"LayoutTimeConstraints_2")
        self.LayoutTimeConstraints_2.setSizeConstraint(QLayout.SetDefaultConstraint)
        self.horizontalLayout_7 = QHBoxLayout()
        self.horizontalLayout_7.setObjectName(u"horizontalLayout_7")
        self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_7.addItem(self.horizontalSpacer_2)

        self.LabelTimeConstraints_2 = QLabel(self.gridLayoutWidget)
        self.LabelTimeConstraints_2.setObjectName(u"LabelTimeConstraints_2")
        sizePolicy2.setHeightForWidth(self.LabelTimeConstraints_2.sizePolicy().hasHeightForWidth())
        self.LabelTimeConstraints_2.setSizePolicy(sizePolicy2)
        self.LabelTimeConstraints_2.setMinimumSize(QSize(0, 30))
        self.LabelTimeConstraints_2.setFont(font2)
        self.LabelTimeConstraints_2.setFrameShape(QFrame.Panel)
        self.LabelTimeConstraints_2.setFrameShadow(QFrame.Raised)
        self.LabelTimeConstraints_2.setLineWidth(1)
        self.LabelTimeConstraints_2.setMidLineWidth(1)
        self.LabelTimeConstraints_2.setAlignment(Qt.AlignCenter)
        self.LabelTimeConstraints_2.setMargin(6)

        self.horizontalLayout_7.addWidget(self.LabelTimeConstraints_2)

        self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_7.addItem(self.horizontalSpacer_3)


        self.LayoutTimeConstraints_2.addLayout(self.horizontalLayout_7)

        self.listWidget = QListWidget(self.gridLayoutWidget)
        self.listWidget.setObjectName(u"listWidget")

        self.LayoutTimeConstraints_2.addWidget(self.listWidget)


        self.gridLayout.addLayout(self.LayoutTimeConstraints_2, 0, 0, 1, 1)

        self.LayoutTagConstraints_2 = QVBoxLayout()
        self.LayoutTagConstraints_2.setSpacing(0)
        self.LayoutTagConstraints_2.setObjectName(u"LayoutTagConstraints_2")
        self.LayoutTagConstraints_2.setSizeConstraint(QLayout.SetDefaultConstraint)
        self.horizontalLayout_3 = QHBoxLayout()
        self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
        self.horizontalSpacer_5 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_3.addItem(self.horizontalSpacer_5)

        self.LabelTagConstraints_2 = QLabel(self.gridLayoutWidget)
        self.LabelTagConstraints_2.setObjectName(u"LabelTagConstraints_2")
        sizePolicy2.setHeightForWidth(self.LabelTagConstraints_2.sizePolicy().hasHeightForWidth())
        self.LabelTagConstraints_2.setSizePolicy(sizePolicy2)
        self.LabelTagConstraints_2.setMinimumSize(QSize(0, 30))
        self.LabelTagConstraints_2.setFont(font2)
        self.LabelTagConstraints_2.setFrameShape(QFrame.Panel)
        self.LabelTagConstraints_2.setFrameShadow(QFrame.Raised)
        self.LabelTagConstraints_2.setLineWidth(1)
        self.LabelTagConstraints_2.setMidLineWidth(1)
        self.LabelTagConstraints_2.setAlignment(Qt.AlignCenter)
        self.LabelTagConstraints_2.setMargin(6)

        self.horizontalLayout_3.addWidget(self.LabelTagConstraints_2)

        self.horizontalSpacer_6 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_3.addItem(self.horizontalSpacer_6)


        self.LayoutTagConstraints_2.addLayout(self.horizontalLayout_3)

        self.ListTagConstraints_2 = QListWidget(self.gridLayoutWidget)
        self.ListTagConstraints_2.setObjectName(u"ListTagConstraints_2")

        self.LayoutTagConstraints_2.addWidget(self.ListTagConstraints_2)


        self.gridLayout.addLayout(self.LayoutTagConstraints_2, 0, 2, 1, 1)

        self.LabelScheduledRoom_2 = QLabel(self.gridLayoutWidget)
        self.LabelScheduledRoom_2.setObjectName(u"LabelScheduledRoom_2")
        self.LabelScheduledRoom_2.setIndent(6)

        self.gridLayout.addWidget(self.LabelScheduledRoom_2, 4, 2, 1, 1)

        self.LabelScheduledDatetime_2 = QLabel(self.gridLayoutWidget)
        self.LabelScheduledDatetime_2.setObjectName(u"LabelScheduledDatetime_2")

        self.gridLayout.addWidget(self.LabelScheduledDatetime_2, 4, 0, 1, 1)

        self.horizontalSpacer_12 = QSpacerItem(40, 20, QSizePolicy.Minimum, QSizePolicy.Minimum)

        self.gridLayout.addItem(self.horizontalSpacer_12, 0, 1, 1, 1)

        self.LabelRoomTitle_2 = QLabel(self.gridLayoutWidget)
        self.LabelRoomTitle_2.setObjectName(u"LabelRoomTitle_2")
        self.LabelRoomTitle_2.setMargin(0)
        self.LabelRoomTitle_2.setIndent(6)

        self.gridLayout.addWidget(self.LabelRoomTitle_2, 3, 2, 1, 1)

        self.LayoutExecuteScheduling = QVBoxLayout()
        self.LayoutExecuteScheduling.setSpacing(6)
        self.LayoutExecuteScheduling.setObjectName(u"LayoutExecuteScheduling")
        self.LabelRoomGroupTitle_2 = QLabel(self.gridLayoutWidget)
        self.LabelRoomGroupTitle_2.setObjectName(u"LabelRoomGroupTitle_2")
        self.LabelRoomGroupTitle_2.setMargin(2)
        self.LabelRoomGroupTitle_2.setIndent(4)

        self.LayoutExecuteScheduling.addWidget(self.LabelRoomGroupTitle_2)

        self.LabelRoomGroup_2 = QLabel(self.gridLayoutWidget)
        self.LabelRoomGroup_2.setObjectName(u"LabelRoomGroup_2")
        self.LabelRoomGroup_2.setMargin(2)
        self.LabelRoomGroup_2.setIndent(4)

        self.LayoutExecuteScheduling.addWidget(self.LabelRoomGroup_2)

        self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.LayoutExecuteScheduling.addItem(self.verticalSpacer)

        self.horizontalLayout_14 = QHBoxLayout()
        self.horizontalLayout_14.setObjectName(u"horizontalLayout_14")
        self.ButtonExecute = QPushButton(self.gridLayoutWidget)
        self.ButtonExecute.setObjectName(u"ButtonExecute")
        sizePolicy.setHeightForWidth(self.ButtonExecute.sizePolicy().hasHeightForWidth())
        self.ButtonExecute.setSizePolicy(sizePolicy)
        self.ButtonExecute.setMinimumSize(QSize(170, 32))
        font3 = QFont()
        font3.setBold(True)
        font3.setItalic(False)
        font3.setWeight(75)
        self.ButtonExecute.setFont(font3)
        self.ButtonExecute.setLayoutDirection(Qt.LeftToRight)
        self.ButtonExecute.setFlat(False)

        self.horizontalLayout_14.addWidget(self.ButtonExecute)


        self.LayoutExecuteScheduling.addLayout(self.horizontalLayout_14)


        self.gridLayout.addLayout(self.LayoutExecuteScheduling, 5, 2, 1, 1)

        self.LayoutAssignOrganizer = QVBoxLayout()
        self.LayoutAssignOrganizer.setSpacing(0)
        self.LayoutAssignOrganizer.setObjectName(u"LayoutAssignOrganizer")
        self.LayoutAssignOrganizer.setContentsMargins(8, 8, 8, 8)
        self.horizontalLayout_8 = QHBoxLayout()
        self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
        self.LabelAssignedOrganizer = QLabel(self.gridLayoutWidget)
        self.LabelAssignedOrganizer.setObjectName(u"LabelAssignedOrganizer")
        self.LabelAssignedOrganizer.setAlignment(Qt.AlignCenter)

        self.horizontalLayout_8.addWidget(self.LabelAssignedOrganizer)

        self.horizontalSpacer_14 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_8.addItem(self.horizontalSpacer_14)

        self.ButtonAssignOrganizer = QPushButton(self.gridLayoutWidget)
        self.ButtonAssignOrganizer.setObjectName(u"ButtonAssignOrganizer")

        self.horizontalLayout_8.addWidget(self.ButtonAssignOrganizer)


        self.LayoutAssignOrganizer.addLayout(self.horizontalLayout_8)


        self.gridLayout.addLayout(self.LayoutAssignOrganizer, 1, 2, 1, 1)

        self.stackedWidget_2.addWidget(self.AdminView)

        self.LayoutEventDetails.addWidget(self.stackedWidget_2)

        self.LabelHint = QLabel(self.centralwidget)
        self.LabelHint.setObjectName(u"LabelHint")
        self.LabelHint.setGeometry(QRect(440, 260, 281, 20))
        EventListWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(EventListWindow)

        self.ExtraButtons.setCurrentIndex(0)
        self.stackedWidget_2.setCurrentIndex(0)
        self.ButtonExecute.setDefault(False)


        QMetaObject.connectSlotsByName(EventListWindow)
Example #22
0
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.setEnabled(True)
        MainWindow.resize(700, 550)
        MainWindow.setStyleSheet(u"background-color: rgb(0, 0, 0);")
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.horizontalLayoutWidget = QWidget(self.centralwidget)
        self.horizontalLayoutWidget.setObjectName(u"horizontalLayoutWidget")
        self.horizontalLayoutWidget.setGeometry(QRect(40, 200, 601, 61))
        self.horizontalLayout = QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.label_3 = QLabel(self.horizontalLayoutWidget)
        self.label_3.setObjectName(u"label_3")


        self.horizontalLayout.addWidget(self.label_3)

        self.verticalSpacer = QSpacerItem(68, 75, QSizePolicy.Minimum, QSizePolicy.Expanding)


        self.horizontalLayout.addItem(self.verticalSpacer)

        self.encryptionChoiceBar = QComboBox(self.horizontalLayoutWidget)
        self.encryptionChoiceBar.setObjectName(u"encryptionChoiceBar")
        self.encryptionChoiceBar.setStyleSheet(u"background-color: rgb(255, 255, 255);\n"
                                               "color: rgb(0,0,0);")
        self.encryptionChoiceBar.setFrame(True)
        self.encryptionChoiceBar.addItem('AES')
        self.encryptionChoiceBar.addItem('BlowFish')
        self.encryptionChoiceBar.addItem('Twofish')



        self.horizontalLayout.addWidget(self.encryptionChoiceBar)

        self.horizontalLayoutWidget_3 = QWidget(self.centralwidget)
        self.horizontalLayoutWidget_3.setObjectName(u"horizontalLayoutWidget_3")
        self.horizontalLayoutWidget_3.setGeometry(QRect(310, 460, 95, 41))
        self.horizontalLayout_3 = QHBoxLayout(self.horizontalLayoutWidget_3)
        self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.donePushButton = QPushButton(self.horizontalLayoutWidget_3)
        self.donePushButton.setObjectName(u"donePushButton")
        self.donePushButton.setStyleSheet(u"background-color: rgb(255, 170, 0);\n"
                                          "background-color: rgb(255, 85, 0);")
        self.donePushButton.clicked.connect(lambda : self.behavior.done(self.encryptionChoiceBar.currentIndex(), self.passField.text()))

        self.horizontalLayout_3.addWidget(self.donePushButton)

        self.horizontalLayoutWidget_5 = QWidget(self.centralwidget)
        self.horizontalLayoutWidget_5.setObjectName(u"horizontalLayoutWidget_5")
        self.horizontalLayoutWidget_5.setGeometry(QRect(40, 350, 601, 71))
        self.horizontalLayout_6 = QHBoxLayout(self.horizontalLayoutWidget_5)
        self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
        self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.frame = QFrame(self.horizontalLayoutWidget_5)
        self.frame.setObjectName(u"frame")
        self.frame.setFrameShape(QFrame.StyledPanel)
        self.frame.setFrameShadow(QFrame.Raised)
        self.uploadLabel = QLabel(self.frame)
        self.uploadLabel.setObjectName(u"uploadLabel")
        self.uploadLabel.setGeometry(QRect(0, 20, 121, 31))
        self.uploadPushButton = QPushButton(self.frame)
        self.uploadPushButton.setObjectName(u"uploadPushButton")
        self.uploadPushButton.setGeometry(QRect(150, 20, 81, 28))
        self.uploadPushButton.setStyleSheet(u"background-color: rgb(255, 85, 0);")
        self.uploadPushButton.setAutoRepeat(False)
        self.uploadPushButton.setAutoExclusive(False)
        self.uploadPushButton.setAutoDefault(True)
        self.uploadPushButton.setFlat(False)
        self.uploadPushButton.clicked.connect(self.browse)

        self.horizontalLayout_6.addWidget(self.frame)

        self.horizontalLayoutWidget_4 = QWidget(self.centralwidget)
        self.horizontalLayoutWidget_4.setObjectName(u"horizontalLayoutWidget_4")
        self.horizontalLayoutWidget_4.setGeometry(QRect(40, 140, 481, 51))
        self.horizontalLayout_4 = QHBoxLayout(self.horizontalLayoutWidget_4)
        self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
        self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.widget_2 = QWidget(self.horizontalLayoutWidget_4)
        self.widget_2.setObjectName(u"widget_2")
        self.encRadioButton = QRadioButton(self.widget_2)
        self.encRadioButton.setObjectName(u"encRadioButton")
        self.encRadioButton.setGeometry(QRect(0, 10, 88, 21))
        self.encRadioButton.setStyleSheet(u"color: rgb(255, 255, 255);")
        self.encRadioButton.clicked.connect(self.behavior.encrypt)
        self.decRadioButton = QRadioButton(self.widget_2)
        self.decRadioButton.setObjectName(u"decRadioButton")
        self.decRadioButton.setGeometry(QRect(250, 10, 112, 21))
        self.decRadioButton.setStyleSheet(u"color: rgb(255, 255, 255);")
        self.decRadioButton.clicked.connect(self.behavior.decrypt)

        self.horizontalLayout_4.addWidget(self.widget_2)

        self.verticalLayoutWidget_2 = QWidget(self.centralwidget)
        self.verticalLayoutWidget_2.setObjectName(u"verticalLayoutWidget_2")
        self.verticalLayoutWidget_2.setGeometry(QRect(120, 10, 321, 111))
        self.verticalLayout = QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.widget_21 = QWidget(self.verticalLayoutWidget_2)
        self.widget_21.setObjectName(u"widget_21")
        self.Title = QLabel(self.widget_21)
        self.Title.setObjectName(u"Title")
        self.Title.setGeometry(QRect(10, 10, 161, 65))
        self.Title.setStyleSheet(u"font: 26pt \"Broadway\";\n"
                                 "font: 24pt \"Niagara Engraved\";")
        self.Title2 = QLabel(self.widget_21)
        self.Title2.setObjectName(u"Title2")
        self.Title2.setGeometry(QRect(10, 80, 161, 21))

        self.verticalLayout.addWidget(self.widget_21)

        self.gridLayoutWidget = QWidget(self.centralwidget)
        self.gridLayoutWidget.setObjectName(u"gridLayoutWidget")
        self.gridLayoutWidget.setGeometry(QRect(30, 20, 81, 81))
        self.gridLayout = QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setObjectName(u"gridLayout")
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.widgetPhoto = QWidget(self.gridLayoutWidget)
        self.widgetPhoto.setObjectName(u"widgetPhoto")
        self.photo = QLabel(self.widgetPhoto)
        self.photo.setObjectName(u"photo")
        self.photo.setGeometry(QRect(0, 0, 81, 81))
        self.photo.setStyleSheet(
            u"image: url(designer/icon/logo.png);")

        self.gridLayout.addWidget(self.widgetPhoto, 0, 0, 1, 1)

        self.horizontalLayoutWidget_2 = QWidget(self.centralwidget)
        self.horizontalLayoutWidget_2.setObjectName(u"horizontalLayoutWidget_2")
        self.horizontalLayoutWidget_2.setGeometry(QRect(40, 270, 601, 61))
        self.horizontalLayout_2 = QHBoxLayout(self.horizontalLayoutWidget_2)
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.widget_22 = QWidget(self.horizontalLayoutWidget_2)
        self.widget_22.setObjectName(u"widget_22")
        self.passLabel = QLabel(self.widget_22)
        self.passLabel.setObjectName(u"passLabel")
        self.passLabel.setGeometry(QRect(0, 10, 91, 31))
        self.passField = QLineEdit(self.widget_22)
        self.passField.setObjectName(u"passField")
        self.passField.setEnabled(True)
        self.passField.setGeometry(QRect(120, 10, 311, 31))
        self.passField.setStyleSheet(u"background-color: rgb(255, 255, 255);")
        self.passField.setEchoMode(QLineEdit.Password)

        self.horizontalLayout_2.addWidget(self.widget_22)

        self.horizontalLayoutWidget_6 = QWidget(self.centralwidget)
        self.horizontalLayoutWidget_6.setObjectName(u"horizontalLayoutWidget_6")
        self.horizontalLayoutWidget_6.setGeometry(QRect(40, 430, 601, 31))
        self.horizontalLayout_7 = QHBoxLayout(self.horizontalLayoutWidget_6)
        self.horizontalLayout_7.setObjectName(u"horizontalLayout_7")
        self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.checkBox = QCheckBox(self.horizontalLayoutWidget_6)
        self.checkBox.setObjectName(u"checkBox")
        self.checkBox.setStyleSheet(u"color: rgb(255, 255, 255);")

        self.horizontalLayout_7.addWidget(self.checkBox)

        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)

        self.uploadPushButton.setDefault(False)

        QMetaObject.connectSlotsByName(MainWindow)
Example #23
0
    def setupUi(self, MainWindow):
        if MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(410, 390)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.pushButton_minus = QPushButton(self.centralwidget)
        self.pushButton_minus.setObjectName(u"pushButton_minus")
        self.pushButton_minus.setGeometry(QRect(300, 74, 93, 49))
        font = QFont()
        font.setPointSize(20)
        self.pushButton_minus.setFont(font)
        self.pushButton_plus = QPushButton(self.centralwidget)
        self.pushButton_plus.setObjectName(u"pushButton_plus")
        self.pushButton_plus.setGeometry(QRect(300, 134, 93, 49))
        self.pushButton_plus.setFont(font)
        self.splitter = QSplitter(self.centralwidget)
        self.splitter.setObjectName(u"splitter")
        self.splitter.setGeometry(QRect(10, 74, 279, 49))
        self.splitter.setOrientation(Qt.Horizontal)
        self.pushButton_1 = QPushButton(self.splitter)
        self.pushButton_1.setObjectName(u"pushButton_1")
        self.pushButton_1.setFont(font)
        self.splitter.addWidget(self.pushButton_1)
        self.pushButton_2 = QPushButton(self.splitter)
        self.pushButton_2.setObjectName(u"pushButton_2")
        self.pushButton_2.setFont(font)
        self.splitter.addWidget(self.pushButton_2)
        self.pushButton_3 = QPushButton(self.splitter)
        self.pushButton_3.setObjectName(u"pushButton_3")
        self.pushButton_3.setFont(font)
        self.splitter.addWidget(self.pushButton_3)
        self.pushButton_star = QPushButton(self.centralwidget)
        self.pushButton_star.setObjectName(u"pushButton_star")
        self.pushButton_star.setGeometry(QRect(300, 194, 93, 49))
        self.pushButton_star.setFont(font)
        self.pushButton_bravely = QPushButton(self.centralwidget)
        self.pushButton_bravely.setObjectName(u"pushButton_bravely")
        self.pushButton_bravely.setGeometry(QRect(300, 250, 93, 49))
        self.pushButton_bravely.setFont(font)
        self.textEdit = QTextEdit(self.centralwidget)
        self.textEdit.setObjectName(u"textEdit")
        self.textEdit.setGeometry(QRect(10, 0, 381, 61))
        font1 = QFont()
        font1.setPointSize(22)
        self.textEdit.setFont(font1)
        self.splitter_2 = QSplitter(self.centralwidget)
        self.splitter_2.setObjectName(u"splitter_2")
        self.splitter_2.setGeometry(QRect(10, 134, 279, 49))
        self.splitter_2.setOrientation(Qt.Horizontal)
        self.splitter_5 = QSplitter(self.splitter_2)
        self.splitter_5.setObjectName(u"splitter_5")
        self.splitter_5.setOrientation(Qt.Horizontal)
        self.pushButton_4 = QPushButton(self.splitter_5)
        self.pushButton_4.setObjectName(u"pushButton_4")
        self.pushButton_4.setFont(font)
        self.splitter_5.addWidget(self.pushButton_4)
        self.pushButton_5 = QPushButton(self.splitter_5)
        self.pushButton_5.setObjectName(u"pushButton_5")
        self.pushButton_5.setFont(font)
        self.splitter_5.addWidget(self.pushButton_5)
        self.pushButton_6 = QPushButton(self.splitter_5)
        self.pushButton_6.setObjectName(u"pushButton_6")
        self.pushButton_6.setFont(font)
        self.splitter_5.addWidget(self.pushButton_6)
        self.splitter_2.addWidget(self.splitter_5)
        self.splitter_3 = QSplitter(self.centralwidget)
        self.splitter_3.setObjectName(u"splitter_3")
        self.splitter_3.setGeometry(QRect(10, 194, 279, 49))
        self.splitter_3.setOrientation(Qt.Horizontal)
        self.splitter_4 = QSplitter(self.splitter_3)
        self.splitter_4.setObjectName(u"splitter_4")
        self.splitter_4.setOrientation(Qt.Horizontal)
        self.pushButton_7 = QPushButton(self.splitter_4)
        self.pushButton_7.setObjectName(u"pushButton_7")
        self.pushButton_7.setFont(font)
        self.splitter_4.addWidget(self.pushButton_7)
        self.pushButton_8 = QPushButton(self.splitter_4)
        self.pushButton_8.setObjectName(u"pushButton_8")
        self.pushButton_8.setFont(font)
        self.splitter_4.addWidget(self.pushButton_8)
        self.pushButton_9 = QPushButton(self.splitter_4)
        self.pushButton_9.setObjectName(u"pushButton_9")
        self.pushButton_9.setFont(font)
        self.splitter_4.addWidget(self.pushButton_9)
        self.splitter_3.addWidget(self.splitter_4)
        self.splitter_6 = QSplitter(self.centralwidget)
        self.splitter_6.setObjectName(u"splitter_6")
        self.splitter_6.setGeometry(QRect(105, 250, 185, 49))
        self.splitter_6.setOrientation(Qt.Horizontal)
        self.pushButton_equal = QPushButton(self.splitter_6)
        self.pushButton_equal.setObjectName(u"pushButton_equal")
        self.pushButton_equal.setFont(font)
        self.splitter_6.addWidget(self.pushButton_equal)
        self.pushButton_C = QPushButton(self.centralwidget)
        self.pushButton_C.setObjectName(u"pushButton_C")
        self.pushButton_C.setGeometry(QRect(10, 250, 91, 49))
        self.pushButton_C.setFont(font)
        self.GroupBoxColor = QGroupBox(self.centralwidget)
        self.GroupBoxColor.setObjectName(u"GroupBoxColor")
        self.GroupBoxColor.setGeometry(QRect(9, 309, 381, 51))
        self.radioButtonRed = QRadioButton(self.GroupBoxColor)
        self.radioButtonRed.setObjectName(u"radioButtonRed")
        self.radioButtonRed.setGeometry(QRect(150, 20, 97, 20))
        self.radioButtonBlue = QRadioButton(self.GroupBoxColor)
        self.radioButtonBlue.setObjectName(u"radioButtonBlue")
        self.radioButtonBlue.setGeometry(QRect(300, 20, 61, 20))
        self.radioButtonBlack = QRadioButton(self.GroupBoxColor)
        self.radioButtonBlack.setObjectName(u"radioButtonBlack")
        self.radioButtonBlack.setGeometry(QRect(10, 20, 61, 20))
        self.radioButtonBlack.setChecked(True)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 410, 26))
        MainWindow.setMenuBar(self.menubar)

        self.retranslateUi(MainWindow)

        QMetaObject.connectSlotsByName(MainWindow)
Example #24
0
    def setupUi(self, Dialog):
        if not Dialog.objectName():
            Dialog.setObjectName(u"Dialog")
        Dialog.resize(400, 300)
        Dialog.setContextMenuPolicy(Qt.DefaultContextMenu)
        self.buttonBox = QDialogButtonBox(Dialog)
        self.buttonBox.setObjectName(u"buttonBox")
        self.buttonBox.setGeometry(QRect(30, 240, 341, 32))
        self.buttonBox.setOrientation(Qt.Horizontal)
        self.buttonBox.setStandardButtons(QDialogButtonBox.Cancel
                                          | QDialogButtonBox.Ok)
        self.layoutWidget = QWidget(Dialog)
        self.layoutWidget.setObjectName(u"layoutWidget")
        self.layoutWidget.setGeometry(QRect(20, 40, 182, 81))
        self.verticalLayout = QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.label = QLabel(self.layoutWidget)
        self.label.setObjectName(u"label")

        self.verticalLayout.addWidget(self.label)

        self.label_2 = QLabel(self.layoutWidget)
        self.label_2.setObjectName(u"label_2")

        self.verticalLayout.addWidget(self.label_2)

        self.label_3 = QLabel(self.layoutWidget)
        self.label_3.setObjectName(u"label_3")

        self.verticalLayout.addWidget(self.label_3)

        self.layoutWidget1 = QWidget(Dialog)
        self.layoutWidget1.setObjectName(u"layoutWidget1")
        self.layoutWidget1.setGeometry(QRect(200, 40, 173, 81))
        self.verticalLayout_2 = QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_2.setObjectName(u"verticalLayout_2")
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.comboBox = QComboBox(self.layoutWidget1)
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.setObjectName(u"comboBox")

        self.verticalLayout_2.addWidget(self.comboBox)

        self.lineEdit = QLineEdit(self.layoutWidget1)
        self.lineEdit.setObjectName(u"lineEdit")

        self.verticalLayout_2.addWidget(self.lineEdit)

        self.lineEdit_2 = QLineEdit(self.layoutWidget1)
        self.lineEdit_2.setObjectName(u"lineEdit_2")

        self.verticalLayout_2.addWidget(self.lineEdit_2)

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)

        QMetaObject.connectSlotsByName(Dialog)
Example #25
0
    def setupUi(self, Form):
        if not Form.objectName():
            Form.setObjectName(u"Form")
        Form.resize(395, 396)
        self.verticalLayout = QVBoxLayout(Form)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.label_view_name = QLabel(Form)
        self.label_view_name.setObjectName(u"label_view_name")
        sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_view_name.sizePolicy().hasHeightForWidth())
        self.label_view_name.setSizePolicy(sizePolicy)
        self.label_view_name.setMinimumSize(QSize(0, 20))
        self.label_view_name.setMaximumSize(QSize(16777215, 20))
        font = QFont()
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.label_view_name.setFont(font)
        self.label_view_name.setStyleSheet(u"background-color: #ecd8c6;")
        self.label_view_name.setFrameShape(QFrame.Box)
        self.label_view_name.setFrameShadow(QFrame.Sunken)
        self.label_view_name.setAlignment(Qt.AlignCenter)
        self.label_view_name.setWordWrap(True)

        self.verticalLayout.addWidget(self.label_view_name)

        self.scrollArea_4 = QScrollArea(Form)
        self.scrollArea_4.setObjectName(u"scrollArea_4")
        self.scrollArea_4.setWidgetResizable(True)
        self.scrollAreaWidgetContents_4 = QWidget()
        self.scrollAreaWidgetContents_4.setObjectName(u"scrollAreaWidgetContents_4")
        self.scrollAreaWidgetContents_4.setGeometry(QRect(0, 0, 393, 374))
        self.verticalLayout_18 = QVBoxLayout(self.scrollAreaWidgetContents_4)
        self.verticalLayout_18.setObjectName(u"verticalLayout_18")
        self.treeView_view = ReferencesTreeView(self.scrollAreaWidgetContents_4)
        self.treeView_view.setObjectName(u"treeView_view")
        font1 = QFont()
        font1.setPointSize(9)
        self.treeView_view.setFont(font1)
        self.treeView_view.setContextMenuPolicy(Qt.CustomContextMenu)
        self.treeView_view.setAcceptDrops(True)
        self.treeView_view.setSelectionMode(QAbstractItemView.ExtendedSelection)
        self.treeView_view.setTextElideMode(Qt.ElideLeft)
        self.treeView_view.setRootIsDecorated(False)

        self.verticalLayout_18.addWidget(self.treeView_view)

        self.horizontalLayout_8 = QHBoxLayout()
        self.horizontalLayout_8.setSpacing(6)
        self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
        self.horizontalSpacer_9 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_8.addItem(self.horizontalSpacer_9)

        self.pushButton_view_open_ds_form = QPushButton(self.scrollAreaWidgetContents_4)
        self.pushButton_view_open_ds_form.setObjectName(u"pushButton_view_open_ds_form")
        sizePolicy1 = QSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Fixed)
        sizePolicy1.setHorizontalStretch(0)
        sizePolicy1.setVerticalStretch(0)
        sizePolicy1.setHeightForWidth(self.pushButton_view_open_ds_form.sizePolicy().hasHeightForWidth())
        self.pushButton_view_open_ds_form.setSizePolicy(sizePolicy1)
        self.pushButton_view_open_ds_form.setMinimumSize(QSize(75, 23))
        self.pushButton_view_open_ds_form.setMaximumSize(QSize(16777215, 23))

        self.horizontalLayout_8.addWidget(self.pushButton_view_open_ds_form)


        self.verticalLayout_18.addLayout(self.horizontalLayout_8)

        self.line_5 = QFrame(self.scrollAreaWidgetContents_4)
        self.line_5.setObjectName(u"line_5")
        self.line_5.setFrameShape(QFrame.HLine)
        self.line_5.setFrameShadow(QFrame.Sunken)

        self.verticalLayout_18.addWidget(self.line_5)

        self.horizontalLayout_16 = QHBoxLayout()
        self.horizontalLayout_16.setObjectName(u"horizontalLayout_16")
        self.horizontalSpacer_12 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_16.addItem(self.horizontalSpacer_12)

        self.toolButton_view_open_dir = QToolButton(self.scrollAreaWidgetContents_4)
        self.toolButton_view_open_dir.setObjectName(u"toolButton_view_open_dir")
        self.toolButton_view_open_dir.setMinimumSize(QSize(22, 22))
        self.toolButton_view_open_dir.setMaximumSize(QSize(22, 22))
        icon = QIcon()
        icon.addFile(u":/icons/menu_icons/folder-open-solid.svg", QSize(), QIcon.Normal, QIcon.Off)
        self.toolButton_view_open_dir.setIcon(icon)

        self.horizontalLayout_16.addWidget(self.toolButton_view_open_dir)


        self.verticalLayout_18.addLayout(self.horizontalLayout_16)

        self.scrollArea_4.setWidget(self.scrollAreaWidgetContents_4)

        self.verticalLayout.addWidget(self.scrollArea_4)


        self.retranslateUi(Form)

        QMetaObject.connectSlotsByName(Form)
Example #26
0
class SlippyMap(QObject):
    updated = Signal(QRect)

    def __init__(self, parent=None):
        """

        :param parent:
        """
        super(SlippyMap, self).__init__(parent)

        self._offset = QPoint()

        self._tiles_rectangle = QRect()

        self._tile_pixmaps = {}  # Point(x, y) to QPixmap mapping

        self._manager = QNetworkAccessManager()

        self._url = QUrl()

        # public vars
        self.width = 400
        self.height = 300
        self.zoom = 4
        self.latitude = 59.9138204
        self.longitude = 10.7387413

        self._emptyTile = QPixmap(TDIM, TDIM)
        self._emptyTile.fill(Qt.lightGray)

        self.request = QNetworkRequest()
        self.cache = QNetworkDiskCache()
        self.cache.setCacheDirectory(
            QStandardPaths.writableLocation(QStandardPaths.CacheLocation))
        self._manager.setCache(self.cache)
        self._manager.finished.connect(self.handle_network_data)

    def invalidate(self):
        """

        :return:
        """
        if self.width <= 0 or self.height <= 0:
            return

        ct = tile_for_coordinate(self.latitude, self.longitude, self.zoom)
        tx = ct.x()
        ty = ct.y()

        # top-left corner of the center tile
        xp = int(self.width / 2 - (tx - math.floor(tx)) * TDIM)
        yp = int(self.height / 2 - (ty - math.floor(ty)) * TDIM)

        # first tile vertical and horizontal
        xa = (xp + TDIM - 1) / TDIM
        ya = (yp + TDIM - 1) / TDIM
        xs = int(tx) - xa
        ys = int(ty) - ya

        # offset for top-left tile
        self._offset = QPoint(int(xp - xa * TDIM), int(yp - ya * TDIM))

        # last tile vertical and horizontal
        xe = int(tx) + (self.width - xp - 1) / TDIM
        ye = int(ty) + (self.height - yp - 1) / TDIM

        # build a rect
        self._tiles_rectangle = QRect(int(xs), int(ys), int(xe - xs + 1),
                                      int(ye - ys + 1))

        if self._url.isEmpty():
            self.download()

        self.updated.emit(QRect(0, 0, self.width, self.height))

    def render(self, p: QPainter, rect: QRect):
        """
        Render a tile
        :param p: QPainter instance, place where to pain the tiles
        :param rect: QRect instance, dimensions of the painter (the window that renders the tiles)
        :return: Nothing
        """

        rx = range(self._tiles_rectangle.width())
        ry = range(self._tiles_rectangle.height())

        for x, y in product(rx, ry):
            tp = Point(x + self._tiles_rectangle.left(),
                       y + self._tiles_rectangle.top())
            box = self.tile_rectangle(tp)
            if rect.intersects(box):
                p.drawPixmap(box, self._tile_pixmaps.get(tp, self._emptyTile))

    def pan(self, delta: QPoint):
        """
        Move the map
        :param delta: x, y delta as a QPoint instance
        :return: Nothing
        """
        dx = QPointF(delta) / float(TDIM)
        center = tile_for_coordinate(self.latitude, self.longitude,
                                     self.zoom) - dx
        self.latitude = latitude_from_tile(center.y(), self.zoom)
        self.longitude = longitude_from_tile(center.x(), self.zoom)
        self.invalidate()

    # slots
    def handle_network_data(self, reply: QNetworkReply):
        """
        This function is called automatically by a QNetworkAccessManager object (self._manager)
        :param reply: QNetworkReply instance
        :return: Nothing
        """
        img = QImage()

        tp = Point(reply.request().attribute(QNetworkRequest.User))

        url = reply.url()

        if not reply.error():  # if there was no url error...
            if img.load(reply, None):  # if the image loading went well...
                self._tile_pixmaps[tp] = QPixmap.fromImage(
                    img)  # store the image in the tiles dictionary

        reply.deleteLater()

        self.updated.emit(self.tile_rectangle(tp))

        # purge unused tiles
        bound = self._tiles_rectangle.adjusted(-2, -2, 2, 2)
        for tp in list(self._tile_pixmaps.keys()):
            if not bound.contains(tp):
                del self._tile_pixmaps[tp]
        self.download()

    def download(self):
        """
        Download tile
        :return: Nothing
        """
        grab = None

        rx = range(self._tiles_rectangle.width())
        ry = range(self._tiles_rectangle.height())

        for x, y in product(rx, ry):
            tp = Point(self._tiles_rectangle.topLeft() + QPoint(x, y))
            if tp not in self._tile_pixmaps:
                grab = QPoint(tp)
                break

        if grab is None:
            self._url = QUrl()
            return

        path = 'http://tile.openstreetmap.org/%d/%d/%d.png' % (
            self.zoom, grab.x(), grab.y())
        self._url = QUrl(path)
        self.request = QNetworkRequest()
        self.request.setUrl(self._url)
        self.request.setRawHeader(b'User-Agent',
                                  b'Nokia (PyQt) Graphics Dojo 1.0')
        self.request.setAttribute(QNetworkRequest.User, grab)
        self._manager.get(self.request)

        print('downloading z:', self.zoom, 'x:', grab.x(), 'y:', grab.y())

    def tile_rectangle(self, tp: Point):
        """
        Get tile rectangle
        :param tp: Tile point
        :return: QRect instance
        """
        t = tp - self._tiles_rectangle.topLeft()
        x = t.x() * TDIM + self._offset.x()
        y = t.y() * TDIM + self._offset.y()

        return QRect(x, y, TDIM, TDIM)
 def setUp(self):
     self.original = QRect(100, 200, 300, 400)
Example #28
0
    def setupUi(self, Form):
        if Form.objectName():
            Form.setObjectName(u"Form")
        Form.resize(1000, 494)
        self.logoutpic = QLabel(Form)
        self.logoutpic.setObjectName(u"logoutpic")
        self.logoutpic.setGeometry(QRect(30, 410, 41, 41))
        self.logoutpic.setPixmap(QPixmap(u"menuPage/images/logoutIcon.png"))
        self.pagestatus = QLabel(Form)
        self.pagestatus.setObjectName(u"pagestatus")
        self.pagestatus.setGeometry(QRect(460, 10, 351, 71))
        self.sharedrivebutton = QPushButton(Form)
        self.sharedrivebutton.setObjectName(u"sharedrivebutton")
        self.sharedrivebutton.setGeometry(QRect(70, 357, 121, 31))
        self.sharedrivebutton.setStyleSheet(
            u"background-color: rgb(255, 255, 255);")
        self.sharedrivepic = QLabel(Form)
        self.sharedrivepic.setObjectName(u"sharedrivepic")
        self.sharedrivepic.setGeometry(QRect(30, 350, 41, 41))
        self.sharedrivepic.setPixmap(QPixmap(u"menuPage/images/shareIcon.png"))
        self.mydrivebutton = QPushButton(Form)
        self.mydrivebutton.setObjectName(u"mydrivebutton")
        self.mydrivebutton.setGeometry(QRect(72, 297, 121, 31))
        self.mydrivebutton.setStyleSheet(
            u"background-color: rgb(255, 255, 255);")
        self.logoutbutton = QPushButton(Form)
        self.logoutbutton.setObjectName(u"logoutbutton")
        self.logoutbutton.setGeometry(QRect(70, 417, 121, 31))
        self.logoutbutton.setStyleSheet(
            u"background-color: rgb(255, 255, 255);")
        self.adddocbutton = QPushButton(Form)
        self.adddocbutton.setObjectName(u"adddocbutton")
        self.adddocbutton.setGeometry(QRect(72, 237, 121, 31))
        self.adddocbutton.setStyleSheet(
            u"\n"
            "background-color: rgb(255, 255, 255);")
        self.adddocbutton.setCheckable(False)
        self.adddocbutton.setAutoRepeat(False)
        self.adddrivepic = QLabel(Form)
        self.adddrivepic.setObjectName(u"adddrivepic")
        self.adddrivepic.setGeometry(QRect(30, 230, 41, 41))
        self.adddrivepic.setPixmap(QPixmap(u"menuPage/images/add_icon.png"))
        self.mydrivepic = QLabel(Form)
        self.mydrivepic.setObjectName(u"mydrivepic")
        self.mydrivepic.setGeometry(QRect(30, 290, 41, 41))
        self.mydrivepic.setPixmap(QPixmap(u"menuPage/images/myDirveIcon.jpg"))
        self.menupic = QLabel(Form)
        self.menupic.setObjectName(u"menupic")
        self.menupic.setGeometry(QRect(60, 40, 151, 141))
        self.menupic.setPixmap(QPixmap(u"menuPage/images/menu_user_icon.png"))
        self.wallpaper = QLabel(Form)
        self.wallpaper.setObjectName(u"wallpaper")
        self.wallpaper.setGeometry(QRect(0, 0, 1000, 500))
        self.wallpaper.setPixmap(
            QPixmap(u"menuPage/images/menuBackground.png"))
        self.listWidget = QListWidget(Form)
        self.listWidget.setObjectName(u"listWidget")
        self.listWidget.setGeometry(QRect(275, 130, 681, 331))
        self.wallpaper.raise_()
        self.logoutpic.raise_()
        self.pagestatus.raise_()
        self.sharedrivebutton.raise_()
        self.sharedrivepic.raise_()
        self.mydrivebutton.raise_()
        self.logoutbutton.raise_()
        self.adddocbutton.raise_()
        self.adddrivepic.raise_()
        self.mydrivepic.raise_()
        self.menupic.raise_()
        self.listWidget.raise_()

        self.retranslateUi(Form)

        QMetaObject.connectSlotsByName(Form)
Example #29
0
class FullScreenDraw(QDialog):
    def __init__(self, parent=None):
        super(FullScreenDraw, self).__init__(parent)
        self.setCursor(QCursor(Qt.CrossCursor))

        self.mouse_pressed = False
        self.draw_started = False

        self.m_pix = QPixmap(400, 200)

        self.m_pix.fill(Qt.transparent)
        self.setAttribute(Qt.WA_TranslucentBackground, True)
        self.cursor_pos = []

        self.m_rect = QRect()
        main_layout = QVBoxLayout(self)
        self.setLayout(main_layout)

    def mousePressEvent(self, event):
        # self.showFullScreen()

        self.mouse_pressed = True
        self.m_rect.setTopLeft(event.pos())
        self.m_rect.setBottomRight(event.pos())
        self.mouse_start_pos = (event.globalX(), event.globalY())
        self.update()

    def mouseMoveEvent(self, event):
        if event.type() == QEvent.MouseMove:
            self.m_rect.setBottomRight(event.pos())
        self.update()

    def fix_coordinate(self, fp_coordinate, sp_coordinate):
        if fp_coordinate == sp_coordinate:
            sp_coordinate = (sp_coordinate[0]+50, sp_coordinate[1]+50)
        fp = (min(fp_coordinate[0], sp_coordinate[0])+2,
              (min(fp_coordinate[1], sp_coordinate[1])+2))
        sp = (max(fp_coordinate[0], sp_coordinate[0]),
              (max(fp_coordinate[1], sp_coordinate[1])))

        return fp[0], fp[1], sp[0]-fp[0], sp[1]-fp[1]

    def mouseReleaseEvent(self, event):
        if event.type() == QEvent.MouseButtonRelease:
            self.mouse_end_pos = (event.globalX(), event.globalY())
        self.mouse_pressed = False
        self.update()
        self.cursor_pos = self.fix_coordinate(
            self.mouse_start_pos, self.mouse_end_pos)

        logger.debug("Rectangle coordinate: " +
                     str(self.mouse_start_pos) + " ---- " + str(self.mouse_end_pos))

        self.parent().shoot_screen(self.cursor_pos)
        self.parent().show()

        self.close()

    def paintEvent(self, event):
        painter = QPainter()
        painter.begin(self)
        pen = QPen(Qt.red, 1, Qt.SolidLine)
        painter.setPen(pen)
        if self.mouse_pressed:
            painter.drawPixmap(0, 0, self.m_pix)
            painter.drawRect(self.m_rect)
            self.draw_started = True
        elif self.draw_started:
            temp_painter = QPainter(self.m_pix)
            temp_painter.setPen(pen)
            # self.painter.drawPixmap(0, 0, self.m_pix)
            temp_painter.drawRect(self.m_rect)
            painter.drawPixmap(0, 0, self.m_pix)
            self.draw_started = False
        painter.end()
Example #30
0
    def setupUi(self, MainWindow):
        if MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(943, 671)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.verticalLayout = QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.scrollArea = QScrollArea(self.centralwidget)
        self.scrollArea.setObjectName(u"scrollArea")
        self.scrollArea.setFrameShape(QFrame.NoFrame)
        self.scrollArea.setWidgetResizable(True)
        self.scrollAreaWidgetContents_3 = QWidget()
        self.scrollAreaWidgetContents_3.setObjectName(u"scrollAreaWidgetContents_3")
        self.scrollAreaWidgetContents_3.setGeometry(QRect(0, 0, 908, 546))
        self.verticalLayout_4 = QVBoxLayout(self.scrollAreaWidgetContents_3)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName(u"verticalLayout_4")
        self.tabWidget = QTabWidget(self.scrollAreaWidgetContents_3)
        self.tabWidget.setObjectName(u"tabWidget")
        self.tabWidget.setEnabled(True)
        self.tab = QWidget()
        self.tab.setObjectName(u"tab")
        self.verticalLayout_2 = QVBoxLayout(self.tab)
        self.verticalLayout_2.setObjectName(u"verticalLayout_2")
        self.gridLayout = QGridLayout()
        self.gridLayout.setObjectName(u"gridLayout")
        self.seed = QLineEdit(self.tab)
        self.seed.setObjectName(u"seed")

        self.gridLayout.addWidget(self.seed, 2, 1, 1, 1)

        self.label = QLabel(self.tab)
        self.label.setObjectName(u"label")

        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)

        self.clean_iso_path = QLineEdit(self.tab)
        self.clean_iso_path.setObjectName(u"clean_iso_path")

        self.gridLayout.addWidget(self.clean_iso_path, 0, 1, 1, 1)

        self.label_2 = QLabel(self.tab)
        self.label_2.setObjectName(u"label_2")

        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)

        self.output_folder = QLineEdit(self.tab)
        self.output_folder.setObjectName(u"output_folder")

        self.gridLayout.addWidget(self.output_folder, 1, 1, 1, 1)

        self.output_folder_browse_button = QPushButton(self.tab)
        self.output_folder_browse_button.setObjectName(u"output_folder_browse_button")

        self.gridLayout.addWidget(self.output_folder_browse_button, 1, 2, 1, 1)

        self.label_3 = QLabel(self.tab)
        self.label_3.setObjectName(u"label_3")

        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)

        self.generate_seed_button = QPushButton(self.tab)
        self.generate_seed_button.setObjectName(u"generate_seed_button")

        self.gridLayout.addWidget(self.generate_seed_button, 2, 2, 1, 1)

        self.clean_iso_path_browse_button = QPushButton(self.tab)
        self.clean_iso_path_browse_button.setObjectName(u"clean_iso_path_browse_button")

        self.gridLayout.addWidget(self.clean_iso_path_browse_button, 0, 2, 1, 1)


        self.verticalLayout_2.addLayout(self.gridLayout)

        self.groupBox = QGroupBox(self.tab)
        self.groupBox.setObjectName(u"groupBox")
        self.gridLayout_2 = QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName(u"gridLayout_2")
        self.progression_platforms_rafts = QCheckBox(self.groupBox)
        self.progression_platforms_rafts.setObjectName(u"progression_platforms_rafts")

        self.gridLayout_2.addWidget(self.progression_platforms_rafts, 7, 0, 1, 1)

        self.progression_long_sidequests = QCheckBox(self.groupBox)
        self.progression_long_sidequests.setObjectName(u"progression_long_sidequests")

        self.gridLayout_2.addWidget(self.progression_long_sidequests, 4, 1, 1, 1)

        self.progression_dungeons = QCheckBox(self.groupBox)
        self.progression_dungeons.setObjectName(u"progression_dungeons")
        self.progression_dungeons.setChecked(True)

        self.gridLayout_2.addWidget(self.progression_dungeons, 0, 0, 1, 1)

        self.progression_short_sidequests = QCheckBox(self.groupBox)
        self.progression_short_sidequests.setObjectName(u"progression_short_sidequests")

        self.gridLayout_2.addWidget(self.progression_short_sidequests, 4, 0, 1, 1)

        self.progression_treasure_charts = QCheckBox(self.groupBox)
        self.progression_treasure_charts.setObjectName(u"progression_treasure_charts")

        self.gridLayout_2.addWidget(self.progression_treasure_charts, 9, 1, 1, 1)

        self.progression_submarines = QCheckBox(self.groupBox)
        self.progression_submarines.setObjectName(u"progression_submarines")
        self.progression_submarines.setChecked(False)

        self.gridLayout_2.addWidget(self.progression_submarines, 7, 1, 1, 1)

        self.progression_triforce_charts = QCheckBox(self.groupBox)
        self.progression_triforce_charts.setObjectName(u"progression_triforce_charts")

        self.gridLayout_2.addWidget(self.progression_triforce_charts, 9, 0, 1, 1)

        self.progression_spoils_trading = QCheckBox(self.groupBox)
        self.progression_spoils_trading.setObjectName(u"progression_spoils_trading")

        self.gridLayout_2.addWidget(self.progression_spoils_trading, 4, 2, 1, 1)

        self.progression_minigames = QCheckBox(self.groupBox)
        self.progression_minigames.setObjectName(u"progression_minigames")

        self.gridLayout_2.addWidget(self.progression_minigames, 6, 0, 1, 1)

        self.progression_battlesquid = QCheckBox(self.groupBox)
        self.progression_battlesquid.setObjectName(u"progression_battlesquid")

        self.gridLayout_2.addWidget(self.progression_battlesquid, 6, 1, 1, 1)

        self.progression_big_octos_gunboats = QCheckBox(self.groupBox)
        self.progression_big_octos_gunboats.setObjectName(u"progression_big_octos_gunboats")

        self.gridLayout_2.addWidget(self.progression_big_octos_gunboats, 7, 2, 1, 1)

        self.progression_expensive_purchases = QCheckBox(self.groupBox)
        self.progression_expensive_purchases.setObjectName(u"progression_expensive_purchases")
        self.progression_expensive_purchases.setChecked(True)

        self.gridLayout_2.addWidget(self.progression_expensive_purchases, 6, 2, 1, 1)

        self.progression_great_fairies = QCheckBox(self.groupBox)
        self.progression_great_fairies.setObjectName(u"progression_great_fairies")
        self.progression_great_fairies.setChecked(True)

        self.gridLayout_2.addWidget(self.progression_great_fairies, 1, 0, 1, 1)

        self.progression_combat_secret_caves = QCheckBox(self.groupBox)
        self.progression_combat_secret_caves.setObjectName(u"progression_combat_secret_caves")

        self.gridLayout_2.addWidget(self.progression_combat_secret_caves, 0, 2, 1, 1)

        self.progression_free_gifts = QCheckBox(self.groupBox)
        self.progression_free_gifts.setObjectName(u"progression_free_gifts")
        self.progression_free_gifts.setChecked(True)

        self.gridLayout_2.addWidget(self.progression_free_gifts, 1, 1, 1, 1)

        self.progression_savage_labyrinth = QCheckBox(self.groupBox)
        self.progression_savage_labyrinth.setObjectName(u"progression_savage_labyrinth")

        self.gridLayout_2.addWidget(self.progression_savage_labyrinth, 0, 3, 1, 1)

        self.progression_puzzle_secret_caves = QCheckBox(self.groupBox)
        self.progression_puzzle_secret_caves.setObjectName(u"progression_puzzle_secret_caves")
        self.progression_puzzle_secret_caves.setChecked(True)

        self.gridLayout_2.addWidget(self.progression_puzzle_secret_caves, 0, 1, 1, 1)

        self.progression_misc = QCheckBox(self.groupBox)
        self.progression_misc.setObjectName(u"progression_misc")
        self.progression_misc.setChecked(True)

        self.gridLayout_2.addWidget(self.progression_misc, 1, 2, 1, 1)

        self.progression_eye_reef_chests = QCheckBox(self.groupBox)
        self.progression_eye_reef_chests.setObjectName(u"progression_eye_reef_chests")

        self.gridLayout_2.addWidget(self.progression_eye_reef_chests, 7, 3, 1, 1)

        self.progression_mail = QCheckBox(self.groupBox)
        self.progression_mail.setObjectName(u"progression_mail")

        self.gridLayout_2.addWidget(self.progression_mail, 4, 3, 1, 1)

        self.progression_tingle_chests = QCheckBox(self.groupBox)
        self.progression_tingle_chests.setObjectName(u"progression_tingle_chests")

        self.gridLayout_2.addWidget(self.progression_tingle_chests, 1, 3, 1, 1)

        self.progression_island_puzzles = QCheckBox(self.groupBox)
        self.progression_island_puzzles.setObjectName(u"progression_island_puzzles")

        self.gridLayout_2.addWidget(self.progression_island_puzzles, 6, 3, 1, 1)


        self.verticalLayout_2.addWidget(self.groupBox)

        self.groupBox_3 = QGroupBox(self.tab)
        self.groupBox_3.setObjectName(u"groupBox_3")
        self.gridLayout_3 = QGridLayout(self.groupBox_3)
        self.gridLayout_3.setObjectName(u"gridLayout_3")
        self.horizontalLayout_5 = QHBoxLayout()
        self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
        self.label_for_sword_mode = QLabel(self.groupBox_3)
        self.label_for_sword_mode.setObjectName(u"label_for_sword_mode")

        self.horizontalLayout_5.addWidget(self.label_for_sword_mode)

        self.sword_mode = QComboBox(self.groupBox_3)
        self.sword_mode.addItem("")
        self.sword_mode.addItem("")
        self.sword_mode.addItem("")
        self.sword_mode.setObjectName(u"sword_mode")

        self.horizontalLayout_5.addWidget(self.sword_mode)


        self.gridLayout_3.addLayout(self.horizontalLayout_5, 0, 0, 1, 1)

        self.randomize_charts = QCheckBox(self.groupBox_3)
        self.randomize_charts.setObjectName(u"randomize_charts")

        self.gridLayout_3.addWidget(self.randomize_charts, 2, 0, 1, 1)

        self.randomize_starting_island = QCheckBox(self.groupBox_3)
        self.randomize_starting_island.setObjectName(u"randomize_starting_island")

        self.gridLayout_3.addWidget(self.randomize_starting_island, 2, 1, 1, 1)

        self.keylunacy = QCheckBox(self.groupBox_3)
        self.keylunacy.setObjectName(u"keylunacy")

        self.gridLayout_3.addWidget(self.keylunacy, 1, 0, 1, 1)

        self.horizontalLayout_2 = QHBoxLayout()
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.label_for_num_starting_triforce_shards = QLabel(self.groupBox_3)
        self.label_for_num_starting_triforce_shards.setObjectName(u"label_for_num_starting_triforce_shards")
        sizePolicy = QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_for_num_starting_triforce_shards.sizePolicy().hasHeightForWidth())
        self.label_for_num_starting_triforce_shards.setSizePolicy(sizePolicy)

        self.horizontalLayout_2.addWidget(self.label_for_num_starting_triforce_shards)

        self.num_starting_triforce_shards = QComboBox(self.groupBox_3)
        self.num_starting_triforce_shards.addItem("")
        self.num_starting_triforce_shards.addItem("")
        self.num_starting_triforce_shards.addItem("")
        self.num_starting_triforce_shards.addItem("")
        self.num_starting_triforce_shards.addItem("")
        self.num_starting_triforce_shards.addItem("")
        self.num_starting_triforce_shards.addItem("")
        self.num_starting_triforce_shards.addItem("")
        self.num_starting_triforce_shards.addItem("")
        self.num_starting_triforce_shards.setObjectName(u"num_starting_triforce_shards")
        self.num_starting_triforce_shards.setMaximumSize(QSize(40, 16777215))

        self.horizontalLayout_2.addWidget(self.num_starting_triforce_shards)

        self.widget = QWidget(self.groupBox_3)
        self.widget.setObjectName(u"widget")

        self.horizontalLayout_2.addWidget(self.widget)


        self.gridLayout_3.addLayout(self.horizontalLayout_2, 1, 2, 1, 1)

        self.race_mode = QCheckBox(self.groupBox_3)
        self.race_mode.setObjectName(u"race_mode")

        self.gridLayout_3.addWidget(self.race_mode, 1, 1, 1, 1)

        self.horizontalLayout_8 = QHBoxLayout()
        self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
        self.label_for_randomize_entrances = QLabel(self.groupBox_3)
        self.label_for_randomize_entrances.setObjectName(u"label_for_randomize_entrances")

        self.horizontalLayout_8.addWidget(self.label_for_randomize_entrances)

        self.randomize_entrances = QComboBox(self.groupBox_3)
        self.randomize_entrances.addItem("")
        self.randomize_entrances.addItem("")
        self.randomize_entrances.addItem("")
        self.randomize_entrances.addItem("")
        self.randomize_entrances.addItem("")
        self.randomize_entrances.setObjectName(u"randomize_entrances")

        self.horizontalLayout_8.addWidget(self.randomize_entrances)

        self.widget_2 = QWidget(self.groupBox_3)
        self.widget_2.setObjectName(u"widget_2")

        self.horizontalLayout_8.addWidget(self.widget_2)


        self.gridLayout_3.addLayout(self.horizontalLayout_8, 0, 1, 1, 2)

        self.randomize_music = QCheckBox(self.groupBox_3)
        self.randomize_music.setObjectName(u"randomize_music")

        self.gridLayout_3.addWidget(self.randomize_music, 2, 3, 1, 1)

        self.randomize_enemy_palettes = QCheckBox(self.groupBox_3)
        self.randomize_enemy_palettes.setObjectName(u"randomize_enemy_palettes")

        self.gridLayout_3.addWidget(self.randomize_enemy_palettes, 2, 2, 1, 1)

        self.randomize_enemies = QCheckBox(self.groupBox_3)
        self.randomize_enemies.setObjectName(u"randomize_enemies")

        self.gridLayout_3.addWidget(self.randomize_enemies, 0, 3, 1, 1)

        self.widget_5 = QWidget(self.groupBox_3)
        self.widget_5.setObjectName(u"widget_5")

        self.gridLayout_3.addWidget(self.widget_5, 1, 3, 1, 1)


        self.verticalLayout_2.addWidget(self.groupBox_3)

        self.groupBox_2 = QGroupBox(self.tab)
        self.groupBox_2.setObjectName(u"groupBox_2")
        self.gridLayout_4 = QGridLayout(self.groupBox_2)
        self.gridLayout_4.setObjectName(u"gridLayout_4")
        self.instant_text_boxes = QCheckBox(self.groupBox_2)
        self.instant_text_boxes.setObjectName(u"instant_text_boxes")
        self.instant_text_boxes.setChecked(True)

        self.gridLayout_4.addWidget(self.instant_text_boxes, 0, 1, 1, 1)

        self.skip_rematch_bosses = QCheckBox(self.groupBox_2)
        self.skip_rematch_bosses.setObjectName(u"skip_rematch_bosses")
        self.skip_rematch_bosses.setChecked(True)

        self.gridLayout_4.addWidget(self.skip_rematch_bosses, 1, 0, 1, 1)

        self.reveal_full_sea_chart = QCheckBox(self.groupBox_2)
        self.reveal_full_sea_chart.setObjectName(u"reveal_full_sea_chart")
        self.reveal_full_sea_chart.setChecked(True)

        self.gridLayout_4.addWidget(self.reveal_full_sea_chart, 0, 2, 1, 1)

        self.add_shortcut_warps_between_dungeons = QCheckBox(self.groupBox_2)
        self.add_shortcut_warps_between_dungeons.setObjectName(u"add_shortcut_warps_between_dungeons")

        self.gridLayout_4.addWidget(self.add_shortcut_warps_between_dungeons, 1, 1, 1, 1)

        self.swift_sail = QCheckBox(self.groupBox_2)
        self.swift_sail.setObjectName(u"swift_sail")
        self.swift_sail.setChecked(True)

        self.gridLayout_4.addWidget(self.swift_sail, 0, 0, 1, 1)

        self.remove_title_and_ending_videos = QCheckBox(self.groupBox_2)
        self.remove_title_and_ending_videos.setObjectName(u"remove_title_and_ending_videos")
        self.remove_title_and_ending_videos.setChecked(True)

        self.gridLayout_4.addWidget(self.remove_title_and_ending_videos, 1, 2, 1, 1)

        self.remove_music = QCheckBox(self.groupBox_2)
        self.remove_music.setObjectName(u"remove_music")

        self.gridLayout_4.addWidget(self.remove_music, 1, 3, 1, 1)

        self.invert_camera_x_axis = QCheckBox(self.groupBox_2)
        self.invert_camera_x_axis.setObjectName(u"invert_camera_x_axis")

        self.gridLayout_4.addWidget(self.invert_camera_x_axis, 0, 3, 1, 1)


        self.verticalLayout_2.addWidget(self.groupBox_2)

        self.groupBox_4 = QGroupBox(self.tab)
        self.groupBox_4.setObjectName(u"groupBox_4")
        self.gridLayout_6 = QGridLayout(self.groupBox_4)
        self.gridLayout_6.setObjectName(u"gridLayout_6")
        self.disable_tingle_chests_with_tingle_bombs = QCheckBox(self.groupBox_4)
        self.disable_tingle_chests_with_tingle_bombs.setObjectName(u"disable_tingle_chests_with_tingle_bombs")

        self.gridLayout_6.addWidget(self.disable_tingle_chests_with_tingle_bombs, 0, 1, 1, 1)

        self.do_not_generate_spoiler_log = QCheckBox(self.groupBox_4)
        self.do_not_generate_spoiler_log.setObjectName(u"do_not_generate_spoiler_log")

        self.gridLayout_6.addWidget(self.do_not_generate_spoiler_log, 0, 0, 1, 1)

        self.widget_3 = QWidget(self.groupBox_4)
        self.widget_3.setObjectName(u"widget_3")

        self.gridLayout_6.addWidget(self.widget_3, 0, 2, 1, 1)

        self.widget_4 = QWidget(self.groupBox_4)
        self.widget_4.setObjectName(u"widget_4")

        self.gridLayout_6.addWidget(self.widget_4, 0, 3, 1, 1)


        self.verticalLayout_2.addWidget(self.groupBox_4)

        self.tabWidget.addTab(self.tab, "")
        self.tab_3 = QWidget()
        self.tab_3.setObjectName(u"tab_3")
        self.tab_3.setEnabled(True)
        self.verticalLayout_10 = QVBoxLayout(self.tab_3)
        self.verticalLayout_10.setObjectName(u"verticalLayout_10")
        self.horizontalLayout_9 = QHBoxLayout()
        self.horizontalLayout_9.setObjectName(u"horizontalLayout_9")
        self.verticalLayout_8 = QVBoxLayout()
        self.verticalLayout_8.setObjectName(u"verticalLayout_8")
        self.label_for_randomized_gear = QLabel(self.tab_3)
        self.label_for_randomized_gear.setObjectName(u"label_for_randomized_gear")

        self.verticalLayout_8.addWidget(self.label_for_randomized_gear)

        self.randomized_gear = QListView(self.tab_3)
        self.randomized_gear.setObjectName(u"randomized_gear")
        self.randomized_gear.setEditTriggers(QAbstractItemView.NoEditTriggers)
        self.randomized_gear.setSelectionMode(QAbstractItemView.ExtendedSelection)

        self.verticalLayout_8.addWidget(self.randomized_gear)


        self.horizontalLayout_9.addLayout(self.verticalLayout_8)

        self.verticalLayout_7 = QVBoxLayout()
        self.verticalLayout_7.setObjectName(u"verticalLayout_7")
        self.verticalSpacer_3 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.verticalLayout_7.addItem(self.verticalSpacer_3)

        self.remove_gear = QPushButton(self.tab_3)
        self.remove_gear.setObjectName(u"remove_gear")
        self.remove_gear.setMinimumSize(QSize(0, 80))

        self.verticalLayout_7.addWidget(self.remove_gear)

        self.add_gear = QPushButton(self.tab_3)
        self.add_gear.setObjectName(u"add_gear")
        self.add_gear.setMinimumSize(QSize(0, 80))

        self.verticalLayout_7.addWidget(self.add_gear)

        self.verticalSpacer_4 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.verticalLayout_7.addItem(self.verticalSpacer_4)


        self.horizontalLayout_9.addLayout(self.verticalLayout_7)

        self.verticalLayout_9 = QVBoxLayout()
        self.verticalLayout_9.setObjectName(u"verticalLayout_9")
        self.label_for_starting_gear = QLabel(self.tab_3)
        self.label_for_starting_gear.setObjectName(u"label_for_starting_gear")

        self.verticalLayout_9.addWidget(self.label_for_starting_gear)

        self.starting_gear = QListView(self.tab_3)
        self.starting_gear.setObjectName(u"starting_gear")
        self.starting_gear.setEditTriggers(QAbstractItemView.NoEditTriggers)
        self.starting_gear.setSelectionMode(QAbstractItemView.ExtendedSelection)

        self.verticalLayout_9.addWidget(self.starting_gear)


        self.horizontalLayout_9.addLayout(self.verticalLayout_9)


        self.verticalLayout_10.addLayout(self.horizontalLayout_9)

        self.horizontalLayout_10 = QHBoxLayout()
        self.horizontalLayout_10.setObjectName(u"horizontalLayout_10")
        self.label_6 = QLabel(self.tab_3)
        self.label_6.setObjectName(u"label_6")

        self.horizontalLayout_10.addWidget(self.label_6)

        self.starting_hcs = QSpinBox(self.tab_3)
        self.starting_hcs.setObjectName(u"starting_hcs")
        self.starting_hcs.setLayoutDirection(Qt.LeftToRight)
        self.starting_hcs.setMaximum(6)
        self.starting_hcs.setValue(0)
        self.starting_hcs.setProperty("displayIntegerBase", 10)

        self.horizontalLayout_10.addWidget(self.starting_hcs)

        self.label_5 = QLabel(self.tab_3)
        self.label_5.setObjectName(u"label_5")

        self.horizontalLayout_10.addWidget(self.label_5)

        self.starting_pohs = QSpinBox(self.tab_3)
        self.starting_pohs.setObjectName(u"starting_pohs")
        self.starting_pohs.setMaximum(44)
        self.starting_pohs.setValue(0)
        self.starting_pohs.setProperty("displayIntegerBase", 10)

        self.horizontalLayout_10.addWidget(self.starting_pohs)

        self.current_health = QLabel(self.tab_3)
        self.current_health.setObjectName(u"current_health")

        self.horizontalLayout_10.addWidget(self.current_health)

        self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_10.addItem(self.horizontalSpacer_3)


        self.verticalLayout_10.addLayout(self.horizontalLayout_10)

        self.tabWidget.addTab(self.tab_3, "")
        self.tab_2 = QWidget()
        self.tab_2.setObjectName(u"tab_2")
        self.verticalLayout_3 = QVBoxLayout(self.tab_2)
        self.verticalLayout_3.setObjectName(u"verticalLayout_3")
        self.gridLayout_5 = QGridLayout()
        self.gridLayout_5.setObjectName(u"gridLayout_5")
        self.horizontalLayout_3 = QHBoxLayout()
        self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
        self.label_for_custom_player_model = QLabel(self.tab_2)
        self.label_for_custom_player_model.setObjectName(u"label_for_custom_player_model")

        self.horizontalLayout_3.addWidget(self.label_for_custom_player_model)

        self.custom_player_model = QComboBox(self.tab_2)
        self.custom_player_model.setObjectName(u"custom_player_model")

        self.horizontalLayout_3.addWidget(self.custom_player_model)


        self.gridLayout_5.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)

        self.horizontalLayout_12 = QHBoxLayout()
        self.horizontalLayout_12.setObjectName(u"horizontalLayout_12")
        self.label_for_custom_color_preset = QLabel(self.tab_2)
        self.label_for_custom_color_preset.setObjectName(u"label_for_custom_color_preset")

        self.horizontalLayout_12.addWidget(self.label_for_custom_color_preset)

        self.custom_color_preset = QComboBox(self.tab_2)
        self.custom_color_preset.setObjectName(u"custom_color_preset")

        self.horizontalLayout_12.addWidget(self.custom_color_preset)


        self.gridLayout_5.addLayout(self.horizontalLayout_12, 1, 0, 1, 1)

        self.horizontalLayout_11 = QHBoxLayout()
        self.horizontalLayout_11.setObjectName(u"horizontalLayout_11")
        self.randomize_all_custom_colors_together = QPushButton(self.tab_2)
        self.randomize_all_custom_colors_together.setObjectName(u"randomize_all_custom_colors_together")

        self.horizontalLayout_11.addWidget(self.randomize_all_custom_colors_together)

        self.randomize_all_custom_colors_separately = QPushButton(self.tab_2)
        self.randomize_all_custom_colors_separately.setObjectName(u"randomize_all_custom_colors_separately")

        self.horizontalLayout_11.addWidget(self.randomize_all_custom_colors_separately)


        self.gridLayout_5.addLayout(self.horizontalLayout_11, 1, 1, 1, 1)

        self.horizontalLayout_7 = QHBoxLayout()
        self.horizontalLayout_7.setObjectName(u"horizontalLayout_7")
        self.player_in_casual_clothes = QCheckBox(self.tab_2)
        self.player_in_casual_clothes.setObjectName(u"player_in_casual_clothes")

        self.horizontalLayout_7.addWidget(self.player_in_casual_clothes)

        self.disable_custom_player_voice = QCheckBox(self.tab_2)
        self.disable_custom_player_voice.setObjectName(u"disable_custom_player_voice")

        self.horizontalLayout_7.addWidget(self.disable_custom_player_voice)


        self.gridLayout_5.addLayout(self.horizontalLayout_7, 0, 1, 1, 1)


        self.verticalLayout_3.addLayout(self.gridLayout_5)

        self.custom_model_comment = QLabel(self.tab_2)
        self.custom_model_comment.setObjectName(u"custom_model_comment")
        self.custom_model_comment.setMaximumSize(QSize(810, 16777215))
        self.custom_model_comment.setWordWrap(True)

        self.verticalLayout_3.addWidget(self.custom_model_comment)

        self.horizontalLayout_6 = QHBoxLayout()
        self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
        self.verticalLayout_5 = QVBoxLayout()
        self.verticalLayout_5.setObjectName(u"verticalLayout_5")
        self.custom_colors_layout = QVBoxLayout()
        self.custom_colors_layout.setObjectName(u"custom_colors_layout")

        self.verticalLayout_5.addLayout(self.custom_colors_layout)

        self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.verticalLayout_5.addItem(self.verticalSpacer)


        self.horizontalLayout_6.addLayout(self.verticalLayout_5)

        self.verticalLayout_6 = QVBoxLayout()
        self.verticalLayout_6.setObjectName(u"verticalLayout_6")
        self.custom_model_preview_label = QLabel(self.tab_2)
        self.custom_model_preview_label.setObjectName(u"custom_model_preview_label")

        self.verticalLayout_6.addWidget(self.custom_model_preview_label)

        self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.verticalLayout_6.addItem(self.verticalSpacer_2)


        self.horizontalLayout_6.addLayout(self.verticalLayout_6)


        self.verticalLayout_3.addLayout(self.horizontalLayout_6)

        self.tabWidget.addTab(self.tab_2, "")

        self.verticalLayout_4.addWidget(self.tabWidget)

        self.scrollArea.setWidget(self.scrollAreaWidgetContents_3)

        self.verticalLayout.addWidget(self.scrollArea)

        self.option_description = QLabel(self.centralwidget)
        self.option_description.setObjectName(u"option_description")
        self.option_description.setMinimumSize(QSize(0, 32))
        self.option_description.setWordWrap(True)

        self.verticalLayout.addWidget(self.option_description)

        self.horizontalLayout_4 = QHBoxLayout()
        self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
        self.label_4 = QLabel(self.centralwidget)
        self.label_4.setObjectName(u"label_4")

        self.horizontalLayout_4.addWidget(self.label_4)

        self.permalink = QLineEdit(self.centralwidget)
        self.permalink.setObjectName(u"permalink")

        self.horizontalLayout_4.addWidget(self.permalink)


        self.verticalLayout.addLayout(self.horizontalLayout_4)

        self.update_checker_label = QLabel(self.centralwidget)
        self.update_checker_label.setObjectName(u"update_checker_label")
        self.update_checker_label.setOpenExternalLinks(True)

        self.verticalLayout.addWidget(self.update_checker_label)

        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.about_button = QPushButton(self.centralwidget)
        self.about_button.setObjectName(u"about_button")

        self.horizontalLayout.addWidget(self.about_button)

        self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout.addItem(self.horizontalSpacer)

        self.reset_settings_to_default = QPushButton(self.centralwidget)
        self.reset_settings_to_default.setObjectName(u"reset_settings_to_default")
        self.reset_settings_to_default.setMinimumSize(QSize(180, 0))

        self.horizontalLayout.addWidget(self.reset_settings_to_default)

        self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout.addItem(self.horizontalSpacer_2)

        self.randomize_button = QPushButton(self.centralwidget)
        self.randomize_button.setObjectName(u"randomize_button")

        self.horizontalLayout.addWidget(self.randomize_button)


        self.verticalLayout.addLayout(self.horizontalLayout)

        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)

        self.tabWidget.setCurrentIndex(0)


        QMetaObject.connectSlotsByName(MainWindow)
Example #31
0
    def testDefault(self):
        #QRect()
        obj = QRect()

        self.assert_(obj.isNull())
Example #32
0
    else:
        settings.setValue(key, value)


# General
setval('askedAboutAnalyticsInVersion12', 'true')
setval('showSplashScreen', 'false')
setval('submitUsageStatistics', 'false')

# Nuke
setval('Nuke/startupWorkspace', 'floating-comp')

# ColorPicker
# The sub-sections HSV RGB Swatches etc get converted to "\" when loaded in the uistate
setval('ColorPicker/Dynamic', 'true')
setval('ColorPicker/ShownColorSpaces/HSV', 'true')
setval('ColorPicker/ShownColorSpaces/RGB', 'true')
setval('ColorPicker/ShownColorSpaces/Swatches', 'false')
setval('ColorPicker/ShownColorSpaces/TMI', 'true')
setval('ColorPicker/ShownColorSpaces/Wheel', 'true')

# WindowLocations
# Has to be a QRect object, which gets translated to @Rect() in the uistate
setval('WindowLocations/ColorPicker', QRect(621, 574, 1041, 370))

# scripteditor
setval('scripteditor/SaveAndLoadHistory', 'true')

# FileBrowser
setval('FileBrowser/preview', 'true')
setval('FileBrowser/size', QSize(1050, 1050))
Example #33
0
    def setupUi(self, DescomplicadaMente):
        if not DescomplicadaMente.objectName():
            DescomplicadaMente.setObjectName(u"DescomplicadaMente")
        # WINDOW
        DescomplicadaMente.resize(500, 550)
        DescomplicadaMente.setMinimumSize(QSize(500, 550))
        DescomplicadaMente.setMaximumSize(QSize(500, 550))
        icon = QIcon()
        icon.addFile(u":/logo/logo-cerebro.png", QSize(), QIcon.Normal, QIcon.Off)
        DescomplicadaMente.setWindowIcon(icon)
        DescomplicadaMente.setStyleSheet(u"QFrame{\n"
"	text-align: center;\n"
"	background-color: rgb(255, 255, 255);\n"
"}\n"
"QPushButton{\n"
"	border-radius: 3px;\n"
"	background-color: rgb(0, 240, 240);\n"
"	padding: 6px;\n"
"	margin: 0px;\n"
"}\n"
"QPushButton:hover{\n"
"	background-color: rgb(170, 255, 255)\n"
"}\n"
"QWidgets{\n"
"	background-color: rgb(85, 170, 255);\n"
"}")

        # CENTRAL WIDGET
        self.centralwidget = QWidget(DescomplicadaMente)
        self.centralwidget.setObjectName(u"centralwidget")
        self.centralwidget.setMinimumSize(QSize(500, 550))
        self.centralwidget.setMaximumSize(QSize(500, 550))
        
        # HOME
        self.home = QFrame(self.centralwidget)
        self.home.setObjectName(u"home")
        self.home.setGeometry(QRect(0, 0, 500, 550))
        self.home.setMinimumSize(QSize(500, 550))
        self.home.setMaximumSize(QSize(500, 550))
        self.home.setStyleSheet(u"*{\n"
"	font: 8pt \"Sitka Text\";\n"
"	background-color: rgb(13,13, 13);\n"
"}\n"
"QPushButton{\n"
"	background-color: rgb(85, 255, 255);\n"
"	border-radius: 16px;\n"
"}\n"
"QPushButton:hover{\n"
"	background-color: rgb(65, 230, 230);\n"
"}")
        self.home.setFrameShape(QFrame.StyledPanel)
        self.home.setFrameShadow(QFrame.Raised)
        self.wdConteudo = QWidget(self.home)
        self.wdConteudo.setObjectName(u"wdConteudo")
        self.wdConteudo.setGeometry(QRect(9, 120, 420, 382))
        self.wdConteudo.setStyleSheet(u"background-color: rgb(30, 30, 30);\n"
"border-radius: 7px;")

        # FEED CONTENT
        self.sclaFeed = QScrollArea(self.wdConteudo)

        self.scrollAreaWidgetContents_2 = QWidget()
        
        self.verticalLayoutWidget_6 = QWidget(self.scrollAreaWidgetContents_2)
        
        self.layConteudo = QVBoxLayout(self.verticalLayoutWidget_6) 
        
        contentBoardConfig(self.sclaFeed, u"sclaFeed", self.scrollAreaWidgetContents_2, u"scrollAreaWidgetContents_2", self.verticalLayoutWidget_6, u"verticalLayoutWidget_6", self.layConteudo, u"layConteudo")
        
        # MAIN CONTENT
        self.sclaConteudos = QScrollArea(self.wdConteudo)
             
        self.scrollAreaWidgetContents_3 = QWidget()
        
        self.verticalLayoutWidget_7 = QWidget(self.scrollAreaWidgetContents_3)
        
        self.layConteudo_2 = QVBoxLayout(self.verticalLayoutWidget_7)
        
        contentBoardConfig(self.sclaConteudos, u"sclaConteudos", self.scrollAreaWidgetContents_3, u"scrollAreaWidgetContents_3", self.verticalLayoutWidget_7, u"verticalLayoutWidget_7", self.layConteudo_2, u"layConteudo_2")
        
        # NOTIFY CONTENT
        self.sclaNotificacao = QScrollArea(self.wdConteudo)

        self.scrollAreaWidgetContents_4 = QWidget()

        self.horizontalLayoutWidget_3 = QWidget(self.scrollAreaWidgetContents_4)

        self.horizontalLayout = QHBoxLayout(self.horizontalLayoutWidget_3)
        
        contentBoardConfig(self.sclaNotificacao, u"sclaNotificacao", self.scrollAreaWidgetContents_4, u"scrollAreaWidgetContents_3", self.horizontalLayoutWidget_3, u"horizontalLayoutWidget_3", self.horizontalLayout, u"horizontalLayout")
        
        # LIBRARY CONTENT
        self.sclaBiblioteca = QScrollArea(self.wdConteudo)
        self.sclaBiblioteca.setObjectName(u"sclaBiblioteca")
        self.sclaBiblioteca.setGeometry(QRect(0, 0, 420, 381))
        self.sclaBiblioteca.setStyleSheet(u"")
        self.sclaBiblioteca.setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
        self.sclaBiblioteca.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
        self.sclaBiblioteca.setWidgetResizable(True)
        self.scrollAreaWidgetContents_5 = QWidget()
        self.scrollAreaWidgetContents_5.setObjectName(u"scrollAreaWidgetContents_5")
        self.scrollAreaWidgetContents_5.setGeometry(QRect(0, 0, 420, 381))
        self.verticalLayoutWidget_9 = QWidget(self.scrollAreaWidgetContents_5)
        self.verticalLayoutWidget_9.setObjectName(u"verticalLayoutWidget_9")
        self.verticalLayoutWidget_9.setGeometry(QRect(10, 10, 420, 151))
        self.layConteudo_3 = QVBoxLayout(self.verticalLayoutWidget_9)
        self.layConteudo_3.setSpacing(3)
        self.layConteudo_3.setObjectName(u"layConteudo_3")
        self.layConteudo_3.setContentsMargins(0, 0, 0, 0)
        self.sclaBiblioteca.setWidget(self.scrollAreaWidgetContents_5)
        
        # ORDER CONTENT
        self.sclaFeed.raise_()
        self.sclaBiblioteca.raise_()
        self.sclaConteudos.raise_()
        self.sclaNotificacao.raise_()
        
        # HOME MENU
        self.horizontalLayoutWidget_5 = QWidget(self.home)
        self.horizontalLayoutWidget_5.setObjectName(u"horizontalLayoutWidget_5")
        self.horizontalLayoutWidget_5.setGeometry(QRect(0, 510, 500, 44))
        self.layMenu_2 = QHBoxLayout(self.horizontalLayoutWidget_5)
        self.layMenu_2.setObjectName(u"layMenu_2")
        self.layMenu_2.setContentsMargins(0, 0, 0, 0)
        
        self.btnHome = QPushButton(self.horizontalLayoutWidget_5)
        icon1 = QIcon()
        self.btnHome.setIconSize(QSize(20, 20))
        buttonConfig(self.btnHome, u"btnHome", icon1, u":/icons/home.png", self.layMenu_2)

        self.btnBiblioteca = QPushButton(self.horizontalLayoutWidget_5)
        icon2 = QIcon()
        self.btnBiblioteca.setIconSize(QSize(20, 20))
        buttonConfig(self.btnBiblioteca, u"btnBiblioteca", icon2, u":/icons/biblioteca.png", self.layMenu_2)
        
        # MAIN MENU
        self.wdMenuPrincipal = QWidget(self.home)
        self.wdMenuPrincipal.setObjectName(u"wdMenuPrincipal")
        self.wdMenuPrincipal.setGeometry(QRect(0, 0, 500, 71))
        self.wdMenuPrincipal.setStyleSheet(u"*{\n"
"	background-color: rgb(30, 30, 30);\n"
"	border-radius: 7px;\n"
"	text-transform: uppercase;\n"
"}\n"
"QPushButton{\n"
"	background-color: rgb(85, 255, 255);\n"
"	border-radius: 3px;\n"
"}")
        self.horizontalLayoutWidget = QWidget(self.wdMenuPrincipal)
        self.horizontalLayoutWidget.setObjectName(u"horizontalLayoutWidget")
        self.horizontalLayoutWidget.setGeometry(QRect(0, 0, 500, 44))
        self.layMenuHome = QHBoxLayout(self.horizontalLayoutWidget)
        self.layMenuHome.setSpacing(2)
        self.layMenuHome.setObjectName(u"layMenuHome")
        self.layMenuHome.setContentsMargins(0, 0, 0, 0)
        
        self.btnConteudos = QPushButton(self.horizontalLayoutWidget)
        self.btnConteudos.setEnabled(True)
        icon3 = QIcon()
        self.btnConteudos.setIconSize(QSize(18, 18))
        buttonConfig(self.btnConteudos, u"btnConteudos", icon3, u":/icons/conteudo.png", self.layMenuHome)
        
        self.btnEmocoes = QPushButton(self.horizontalLayoutWidget)
        icon4 = QIcon()
        self.btnEmocoes.setIconSize(QSize(18, 18))
        buttonConfig(self.btnEmocoes, u"btnEmocoes", icon4, u":/icons/emocoes.png", self.layMenuHome)

        self.btnLogout = QPushButton(self.horizontalLayoutWidget)
        icon5 = QIcon()
        self.btnLogout.setIconSize(QSize(18, 18))
        buttonConfig(self.btnLogout, u"btnLogout", icon5, u":/icons/login.png", self.layMenuHome)

        # EMOTIONS MENU
        self.opcoes = QFrame(self.wdMenuPrincipal)
        frameConfig(self.opcoes, u"opcoes", 0, 40, 500, 31)
        
        self.horizontalLayoutWidget_2 = QWidget(self.opcoes)
        self.horizontalLayoutWidget_2.setObjectName(u"horizontalLayoutWidget_2")
        self.horizontalLayoutWidget_2.setGeometry(QRect(0, -10, 500, 51))
        self.layOpcoes = QHBoxLayout(self.horizontalLayoutWidget_2)
        self.layOpcoes.setSpacing(3)
        self.layOpcoes.setObjectName(u"layOpcoes")
        self.layOpcoes.setContentsMargins(0, 0, 0, 0)
        
        self.btnRaiva = QPushButton(self.horizontalLayoutWidget_2)
        iconRaiva = QIcon()
        buttonConfig(self.btnRaiva, u"btnRaiva", iconRaiva, u":/icons/angry-solid.svg", self.layOpcoes)

        self.btnTristeza = QPushButton(self.horizontalLayoutWidget_2)
        iconTriste = QIcon()
        buttonConfig(self.btnTristeza, u"btnTristeza", iconTriste, u":/icons/sad-tear-solid.svg", self.layOpcoes)

        self.btnDesespero = QPushButton(self.horizontalLayoutWidget_2)
        iconDesesp = QIcon()
        buttonConfig(self.btnDesespero, u"btnDesespero", iconDesesp, u":/icons/tired-solid.svg", self.layOpcoes)
        
        # CONTENTS MENU
        self.opcoes_2 = QFrame(self.wdMenuPrincipal)
        frameConfig(self.opcoes_2, u"opcoes_2", 0, 40, 500, 31)
        
        self.horizontalLayoutWidget_4 = QWidget(self.opcoes_2)
        self.horizontalLayoutWidget_4.setObjectName(u"horizontalLayoutWidget_4")
        self.horizontalLayoutWidget_4.setGeometry(QRect(0, -10, 500, 51))
        self.layOpcoes_2 = QHBoxLayout(self.horizontalLayoutWidget_4)
        self.layOpcoes_2.setSpacing(3)
        self.layOpcoes_2.setObjectName(u"layOpcoes_2")
        self.layOpcoes_2.setContentsMargins(0, 0, 0, 0)   
        
        self.btnFilmes = QPushButton(self.horizontalLayoutWidget_4)
        icon10 = QIcon()
        buttonConfig(self.btnFilmes, u"btnFilmes", icon10, u":/icons/film-solid.svg", self.layOpcoes_2)

        self.btnArtigos = QPushButton(self.horizontalLayoutWidget_4)
        icon11 = QIcon()
        buttonConfig(self.btnArtigos, u"btnArtigos", icon11, u":/icons/newspaper-regular.svg", self.layOpcoes_2)

        self.btnLivros = QPushButton(self.horizontalLayoutWidget_4)
        icon12 = QIcon()
        buttonConfig(self.btnLivros, u"btnLivros", icon12, u":/icons/book-solid.svg", self.layOpcoes_2)

        self.btnCanais = QPushButton(self.horizontalLayoutWidget_4)
        icon13 = QIcon()
        buttonConfig(self.btnCanais, u"btnCanais", icon13, u":/icons/video-solid.svg", self.layOpcoes_2)
        
        self.opcoes.raise_()
        self.horizontalLayoutWidget.raise_()
        self.opcoes_2.raise_()
        
        # SIDEBAR
        self.wdSidebar = QWidget(self.home)
        self.wdSidebar.setObjectName(u"wdSidebar")
        self.wdSidebar.setGeometry(QRect(436, 80, 60, 420))
        self.wdSidebar.setStyleSheet(u"*{\n"
"	background-color: rgb(30, 30, 30);\n"
"	border-radius: 7px;\n"
"}\n"
"QPushButton{\n"
"	background-color: rgb(85, 255, 255);\n"
"	border-radius: 3px;\n"
"}")
        self.verticalLayoutWidget_8 = QWidget(self.wdSidebar)
        self.verticalLayoutWidget_8.setObjectName(u"verticalLayoutWidget_8")
        self.verticalLayoutWidget_8.setGeometry(QRect(0, 30, 60, 330))
        self.laySidebar = QVBoxLayout(self.verticalLayoutWidget_8)
        self.laySidebar.setObjectName(u"laySidebar")
        self.laySidebar.setContentsMargins(0, 0, 0, 0)
        
        self.btnNotifica = QPushButton(self.verticalLayoutWidget_8)
        icon7 = QIcon()
        buttonConfig(self.btnNotifica, u"btnNotifica", icon7, u":/icons/notificacao.png", self.laySidebar)
        
        self.btnChat = QPushButton(self.verticalLayoutWidget_8)
        icon9 = QIcon()
        buttonConfig(self.btnChat, u"btnChat", icon9, u":/icons/chat.svg", self.laySidebar)
        
        # PESQUISAR ITEM
        self.wdPesquisar = QWidget(self.home)
        self.wdPesquisar.setObjectName(u"wdPesquisar")
        self.wdPesquisar.setGeometry(QRect(0, 80, 400, 32))
        self.formLayoutWidget = QWidget(self.wdPesquisar)
        self.formLayoutWidget.setObjectName(u"formLayoutWidget")
        self.formLayoutWidget.setGeometry(QRect(10, 0, 400, 32))
        self.formLayout = QFormLayout(self.formLayoutWidget)
        self.formLayout.setObjectName(u"formLayout")
        self.formLayout.setContentsMargins(0, 0, 0, 0)
        self.btnPesquisar = QPushButton(self.formLayoutWidget)
        self.btnPesquisar.setMinimumSize(QSize(80, 32))
        self.btnPesquisar.setMaximumSize(QSize(80, 32))
        self.btnPesquisar.setObjectName(u"btnPesquisar")
        self.btnPesquisar.setStyleSheet(u"*{\n"
"	background-color: rgb(30, 30, 30);\n"
"	border-radius: 7px;\n"
"	color: rgb(85, 255, 255)\n"
"}")
        self.formLayout.setWidget(0, QFormLayout.LabelRole, self.btnPesquisar)
        self.lnPesquisar = QLineEdit(self.formLayoutWidget)
        self.lnPesquisar.setMinimumSize(QSize(300, 32))
        self.lnPesquisar.setMaximumSize(QSize(300, 32))
        self.lnPesquisar.setObjectName(u"lnPesquisar")
        self.lnPesquisar.setStyleSheet(u"*{\n"
"	background-color: rgb(30, 30, 30);\n"
"	border-radius: 7px;\n"
"	color: rgb(85, 255, 255);\n"
"	height: 18px;\n"
"	padding: 5px;\n"
"}")
        self.formLayout.setWidget(0, QFormLayout.FieldRole, self.lnPesquisar)

        # LOGIN
        self.login = QFrame(self.centralwidget)
        self.login.setObjectName(u"login")
        self.login.setGeometry(QRect(0, 0, 500, 550))
        self.login.setMinimumSize(QSize(500, 550))
        self.login.setMaximumSize(QSize(500, 350))
        self.login.setStyleSheet(u"*{\n"
"	background-color: rgb(255, 123, 150);\n"
"}\n"
"\n"
"QLineEdit{\n"
"	border: none;\n"
"	border-bottom: 2px solid #FFF;\n"
"	padding: 3px;\n"
"	margin: 0 5px;\n"
"	font-size: 13px;\n"
"	font-weight: 500;\n"
"	color: #FFF;\n"
"}\n"
"\n"
"QPushButton{\n"
"	color: #FFF;\n"
"	background-color: rgb(90, 57, 148);\n"
"	height: 30px;\n"
"	max-width: 300px;\n"
"	border-radius: 0;\n"
"	margin: 0 6px;\n"
"	font: 15pt \"NSimSun\";\n"
"}")
        self.login.setFrameShape(QFrame.StyledPanel)
        self.login.setFrameShadow(QFrame.Raised)
        self.frLogo = QFrame(self.login)
        self.frLogo.setObjectName(u"frLogo")
        self.frLogo.setGeometry(QRect(0, -100, 500, 700))
        self.frLogo.setStyleSheet(u"QFrame{\n"
"	image: url(:/logo/logo-cerebro.png);\n"
"}\n"
"")
        self.frLogo.setFrameShape(QFrame.StyledPanel)
        self.frLogo.setFrameShadow(QFrame.Raised)
        
        self.verticalLayoutWidget = QWidget(self.login)
        self.verticalLayoutWidget.setObjectName(u"verticalLayoutWidget")
        self.verticalLayoutWidget.setGeometry(QRect(120, 370, 260, 130))
        self.layLogin = QVBoxLayout(self.verticalLayoutWidget)
        self.layLogin.setSpacing(15)
        self.layLogin.setObjectName(u"layLogin")
        self.layLogin.setContentsMargins(0, 0, 0, 0)
        
        self.lnEmail = QLineEdit(self.verticalLayoutWidget)
        self.lnEmail.setObjectName(u"lnEmail")
        self.lnEmail.setFocusPolicy(Qt.ClickFocus)
        self.lnEmail.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignVCenter)

        self.layLogin.addWidget(self.lnEmail)

        self.lnSenha = QLineEdit(self.verticalLayoutWidget)
        self.lnSenha.setObjectName(u"lnSenha")
        self.lnSenha.setFocusPolicy(Qt.ClickFocus)
        self.lnSenha.setEchoMode(QLineEdit.Password)
        self.lnSenha.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignVCenter)

        self.layLogin.addWidget(self.lnSenha)

        self.btnEntrar = QPushButton(self.verticalLayoutWidget)
        self.btnEntrar.setObjectName(u"btnEntrar")
        icon8 = QIcon()
        icon8.addFile(u"../assets/icones/login.png", QSize(), QIcon.Normal, QIcon.Off)
        self.btnEntrar.setIcon(icon8)
        self.btnEntrar.setIconSize(QSize(20, 20))

        self.layLogin.addWidget(self.btnEntrar)
        
        self.home.raise_()

        # ORDEM DE TABULAÇÃO
        DescomplicadaMente.setCentralWidget(self.centralwidget)
        QWidget.setTabOrder(self.sclaFeed, self.sclaConteudos)
        QWidget.setTabOrder(self.sclaConteudos, self.sclaNotificacao)
        QWidget.setTabOrder(self.sclaNotificacao, self.sclaBiblioteca)
        QWidget.setTabOrder(self.sclaBiblioteca, self.btnHome)
        QWidget.setTabOrder(self.btnHome, self.btnBiblioteca)
        QWidget.setTabOrder(self.btnBiblioteca, self.btnConteudos)
        QWidget.setTabOrder(self.btnConteudos, self.btnEmocoes)
        QWidget.setTabOrder(self.btnEmocoes, self.btnLogout)
        QWidget.setTabOrder(self.btnLogout, self.btnRaiva)
        QWidget.setTabOrder(self.btnRaiva, self.btnDesespero)
        QWidget.setTabOrder(self.btnDesespero, self.btnTristeza)
        QWidget.setTabOrder(self.btnTristeza, self.btnFilmes)
        QWidget.setTabOrder(self.btnFilmes, self.btnArtigos)
        QWidget.setTabOrder(self.btnArtigos, self.btnLivros)
        QWidget.setTabOrder(self.btnLivros, self.btnCanais)
        QWidget.setTabOrder(self.btnCanais, self.btnNotifica)

        self.retranslateUi(DescomplicadaMente)

        QMetaObject.connectSlotsByName(DescomplicadaMente)
Example #34
0
    def setupWeatherUI(self, Weather):
        if not Weather.objectName():
            Weather.setObjectName(u"Weather")
        Weather.resize(400, 190)
        Weather.setMinimumSize(QSize(400, 190))
        Weather.setMaximumSize(QSize(400, 190))
        icon = QIcon()
        icon.addFile(u"icons/favicon.ico", QSize(), QIcon.Normal, QIcon.Off)
        Weather.setWindowIcon(icon)
        #Palette
        palette = QPalette()
        brush = QBrush(QColor(255, 255, 255, 255))
        brush.setStyle(Qt.SolidPattern)
        palette.setBrush(QPalette.Active, QPalette.WindowText, brush)
        palette.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
        #Font 25
        font = QFont()
        font.setFamily(u"Yandex Sans Text Medium")
        font.setPointSize(25)
        #Font 20
        font1 = QFont()
        font1.setFamily(u"Yandex Sans Text Medium")
        font1.setPointSize(20)
        #Font 14
        font2 = QFont()
        font2.setFamily(u"Yandex Sans Text Medium")
        font2.setPointSize(14)
        #City
        self.citylbl = QLabel(Weather)
        self.citylbl.setObjectName(u"citylbl")
        self.citylbl.setGeometry(QRect(0, 0, 400, 50))
        self.citylbl.setPalette(palette)
        self.citylbl.setFont(font)
        self.citylbl.setTextFormat(Qt.AutoText)
        self.citylbl.setAlignment(Qt.AlignCenter)
        #Temperature
        self.templbl = QLabel(Weather)
        self.templbl.setObjectName(u"templbl")
        if language == "ru":
            self.templbl.setGeometry(QRect(59, 70, 71, 31))
        else:
            self.templbl.setGeometry(QRect(4, 70, 161, 31))
        self.templbl.setPalette(palette)
        self.templbl.setFont(font1)
        self.templbl.setAlignment(Qt.AlignRight)
        #Weather
        self.weatherlbl = QLabel(Weather)
        self.weatherlbl.setObjectName(u"weatherlbl")
        self.weatherlbl.setGeometry(QRect(0, 40, 400, 31))
        self.weatherlbl.setPalette(palette)
        self.weatherlbl.setFont(font2)
        self.weatherlbl.setAlignment(Qt.AlignCenter)
        #Feels like
        self.feelslbl = QLabel(Weather)
        self.feelslbl.setObjectName(u"feelslbl")
        if language == "ru":
            self.feelslbl.setGeometry(QRect(135, 75, 251, 21))
        else:
            self.feelslbl.setGeometry(QRect(170, 75, 231, 21))
        self.feelslbl.setPalette(palette)
        self.feelslbl.setFont(font2)
        self.feelslbl.setAlignment(Qt.AlignLeft)
        #Background
        self.bg = QLabel(Weather)
        self.bg.setObjectName(u"bg")
        self.bg.setGeometry(QRect(0, 0, 411, 211))
        self.bg.setPixmap(QPixmap(u"icons/background.jpg"))
        self.bg.setScaledContents(True)
        #Windspeed
        self.windspeed = QLabel(Weather)
        self.windspeed.setObjectName(u"windspeed")
        if language == "ru":
            self.windspeed.setGeometry(QRect(13, 110, 211, 21))
        else:
            self.windspeed.setGeometry(QRect(2, 110, 191, 21))
        self.windspeed.setPalette(palette)
        self.windspeed.setFont(font2)
        self.windspeed.setAlignment(Qt.AlignRight)
        #Air Humidity
        self.airhumidity = QLabel(Weather)
        self.airhumidity.setObjectName(u"airhumidity")
        if language == "ru":
            self.airhumidity.setGeometry(QRect(233, 110, 161, 20))
        else:
            self.airhumidity.setGeometry(QRect(221, 110, 181, 20))
        self.airhumidity.setPalette(palette)
        self.airhumidity.setFont(font2)
        self.airhumidity.setAlignment(Qt.AlignLeft)
        #Pressure
        self.pressure = QLabel(Weather)
        self.pressure.setObjectName(u"pressure")
        self.pressure.setGeometry(QRect(4, 140, 391, 20))
        self.pressure.setPalette(palette)
        self.pressure.setFont(font2)
        self.pressure.setAlignment(Qt.AlignCenter)

        self.bg.raise_()
        self.citylbl.raise_()
        self.feelslbl.raise_()
        self.templbl.raise_()
        self.weatherlbl.raise_()
        self.windspeed.raise_()
        self.airhumidity.raise_()
        self.pressure.raise_()

        QMetaObject.connectSlotsByName(Weather)