Загрузка данных


from PyQt6.QtCore import *
from PyQt6.QtWidgets import *
from PyQt6.QtGui import QIcon, QFont
import sys

class Window(QWidget):
    def __init__(self):
        super().__init__()

        self.setGeometry(200, 200, 700, 400)
        self.setWindowTitle("Python QHBoxLayout")
        self.setWindowIcon(QIcon('images/python.png'))

        hbox = QHBoxLayout()
        btn1 = QPushButton('1click me')
        btn2 = QPushButton('2click me')
        btn3 = QPushButton('3click me')
        btn4 = QPushButton('4click me')

        hbox.addWidget(btn1, 16, alignment=Qt.AlignmentFlag.AlignHCenter)
        hbox.addWidget(btn2, 17, alignment=Qt.AlignmentFlag.AlignTop)
        hbox.addWidget(btn3, 67, alignment=Qt.AlignmentFlag.AlignBottom)
        hbox.addWidget(btn4, 52, alignment=Qt.AlignmentFlag.AlignVCenter)

        self.setLayout(hbox)
        '''self.line_edit = QLineEdit(self)
        self.line_edit.setFont(QFont('Arial', 20))
        self.line_edit.setText('Default text')
        self.line_edit.setEchoMode(QLineEdit.EchoMode.Password)
        self.line_edit.textChanged.connect(self.change)

    def change(self):
        text = self.line_edit.text()
        self.setWindowTitle(text)'''



    '''def createc_button(self):
        btn = QPushButton("click",self)
        btn.setGeometry(50,50,200,50)
        btn.setFont(QFont('Times', 14, QFont.Weight.ExtraBold))
        btn.setIcon(QIcon('images/python.png'))
        btn.setIconSize(QSize(50,50))

        menu = QMenu(self)
        menu = setFont(QFont('Times', 14, QFont.Weight.ExtraBold))
        menu.setStyleSheet("background-color: rgb(255, 255, 255);")
        menu.addAction("Copy")
        menu.addAction("Cut")
        menu.addAction("Paste")



        
        label = QLabel("Python GUI Development", self)
        #label.setText("New Text is Here")
        label.move(100,100)
        label.setFont(QFont("Sanserif", 15))
        label.setStyleSheet("QLabel { font-weight: bold; color: blue; }")


        #label.setText(str(12))
        label.setNum(15)
        label.clear()
        

        
        label = QLabel(self)
        pixmap = QPixmap('images/python.png')
        label.setPixmap(pixmap)
        

        label = QLabel(self)
        movie = QMovie('images/sky.gif')
        movie.setSpeed(500)
        label.setMovie(movie)
        movie.start()'''





app = QApplication(sys.argv)
window = Window()
window.show()
sys.exit(app.exec())