добавил отправку variant_map и красоты немножко
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user