решение задания 7

This commit is contained in:
2023-01-30 21:54:17 +07:00
parent 11fd0dbce9
commit 799477de9e
4 changed files with 21 additions and 4 deletions
+5
View File
@@ -26,6 +26,7 @@ class Window(QMainWindow):
self.button_group.addButton(self.skl)
self.button_group.buttonClicked.connect(self.push_button)
self.find.clicked.connect(self.search_organization)
self.drop.clicked.connect(self.drop_find)
def keyPressEvent(self, event):
try:
@@ -70,6 +71,10 @@ class Window(QMainWindow):
self.org_point, self.lon, self.lat = search_organization_pos(self.plainTextEdit.toPlainText())
self.update()
def drop_find(self):
self.org_point = "0.0,0.0"
self.update()
App = QApplication(sys.argv)
window = Window()