Added missing files and removed unnessesary ones

This commit is contained in:
2023-07-16 16:44:42 +03:00
parent c3fa5367c3
commit 199dd693e4
41 changed files with 1442 additions and 50 deletions

31
Python/pyqt6_4/snippets/2.py Executable file
View File

@ -0,0 +1,31 @@
import sys
from PyQt6.QtWidgets import QApplication, QWidget, QLabel
from PyQt6.QtGui import QPixmap
class Window(QWidget):
def __init__(self) -> None:
super().__init__()
self.setGeometry(*(500,) * 4)
self.setWindowTitle("Окно")
label = QLabel(self)
label.setText("Текст")
label.move(300, 300)
pixmap = QPixmap()
lable_pic = QLabel(self)
lable_pic.setPicture(pixmap)
lable_pic.move(200, 200)
def main() -> None:
app = QApplication(sys.argv)
window = Window()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()