# Form implementation generated from reading ui file 'calc/window/design/main_window.ui'
#
# Created by: PyQt6 UI code generator 6.7.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(370, 400)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        self.centralwidget = QtWidgets.QWidget(parent=MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.result_line_edit = QtWidgets.QLineEdit(parent=self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(35)
        font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
        self.result_line_edit.setFont(font)
        self.result_line_edit.setMouseTracking(False)
        self.result_line_edit.setToolTipDuration(1)
        self.result_line_edit.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
        self.result_line_edit.setObjectName("result_line_edit")
        self.verticalLayout.addWidget(self.result_line_edit)
        self.digits_layout = QtWidgets.QGridLayout()
        self.digits_layout.setObjectName("digits_layout")
        self.minus_button = OperatorButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.minus_button.sizePolicy().hasHeightForWidth())
        self.minus_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.minus_button.setFont(font)
        self.minus_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.minus_button.setProperty("operator", "-")
        self.minus_button.setObjectName("minus_button")
        self.digits_layout.addWidget(self.minus_button, 2, 3, 1, 1)
        self.mem_read_button = QtWidgets.QPushButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mem_read_button.sizePolicy().hasHeightForWidth())
        self.mem_read_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.mem_read_button.setFont(font)
        self.mem_read_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.mem_read_button.setObjectName("mem_read_button")
        self.digits_layout.addWidget(self.mem_read_button, 0, 0, 1, 1)
        self.digit_button_9 = DigitButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.digit_button_9.sizePolicy().hasHeightForWidth())
        self.digit_button_9.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.digit_button_9.setFont(font)
        self.digit_button_9.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.digit_button_9.setProperty("value", 9)
        self.digit_button_9.setObjectName("digit_button_9")
        self.digits_layout.addWidget(self.digit_button_9, 1, 2, 1, 1)
        self.mem_clear_button = QtWidgets.QPushButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mem_clear_button.sizePolicy().hasHeightForWidth())
        self.mem_clear_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.mem_clear_button.setFont(font)
        self.mem_clear_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.mem_clear_button.setObjectName("mem_clear_button")
        self.digits_layout.addWidget(self.mem_clear_button, 0, 3, 1, 1)
        self.times_button = OperatorButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.times_button.sizePolicy().hasHeightForWidth())
        self.times_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.times_button.setFont(font)
        self.times_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.times_button.setProperty("operator", "*")
        self.times_button.setObjectName("times_button")
        self.digits_layout.addWidget(self.times_button, 3, 3, 1, 1)
        self.equal_button = QtWidgets.QPushButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.equal_button.sizePolicy().hasHeightForWidth())
        self.equal_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.equal_button.setFont(font)
        self.equal_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.equal_button.setObjectName("equal_button")
        self.digits_layout.addWidget(self.equal_button, 4, 2, 1, 1)
        self.digit_button_3 = DigitButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.digit_button_3.sizePolicy().hasHeightForWidth())
        self.digit_button_3.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.digit_button_3.setFont(font)
        self.digit_button_3.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.digit_button_3.setProperty("value", 3)
        self.digit_button_3.setObjectName("digit_button_3")
        self.digits_layout.addWidget(self.digit_button_3, 3, 2, 1, 1)
        self.mem_set_button = QtWidgets.QPushButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mem_set_button.sizePolicy().hasHeightForWidth())
        self.mem_set_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.mem_set_button.setFont(font)
        self.mem_set_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.mem_set_button.setObjectName("mem_set_button")
        self.digits_layout.addWidget(self.mem_set_button, 0, 2, 1, 1)
        self.backspace_button = QtWidgets.QPushButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.backspace_button.sizePolicy().hasHeightForWidth())
        self.backspace_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.backspace_button.setFont(font)
        self.backspace_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.backspace_button.setObjectName("backspace_button")
        self.digits_layout.addWidget(self.backspace_button, 4, 0, 1, 1)
        self.divide_button = OperatorButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.divide_button.sizePolicy().hasHeightForWidth())
        self.divide_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.divide_button.setFont(font)
        self.divide_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.divide_button.setProperty("operator", "/")
        self.divide_button.setObjectName("divide_button")
        self.digits_layout.addWidget(self.divide_button, 4, 3, 1, 1)
        self.mem_add_button = QtWidgets.QPushButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mem_add_button.sizePolicy().hasHeightForWidth())
        self.mem_add_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.mem_add_button.setFont(font)
        self.mem_add_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.mem_add_button.setObjectName("mem_add_button")
        self.digits_layout.addWidget(self.mem_add_button, 0, 1, 1, 1)
        self.digit_button_6 = DigitButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.digit_button_6.sizePolicy().hasHeightForWidth())
        self.digit_button_6.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.digit_button_6.setFont(font)
        self.digit_button_6.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.digit_button_6.setProperty("value", 6)
        self.digit_button_6.setObjectName("digit_button_6")
        self.digits_layout.addWidget(self.digit_button_6, 2, 2, 1, 1)
        self.digit_button_2 = DigitButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.digit_button_2.sizePolicy().hasHeightForWidth())
        self.digit_button_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.digit_button_2.setFont(font)
        self.digit_button_2.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.digit_button_2.setProperty("value", 2)
        self.digit_button_2.setObjectName("digit_button_2")
        self.digits_layout.addWidget(self.digit_button_2, 3, 1, 1, 1)
        self.digit_button_1 = DigitButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.digit_button_1.sizePolicy().hasHeightForWidth())
        self.digit_button_1.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.digit_button_1.setFont(font)
        self.digit_button_1.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.digit_button_1.setProperty("value", 1)
        self.digit_button_1.setObjectName("digit_button_1")
        self.digits_layout.addWidget(self.digit_button_1, 3, 0, 1, 1)
        self.digit_button_4 = DigitButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.digit_button_4.sizePolicy().hasHeightForWidth())
        self.digit_button_4.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.digit_button_4.setFont(font)
        self.digit_button_4.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.digit_button_4.setProperty("value", 4)
        self.digit_button_4.setObjectName("digit_button_4")
        self.digits_layout.addWidget(self.digit_button_4, 2, 0, 1, 1)
        self.digit_button_0 = DigitButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.digit_button_0.sizePolicy().hasHeightForWidth())
        self.digit_button_0.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.digit_button_0.setFont(font)
        self.digit_button_0.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.digit_button_0.setProperty("value", 0)
        self.digit_button_0.setObjectName("digit_button_0")
        self.digits_layout.addWidget(self.digit_button_0, 4, 1, 1, 1)
        self.digit_button_5 = DigitButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.digit_button_5.sizePolicy().hasHeightForWidth())
        self.digit_button_5.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.digit_button_5.setFont(font)
        self.digit_button_5.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.digit_button_5.setProperty("value", 5)
        self.digit_button_5.setObjectName("digit_button_5")
        self.digits_layout.addWidget(self.digit_button_5, 2, 1, 1, 1)
        self.digit_button_8 = DigitButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.digit_button_8.sizePolicy().hasHeightForWidth())
        self.digit_button_8.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.digit_button_8.setFont(font)
        self.digit_button_8.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.digit_button_8.setProperty("value", 8)
        self.digit_button_8.setObjectName("digit_button_8")
        self.digits_layout.addWidget(self.digit_button_8, 1, 1, 1, 1)
        self.digit_button_7 = DigitButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.digit_button_7.sizePolicy().hasHeightForWidth())
        self.digit_button_7.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.digit_button_7.setFont(font)
        self.digit_button_7.setProperty("value", 7)
        self.digit_button_7.setObjectName("digit_button_7")
        self.digits_layout.addWidget(self.digit_button_7, 1, 0, 1, 1)
        self.plus_button = OperatorButton(parent=self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plus_button.sizePolicy().hasHeightForWidth())
        self.plus_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        self.plus_button.setFont(font)
        self.plus_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.plus_button.setProperty("operator", "+")
        self.plus_button.setObjectName("plus_button")
        self.digits_layout.addWidget(self.plus_button, 1, 3, 1, 1)
        self.verticalLayout.addLayout(self.digits_layout)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Калькулятор"))
        self.result_line_edit.setPlaceholderText(_translate("MainWindow", "0"))
        self.minus_button.setText(_translate("MainWindow", "-"))
        self.mem_read_button.setText(_translate("MainWindow", "RM"))
        self.digit_button_9.setText(_translate("MainWindow", "9"))
        self.mem_clear_button.setText(_translate("MainWindow", "MC"))
        self.times_button.setText(_translate("MainWindow", "x"))
        self.equal_button.setText(_translate("MainWindow", "="))
        self.digit_button_3.setText(_translate("MainWindow", "3"))
        self.mem_set_button.setText(_translate("MainWindow", "MS"))
        self.backspace_button.setText(_translate("MainWindow", "<-"))
        self.divide_button.setText(_translate("MainWindow", "/"))
        self.mem_add_button.setText(_translate("MainWindow", "M+"))
        self.digit_button_6.setText(_translate("MainWindow", "6"))
        self.digit_button_2.setText(_translate("MainWindow", "2"))
        self.digit_button_1.setText(_translate("MainWindow", "1"))
        self.digit_button_4.setText(_translate("MainWindow", "4"))
        self.digit_button_0.setText(_translate("MainWindow", "0"))
        self.digit_button_5.setText(_translate("MainWindow", "5"))
        self.digit_button_8.setText(_translate("MainWindow", "8"))
        self.digit_button_7.setText(_translate("MainWindow", "7"))
        self.plus_button.setText(_translate("MainWindow", "+"))
from ..widgets import DigitButton, OperatorButton
