добавил отправку variant_map и красоты немножко

This commit is contained in:
2023-01-30 19:09:33 +07:00
parent 1327186099
commit b95d3e4680
2 changed files with 14 additions and 11 deletions
+3 -2
View File
@@ -15,7 +15,8 @@ class Window(QMainWindow):
self.delta = 0.02
self.lon = 37.530887
self.lat = 55.703118
get_img_map(self.delta, (self.lon, self.lat))
self.variant_map = "map"
get_img_map(self.delta, (self.lon, self.lat), self.variant_map)
self.pixmap = QPixmap('image.png')
self.label.setPixmap(self.pixmap)
self.label.resize(self.pixmap.width(), self.pixmap.height())
@@ -46,7 +47,7 @@ class Window(QMainWindow):
print(e)
def update(self):
get_img_map(self.delta, (self.lon, self.lat))
get_img_map(self.delta, (self.lon, self.lat), self.variant_map)
self.pixmap = QPixmap('image.png')
self.label.setPixmap(self.pixmap)
self.label.resize(self.pixmap.width(), self.pixmap.height())