первое решённое задание

This commit is contained in:
2023-01-30 18:40:03 +07:00
parent 070001f4b2
commit 8e144b01e5
2 changed files with 15 additions and 45 deletions
+3 -2
View File
@@ -1,16 +1,17 @@
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QPixmap
import sys
from functions.get_img_map import get_img_map
class Window(QMainWindow):
def __init__(self):
super().__init__()
self.acceptDrops()
self.setWindowTitle("Image")
self.setGeometry(0, 0, 400, 300)
self.setGeometry(0, 0, 600, 450)
self.label = QLabel(self)
get_img_map()
self.pixmap = QPixmap('image.png')
self.label.setPixmap(self.pixmap)
self.label.resize(self.pixmap.width(), self.pixmap.height())