def openCost(self): from cost import Ui_Cost self.window = QtWidgets.QMainWindow() self.ui = Ui_Cost() self.ui.setupUi(self.window) self.window.show()
class Ui_add_cost(object): def openCost(self): from cost import Ui_Cost self.window = QtWidgets.QMainWindow() self.ui = Ui_Cost() self.ui.setupUi(self.window) self.window.show() def setupUi(self, add_cost): add_cost.setObjectName("add_cost") add_cost.resize(580, 200) add_cost.setMinimumSize(QtCore.QSize(580, 200)) add_cost.setMaximumSize(QtCore.QSize(580, 200)) self.centralwidget = QtWidgets.QWidget(add_cost) self.centralwidget.setObjectName("centralwidget") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(60, 80, 140, 30)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.Cost_line = QtWidgets.QLineEdit(self.centralwidget) self.Cost_line.setGeometry(QtCore.QRect(220, 80, 300, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.Cost_line.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.Cost_line.setFont(font) self.Cost_line.setStyleSheet("background-color: rgb(135, 206, 235);") self.Cost_line.setText("") self.Cost_line.setObjectName("Cost_line") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(60, 140, 140, 30)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.Facilities_line = QtWidgets.QLineEdit(self.centralwidget) self.Facilities_line.setGeometry(QtCore.QRect(220, 140, 300, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.Facilities_line.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.Facilities_line.setFont(font) self.Facilities_line.setStyleSheet( "background-color: rgb(135, 206, 235);") self.Facilities_line.setObjectName("Facilities_line") self.layoutWidget = QtWidgets.QWidget(self.centralwidget) self.layoutWidget.setGeometry(QtCore.QRect(80, 20, 431, 42)) self.layoutWidget.setObjectName("layoutWidget") self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(17) self.horizontalLayout.setObjectName("horizontalLayout") self.add_cost_btn = QtWidgets.QPushButton(self.layoutWidget) self.add_cost_btn.setMinimumSize(QtCore.QSize(150, 40)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.add_cost_btn.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.add_cost_btn.setFont(font) self.add_cost_btn.setStyleSheet( "background-color: rgb(135, 206, 235);") self.add_cost_btn.setObjectName("add_cost_btn") self.horizontalLayout.addWidget(self.add_cost_btn) self.back_to_cost_btn = QtWidgets.QPushButton(self.layoutWidget) self.back_to_cost_btn.setMinimumSize(QtCore.QSize(150, 40)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.back_to_cost_btn.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.back_to_cost_btn.setFont(font) self.back_to_cost_btn.setStyleSheet( "background-color: rgb(135, 206, 235);") self.back_to_cost_btn.setObjectName("back_to_cost_btn") self.back_to_cost_btn.clicked.connect(self.openCost) self.back_to_cost_btn.clicked.connect(add_cost.close) self.horizontalLayout.addWidget(self.back_to_cost_btn) add_cost.setCentralWidget(self.centralwidget) self.retranslateUi(add_cost) QtCore.QMetaObject.connectSlotsByName(add_cost) def retranslateUi(self, add_cost): _translate = QtCore.QCoreApplication.translate add_cost.setWindowTitle(_translate("add_cost", "Добавление стоимости")) self.label.setText(_translate("add_cost", "Стоимость")) self.label_2.setText(_translate("add_cost", "Льготы")) self.Facilities_line.setText( _translate("add_cost", "Инвалид, потеря кормильца, сирота")) self.add_cost_btn.setText(_translate("add_cost", "Добавить")) self.back_to_cost_btn.setText( _translate("add_cost", "Вернуться в меню стоимостей"))
class Ui_red_cost(object): def openRed(self): from red_cost_2 import Ui_red_cost_2 self.window = QtWidgets.QMainWindow() self.ui = Ui_red_cost_2() self.ui.setupUi(self.window) self.window.show() def openCost(self): from cost import Ui_Cost self.window = QtWidgets.QMainWindow() self.ui = Ui_Cost() self.ui.setupUi(self.window) self.window.show() def setupUi(self, red_cost): red_cost.setObjectName("red_cost") red_cost.resize(630, 300) red_cost.setMinimumSize(QtCore.QSize(630, 300)) red_cost.setMaximumSize(QtCore.QSize(630, 300)) self.centralwidget = QtWidgets.QWidget(red_cost) self.centralwidget.setObjectName("centralwidget") self.label_cost = QtWidgets.QLabel(self.centralwidget) self.label_cost.setGeometry(QtCore.QRect(60, 80, 190, 30)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_cost.setFont(font) self.label_cost.setAlignment(QtCore.Qt.AlignCenter) self.label_cost.setObjectName("label_cost") self.label_facilities = QtWidgets.QLabel(self.centralwidget) self.label_facilities.setGeometry(QtCore.QRect(60, 140, 190, 30)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_facilities.setFont(font) self.label_facilities.setAlignment(QtCore.Qt.AlignCenter) self.label_facilities.setObjectName("label_facilities") self.layoutWidget = QtWidgets.QWidget(self.centralwidget) self.layoutWidget.setGeometry(QtCore.QRect(120, 20, 431, 42)) self.layoutWidget.setObjectName("layoutWidget") self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(17) self.horizontalLayout.setObjectName("horizontalLayout") self.find_cost_btn = QtWidgets.QPushButton(self.layoutWidget) self.find_cost_btn.setMinimumSize(QtCore.QSize(150, 40)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.find_cost_btn.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.find_cost_btn.setFont(font) self.find_cost_btn.setStyleSheet( "background-color: rgb(135, 206, 235);") self.find_cost_btn.setObjectName("find_cost_btn") self.horizontalLayout.addWidget(self.find_cost_btn) self.back_to_cost_btn = QtWidgets.QPushButton(self.layoutWidget) self.back_to_cost_btn.setMinimumSize(QtCore.QSize(150, 40)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.back_to_cost_btn.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.back_to_cost_btn.setFont(font) self.back_to_cost_btn.setStyleSheet( "background-color: rgb(135, 206, 235);") self.back_to_cost_btn.setObjectName("back_to_cost_btn") self.back_to_cost_btn.clicked.connect(self.openCost) self.back_to_cost_btn.clicked.connect(red_cost.close) self.horizontalLayout.addWidget(self.back_to_cost_btn) self.label_FIO_2 = QtWidgets.QLabel(self.centralwidget) self.label_FIO_2.setGeometry(QtCore.QRect(60, 110, 190, 30)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_FIO_2.setFont(font) self.label_FIO_2.setAlignment(QtCore.Qt.AlignCenter) self.label_FIO_2.setObjectName("label_FIO_2") self.red_cost_btn = QtWidgets.QPushButton(self.centralwidget) self.red_cost_btn.setGeometry(QtCore.QRect(420, 210, 195, 40)) self.red_cost_btn.setMinimumSize(QtCore.QSize(150, 40)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.red_cost_btn.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.red_cost_btn.setFont(font) self.red_cost_btn.setStyleSheet( "background-color: rgb(135, 206, 235);") self.red_cost_btn.setObjectName("red_cost_btn") self.red_cost_btn.clicked.connect(self.openRed) self.red_cost_btn.clicked.connect(red_cost.close) self.Cost_list = QtWidgets.QListWidget(self.centralwidget) self.Cost_list.setGeometry(QtCore.QRect(60, 200, 340, 60)) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(21) sizePolicy.setHeightForWidth( self.Cost_list.sizePolicy().hasHeightForWidth()) self.Cost_list.setSizePolicy(sizePolicy) self.Cost_list.setMinimumSize(QtCore.QSize(340, 30)) self.Cost_list.setMaximumSize(QtCore.QSize(240, 60)) self.Cost_list.setSizeIncrement(QtCore.QSize(0, 30)) self.Cost_list.setBaseSize(QtCore.QSize(0, 30)) font = QtGui.QFont() font.setFamily("MS Shell Dlg 2") font.setPointSize(10) font.setBold(False) font.setItalic(False) font.setWeight(50) self.Cost_list.setFont(font) self.Cost_list.setStyleSheet("font: 10pt \"MS Shell Dlg 2\";") self.Cost_list.setSizeAdjustPolicy( QtWidgets.QAbstractScrollArea.AdjustIgnored) self.Cost_list.setObjectName("Cost_list") self.FacilitiesBox = QtWidgets.QComboBox(self.centralwidget) self.FacilitiesBox.setGeometry(QtCore.QRect(270, 140, 300, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.FacilitiesBox.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.FacilitiesBox.setFont(font) self.FacilitiesBox.setToolTip("") self.FacilitiesBox.setStatusTip("") self.FacilitiesBox.setStyleSheet( "background-color: rgb(135, 206, 235);\n" "") self.FacilitiesBox.setEditable(False) self.FacilitiesBox.setMaxCount(10) self.FacilitiesBox.setIconSize(QtCore.QSize(16, 16)) self.FacilitiesBox.setModelColumn(0) self.FacilitiesBox.setObjectName("FacilitiesBox") self.FacilitiesBox.addItem("") self.FacilitiesBox.addItem("") self.FacilitiesBox.addItem("") self.FacilitiesBox.addItem("") self.FacilitiesBox.addItem("") self.CostBox = QtWidgets.QComboBox(self.centralwidget) self.CostBox.setGeometry(QtCore.QRect(270, 80, 300, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.CostBox.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.CostBox.setFont(font) self.CostBox.setToolTip("") self.CostBox.setStatusTip("") self.CostBox.setStyleSheet("background-color: rgb(135, 206, 235);\n" "") self.CostBox.setEditable(False) self.CostBox.setMaxCount(10) self.CostBox.setIconSize(QtCore.QSize(16, 16)) self.CostBox.setModelColumn(0) self.CostBox.setObjectName("CostBox") self.CostBox.addItem("") self.CostBox.addItem("") self.CostBox.addItem("") self.CostBox.addItem("") self.CostBox.addItem("") red_cost.setCentralWidget(self.centralwidget) self.retranslateUi(red_cost) self.FacilitiesBox.setCurrentIndex(-1) self.CostBox.setCurrentIndex(-1) QtCore.QMetaObject.connectSlotsByName(red_cost) def retranslateUi(self, red_cost): _translate = QtCore.QCoreApplication.translate red_cost.setWindowTitle( _translate("red_cost", "Редактирование стоимости")) self.label_cost.setText(_translate("red_cost", "Введите стоимость")) self.label_facilities.setText(_translate("red_cost", "Льготы")) self.find_cost_btn.setText(_translate("red_cost", "Найти")) self.back_to_cost_btn.setText( _translate("red_cost", "Вернуться в меню комнат")) self.label_FIO_2.setText(_translate("red_cost", "и")) self.red_cost_btn.setText(_translate("red_cost", "Редактировать")) self.FacilitiesBox.setItemText(0, _translate("red_cost", "1")) self.FacilitiesBox.setItemText(1, _translate("red_cost", "2")) self.FacilitiesBox.setItemText(2, _translate("red_cost", "3")) self.FacilitiesBox.setItemText(3, _translate("red_cost", "4")) self.FacilitiesBox.setItemText(4, _translate("red_cost", "5")) self.CostBox.setItemText(0, _translate("red_cost", "1")) self.CostBox.setItemText(1, _translate("red_cost", "2")) self.CostBox.setItemText(2, _translate("red_cost", "3")) self.CostBox.setItemText(3, _translate("red_cost", "4")) self.CostBox.setItemText(4, _translate("red_cost", "5"))
class Ui_list_cost(object): def openCost(self): from cost import Ui_Cost self.window = QtWidgets.QMainWindow() self.ui = Ui_Cost() self.ui.setupUi(self.window) self.window.show() def setupUi(self, list_cost): list_cost.setObjectName("list_cost") list_cost.resize(480, 291) list_cost.setMinimumSize(QtCore.QSize(300, 291)) list_cost.setMaximumSize(QtCore.QSize(1000, 500)) self.centralwidget = QtWidgets.QWidget(list_cost) self.centralwidget.setObjectName("centralwidget") self.layoutWidget = QtWidgets.QWidget(self.centralwidget) self.layoutWidget.setGeometry(QtCore.QRect(8, 20, 461, 42)) self.layoutWidget.setObjectName("layoutWidget") self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(17) self.horizontalLayout.setObjectName("horizontalLayout") self.import_cost_btn = QtWidgets.QPushButton(self.layoutWidget) self.import_cost_btn.setMinimumSize(QtCore.QSize(200, 40)) self.import_cost_btn.setMaximumSize(QtCore.QSize(190, 16777215)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.import_cost_btn.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.import_cost_btn.setFont(font) self.import_cost_btn.setStyleSheet( "background-color: rgb(135, 206, 235);") self.import_cost_btn.setObjectName("import_cost_btn") self.horizontalLayout.addWidget(self.import_cost_btn) self.back_to_cost_btn = QtWidgets.QPushButton(self.layoutWidget) self.back_to_cost_btn.setMinimumSize(QtCore.QSize(240, 40)) self.back_to_cost_btn.setMaximumSize(QtCore.QSize(230, 16777215)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(135, 206, 235)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.back_to_cost_btn.setPalette(palette) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.back_to_cost_btn.setFont(font) self.back_to_cost_btn.setStyleSheet( "background-color: rgb(135, 206, 235);") self.back_to_cost_btn.setObjectName("back_to_cost_btn") self.back_to_cost_btn.clicked.connect(self.openCost) self.back_to_cost_btn.clicked.connect(list_cost.close) self.horizontalLayout.addWidget(self.back_to_cost_btn) self.Cost_info = QtWidgets.QListWidget(self.centralwidget) self.Cost_info.setGeometry(QtCore.QRect(20, 89, 440, 171)) self.Cost_info.setAutoFillBackground(False) self.Cost_info.setStyleSheet("font: 10pt \"MS Shell Dlg 2\";\n" "selection-color: rgb(85, 170, 255);") self.Cost_info.setObjectName("Cost_info") item = QtWidgets.QListWidgetItem() self.Cost_info.addItem(item) item = QtWidgets.QListWidgetItem() self.Cost_info.addItem(item) item = QtWidgets.QListWidgetItem() self.Cost_info.addItem(item) item = QtWidgets.QListWidgetItem() self.Cost_info.addItem(item) item = QtWidgets.QListWidgetItem() self.Cost_info.addItem(item) item = QtWidgets.QListWidgetItem() self.Cost_info.addItem(item) item = QtWidgets.QListWidgetItem() self.Cost_info.addItem(item) item = QtWidgets.QListWidgetItem() self.Cost_info.addItem(item) list_cost.setCentralWidget(self.centralwidget) self.retranslateUi(list_cost) QtCore.QMetaObject.connectSlotsByName(list_cost) def retranslateUi(self, list_cost): _translate = QtCore.QCoreApplication.translate list_cost.setWindowTitle(_translate("list_cost", "Список стоимостей")) self.import_cost_btn.setText( _translate("list_cost", "Импортировать в Excel")) self.back_to_cost_btn.setText( _translate("list_cost", "Вернуться в меню стоимостей")) __sortingEnabled = self.Cost_info.isSortingEnabled() self.Cost_info.setSortingEnabled(False) item = self.Cost_info.item(0) item.setText( _translate("list_cost", "Стоимость: 560 р; Льготы: Без льгот")) item = self.Cost_info.item(1) item.setText( _translate("list_cost", "Стоимость: 600 р; Льготы: Без льгот")) item = self.Cost_info.item(2) item.setText(_translate("list_cost", "Стоимость: 0 р; Льготы: Инвалид")) item = self.Cost_info.item(3) item.setText(_translate("list_cost", "Стоимость: 0 р; Льготы: Сирота")) item = self.Cost_info.item(4) item.setText(_translate("list_cost", "Стоимость: 0 р; Льготы: ЧАЭС")) item = self.Cost_info.item(5) item.setText( _translate("list_cost", "Стоимость: 280 р; Льготы: Без льгот")) item = self.Cost_info.item(6) item.setText( _translate("list_cost", "Стоимость: 300 р; Льготы: Без льгот")) item = self.Cost_info.item(7) item.setText( _translate("list_cost", "Стоимость: 0 р; Льготы: Инвалид, Сирота")) self.Cost_info.setSortingEnabled(__sortingEnabled)