gvf and python3 ubuntu 20.04 (#2588)

* compatible python3 ubuntu 20.04

* python3 by default
This commit is contained in:
Hector Garcia de Marina
2020-09-23 09:28:05 +02:00
committed by GitHub
parent 3c5d6f17ef
commit 82a81cbf24
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import wx
@@ -18,7 +18,7 @@ class MessagesApp(wx.App):
def main():
if len(sys.argv) != 2:
print "Usage: gvfApp id_aircraft"
print ("Usage: gvfApp id_aircraft")
return
id_ac = int(sys.argv[1])
application = MessagesApp(0, id_ac)
+1 -1
View File
@@ -279,7 +279,7 @@ class map2d:
a3d.plot([XY[0]], [XY[1]], [altitude], marker='o', markerfacecolor='r', markeredgecolor='r')
a3d.plot([traj.wpoint[0]], [traj.wpoint[1]], [traj.wpoint[2]], marker='x', markerfacecolor='r', markeredgecolor='r')
a3d.axis('equal')
#a3d.axis('equal')
if traj.deltaz < 0:
a3d.set_zlim(traj.zo+1.5*traj.deltaz, traj.zo-1.5*traj.deltaz)
else: