Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def window():
- app = QApplication(sys.argv)
- widget = QWidget()
- button1 = QPushButton(widget)
- button1.setText("Запустить")
- button1.move(64, 32)
- button1.clicked.connect(button1_clicked)
- button2 = QPushButton(widget)
- button2.setText("Выйти")
- button2.move(64, 64)
- button2.clicked.connect(button2_clicked)
- global label1
- label1 = QLabel(widget)
- label1.setText("Программа не запущена")
- label1.move(150,150)
- global label2
- label2 = QLineEdit(widget)
- label2.move(300,100)
- widget.setGeometry(450, 250, 800, 600)
- widget.setWindowTitle("PyQt5 Button Click Example")
- widget.show()
- sys.exit(app.exec_())
- def button1_clicked():
- label1.setText("программа запущена")
- vk = autorize()
- sort_cities_list, sort_population_list = sort_cities_dict(cities_list(users_list(create_groups_list())))
- def button2_clicked():
- exit()
- if __name__ == '__main__':
- window()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement