mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-20 11:28:58 +08:00
82a81cbf24
* compatible python3 ubuntu 20.04 * python3 by default
29 lines
577 B
Python
29 lines
577 B
Python
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
import wx
|
|
import gvfframe
|
|
|
|
class MessagesApp(wx.App):
|
|
def __init__(self, wtf, ac_id):
|
|
self.ac_id = ac_id
|
|
wx.App.__init__(self, wtf)
|
|
|
|
def OnInit(self):
|
|
self.main = gvfframe.GVFFrame(self.ac_id)
|
|
|
|
self.main.Show()
|
|
self.SetTopWindow(self.main)
|
|
return True
|
|
|
|
def main():
|
|
if len(sys.argv) != 2:
|
|
print ("Usage: gvfApp id_aircraft")
|
|
return
|
|
id_ac = int(sys.argv[1])
|
|
application = MessagesApp(0, id_ac)
|
|
application.MainLoop()
|
|
|
|
if __name__ == '__main__':
|
|
main()
|