fix: event system
This commit is contained in:
7
main.py
7
main.py
@@ -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()
|
||||
Reference in New Issue
Block a user