решение задания 8
This commit is contained in:
@@ -19,6 +19,7 @@ class Window(QMainWindow):
|
||||
self.lat = 55.703118
|
||||
self.variant_map = "map"
|
||||
self.org_point = "0.0,0.0"
|
||||
self.name_find_org = ""
|
||||
self.update()
|
||||
self.button_group = QButtonGroup(None)
|
||||
self.button_group.addButton(self.map)
|
||||
@@ -68,11 +69,15 @@ class Window(QMainWindow):
|
||||
|
||||
def search_organization(self):
|
||||
# Москва, ул. Ак. Королева, 12
|
||||
self.org_point, self.lon, self.lat = search_organization_pos(self.plainTextEdit.toPlainText())
|
||||
text = self.plainTextEdit.toPlainText()
|
||||
self.org_point, self.lon, self.lat, self.name_find_org = search_organization_pos(text)
|
||||
self.label_2.setText(self.name_find_org)
|
||||
self.update()
|
||||
|
||||
def drop_find(self):
|
||||
self.org_point = "0.0,0.0"
|
||||
self.name_find_org = ""
|
||||
self.label_2.setText(self.name_find_org)
|
||||
self.update()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user