fix: event system

This commit is contained in:
2025-09-20 23:34:40 +03:00
parent a352464979
commit afd54c55f0
3 changed files with 20 additions and 9 deletions

View File

@@ -15,10 +15,13 @@ def main():
trajectoryDrawer = TrajectoryDrawer('map.jpg')
trajectoryDrawer.on_complete_trajectory = onCompleteTrajectory
trajectoryDrawer.show()
trajectoryDrawer.wait()
onCompleteTrajectory(trajectoryDrawer.points)
def onCompleteTrajectory(points):
print("I've got points. Here these: ")
print(points)
yandexMap = YandexMap()
if __name__ == "__main__":
main()