решение задания 7
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user