def __init__(self): super(QWidget, self).__init__() # настройки интерфейса self.link_data = QtCore.pyqtSignal(str) self.setFont(QFont('Century Gothic', 10)) self.setWindowIcon(QIcon('logo.png')) self.setWindowTitle("Коммерческое предложение") window_w1 = Parameters.ParameterSize().ww() window_h1 = Parameters.ParameterSize().wh() button_color = Parameters.Color().whatcolor() self.setFixedSize(window_w1 * 0.5, window_h1 * 0.5) # кнопка для первого документа ets1 = QPushButton('ЭТС Цемент', self) ets1.setStyleSheet("background-color: {0}".format(button_color)) ets1.clicked.connect(self.ets1) # кнопка для второго документа ets2 = QPushButton('ЭТС Бесцемент. с Мод. Шейкой', self) ets2.setStyleSheet("background-color: {0}".format(button_color)) ets2.clicked.connect(self.ets2) # кнопка для третьего документа ets3 = QPushButton('ЭТС Бесцемент. Моно.', self) ets3.setStyleSheet("background-color: {0}".format(button_color)) ets3.clicked.connect(self.ets3) # компановка кнопок в окне vbox = QVBoxLayout() vbox.addWidget(ets1) vbox.addWidget(ets2) vbox.addWidget(ets3) self.setLayout(vbox)
def __init__(self, parent): super(FormWidget1, self).__init__(parent) # настройки интерфейса окна self.setFont(QFont('Century Gothic', 15)) self.setWindowIcon(QIcon('logo.png')) self.button_color = Parameters.Color().whatcolor() hbox = QHBoxLayout() # кнопка для ком.предложения com_but = QPushButton("Коммерческое предложение", self) com_but.setStyleSheet("background-color: {0}".format( self.button_color)) com_but.clicked.connect(self.three_kom) # кнопка для договора doc_but = QPushButton("Одноразовый договор", self) doc_but.setStyleSheet("background-color: {0}".format( self.button_color)) doc_but.clicked.connect(self.one_doc) hbox.addWidget(com_but) hbox.addWidget(doc_but) self.setLayout(hbox)
def __init__(self, parent): super(FormWidget, self).__init__(parent) self.setFont(QFont('Century Gothic', 15)) self.button_color = Parameters.Color().whatcolor() self.setWindowIcon(QIcon('logo.png')) vbox = QVBoxLayout() vbox2 = QVBoxLayout() vbox3 = QVBoxLayout() hbox = QHBoxLayout() # Далее идут разделы, по которым распределяются ответы topleft = QPushButton("Вопросы по заказу продукции", self) topleft.setStyleSheet("background-color: {0}".format( self.button_color)) topleft.clicked.connect(self.show_tema1) topcenter = QPushButton("Вопросы по поставке продукции", self) topcenter.setStyleSheet("background-color: {0}".format( self.button_color)) topcenter.clicked.connect(self.show_tema2) topright = QPushButton("Вопросы по оплате продукции", self) topright.setStyleSheet("background-color: {0}".format( self.button_color)) topright.clicked.connect(self.show_tema3) bottomleft = QPushButton("Вопросы по подбору продукции", self) bottomleft.setStyleSheet("background-color: {0}".format( self.button_color)) bottomleft.clicked.connect(self.show_tema4) bottomcenter = QPushButton("Вопросы по аренде инструмента", self) bottomcenter.setStyleSheet("background-color: {0}".format( self.button_color)) bottomcenter.clicked.connect(self.show_tema5) bottomright = QPushButton("Прочие вопросы", self) bottomright.setStyleSheet("background-color: {0}".format( self.button_color)) bottomright.clicked.connect(self.show_tema6) # Компоновка разделов в окне vbox.addWidget(topleft, stretch=10) vbox.addWidget(bottomleft, stretch=10) vbox2.addWidget(topcenter, stretch=10) vbox2.addWidget(bottomcenter, stretch=10) vbox3.addWidget(topright, stretch=10) vbox3.addWidget(bottomright, stretch=10) hbox.addLayout(vbox) hbox.addLayout(vbox2) hbox.addLayout(vbox3) self.setLayout(hbox)
def __init__(self): super(QWidget, self).__init__() self.setFont(QFont('Century Gothic', 10)) self.setWindowTitle('Отправка письма') window_w1 = Parameters.ParameterSize().ww() window_h1 = Parameters.ParameterSize().wh() button_color = Parameters.Color().whatcolor() self.setWindowIcon(QIcon('logo.png')) self.setFixedSize(window_w1 * 0.2395833333333333, window_h1 * 0.4259259259259259) log_pas = QHBoxLayout() btns = QHBoxLayout() vbox = QVBoxLayout() self.uremail_line = QLineEdit() self.uremail_line.setPlaceholderText('Введите ваш @mail') self.urpassword_line = QLineEdit() self.urpassword_line.setPlaceholderText('Введите ваш пароль') self.urpassword_line.setEchoMode(QLineEdit.Password) self.address_line = QLineEdit() self.address_line.setPlaceholderText('Введите @mail получателя') btn_send = QPushButton('Отправить', self) btn_send.setStyleSheet("background-color: {0}".format(button_color)) log_pas.addWidget(self.uremail_line) log_pas.addWidget(self.urpassword_line) btns.addWidget(btn_send) vbox.addLayout(log_pas) vbox.addWidget(self.address_line, alignment=QtCore.Qt.AlignHCenter) vbox.addLayout(btns) self.setLayout(vbox) btn_send.clicked.connect(self.send)
def __init__(self): super(QWidget, self).__init__() # настрйока интерфеса окна self.setFont(QFont('Century Gothic', 10)) self.setWindowIcon(QIcon('logo.png')) self.setWindowTitle("Одноразовый договор") window_w1 = Parameters.ParameterSize().ww() window_h1 = Parameters.ParameterSize().wh() button_color = Parameters.Color().whatcolor() self.setFixedSize(window_w1 * 0.5, window_h1 * 0.5) hbox = QHBoxLayout() hbox2 = QHBoxLayout() hbox3 = QHBoxLayout() hbox4 = QHBoxLayout() vbox = QVBoxLayout() # поля ввода для реквизитов self.company_line = QLineEdit() self.company_line.setPlaceholderText('Представитель') self.dir_dol_line = QLineEdit() self.dir_dol_line.setPlaceholderText('Должность Представителя') self.dir_fio_line = QLineEdit() self.dir_fio_line.setPlaceholderText('ФИО Представителя') self.adr_line = QLineEdit() self.adr_line.setPlaceholderText('Адрес') self.tel_line = QLineEdit() self.tel_line.setPlaceholderText('Телефон') self.inn_line = QLineEdit() self.inn_line.setPlaceholderText('ИНН') self.email_line = QLineEdit() self.email_line.setPlaceholderText('@mail') self.r_s_line = QLineEdit() self.r_s_line.setPlaceholderText('р/cчёт') self.k_s_line = QLineEdit() self.k_s_line.setPlaceholderText('к/cчёт') self.kpp_line = QLineEdit() self.kpp_line.setPlaceholderText('КПП') self.bik_line = QLineEdit() self.bik_line.setPlaceholderText('БИК') self.bank_line = QLineEdit() self.bank_line.setPlaceholderText('Банк') # кнопка создания документа but = QPushButton("Создать документ", self) but.setStyleSheet("background-color: {0}".format(button_color)) but.clicked.connect(self.ccreate) # компановка объектов в окне hbox.addWidget(self.company_line) hbox.addWidget(self.dir_dol_line) hbox.addWidget(self.dir_fio_line) hbox2.addWidget(self.adr_line) hbox2.addWidget(self.tel_line) hbox2.addWidget(self.inn_line) hbox3.addWidget(self.r_s_line) hbox3.addWidget(self.k_s_line) hbox3.addWidget(self.kpp_line) hbox4.addWidget(self.bik_line) hbox4.addWidget(self.bank_line) hbox4.addWidget(self.email_line) vbox.addLayout(hbox) vbox.addLayout(hbox2) vbox.addLayout(hbox3) vbox.addLayout(hbox4) vbox.addWidget(but, alignment=QtCore.Qt.AlignHCenter) self.setLayout(vbox)