FlightName, size=8, color="white") d.text(DisplayLat - 15, DisplayLong + 10, "Spd-" + str(v[2]), size=8, color="white") d.text(DisplayLat - 15, DisplayLong + 20, "Alt-" + str(v[1]), size=8, color="white") except: print("error") pass AirplaneDict = {} Processing = False d = Drawing(a, height=ScreenHeight, width=ScreenWidth) d.bg = "black" d.repeat(500, RTLData) a.display() except KeyboardInterrupt: print('Shutting Down') process.kill() process.terminate() os.system('pkill dump1090') sys.exit(0)
from guizero import App, Drawing a = App(width=370, height=700) # create drawing object d = Drawing(a, width="fill", height="fill") d.bg = "light blue" # draw the shapes d.rectangle(10, 10, 60, 60) d.rectangle(70, 10, 120, 60, color="yellow") d.rectangle(130, 10, 180, 60, color="yellow", outline=True) d.rectangle(190, 10, 240, 60, color="yellow", outline=5) d.rectangle(250, 10, 300, 60, color="yellow", outline=5, outline_color="green") d.rectangle(310, 10, 360, 60, color=None, outline=5, outline_color="red") d.oval(10, 100, 60, 150) d.oval(70, 100, 120, 200, color="yellow") d.oval(130, 100, 240, 150, color="yellow", outline=True) d.oval(130, 160, 240, 210, color="yellow", outline=5) d.oval(250, 100, 300, 150, color="yellow", outline=5, outline_color="green") d.oval(310, 100, 360, 150, color=None, outline=5, outline_color="red") d.line(10, 250, 60, 250) d.line(70, 250, 120, 250, color="yellow") d.line(130, 250, 240, 250, width=5) d.line(250, 250, 300, 250, width=5, color="green") d.line(310, 250, 360, 250, width=5, color="red") d.polygon(10, 300, 60, 300, 40, 350, 10, 350) d.polygon(70, 300, 120, 300, 100, 350, 70, 350, color="yellow")