def __init__(self, master=None): """Initialize the application""" #Create the Tkinter frame for the GUI Frame.__init__(self, master) self.pack() #Initialize FAP (Finnish APRS Parser) fap.init() #Create a dictionary to hold relevant data about tracked data #Each entry in the field is a seperate file in Google Earth self.tracks = { "balloon": { "active": True, "file": "./Tracks/Balloon Track.kml", "log": "./Logs/Balloon" }, "d710": { "active": True, "file": "./Tracks/D710 Track.kml", "log": "./Logs/D710" }, "prediction": { "active": True, "file": "./Tracks/Prediction.kml", "log": "./Logs/Prediction" } } #Create all of the interfaces on the GUI self.createWidgets()
def __init__(self, master=None): """Initialize the application""" #Create the Tkinter frame for the GUI Frame.__init__(self, master) self.pack() #Initialize FAP (Finnish APRS Parser) fap.init() #Create a dictionary to hold relevant data about tracked data #Each entry in the field is a seperate file in Google Earth self.tracks = {"balloon":{"active":True, "file":"./Tracks/Balloon Track.kml", "log":"./Logs/Balloon"}, "d710":{"active":True, "file":"./Tracks/D710 Track.kml", "log":"./Logs/D710"}, "prediction":{"active":True, "file":"./Tracks/Prediction.kml", "log":"./Logs/Prediction"}} #Create all of the interfaces on the GUI self.createWidgets()
text3 = "Bearing is %s degrees azimuth and %s degrees altitude" % bearing print text3 engine.say(text3) engine.say(text) engine.runAndWait() print "Said" def sayBearing(): pass if __name__=="__main__": engine = pyttsx.init() #engine.say('Altitude speech engine starting') #engine.runAndWait() fap.init() if os.name=="nt": filepath = os.path.expanduser('~')+"\\tnclogs\\tnc.log" elif os.name=="posix": filepath = os.path.expanduser("~/Documents/tnc.log") else: print "UNKNOWN OPERATING SYSTEM. GET A LIFE." savedtime=os.stat(filepath).st_mtime ascentrate = 0 ascentaverage = None lasttime = time.time() lastpacket = None lastpackettime = None bearing = (0,0) calledlast = True try:
def __init__(self, master=None): Frame.__init__(self, master) self.pack() fap.init() self.createWidgets()
print text3 engine.say(text3) engine.say(text) engine.runAndWait() print "Said" def sayBearing(): pass if __name__ == "__main__": engine = pyttsx.init() #engine.say('Altitude speech engine starting') #engine.runAndWait() fap.init() if os.name == "nt": filepath = os.path.expanduser('~') + "\\tnclogs\\tnc.log" elif os.name == "posix": filepath = os.path.expanduser("~/Documents/tnc.log") else: print "UNKNOWN OPERATING SYSTEM. GET A LIFE." savedtime = os.stat(filepath).st_mtime ascentrate = 0 ascentaverage = None lasttime = time.time() lastpacket = None lastpackettime = None bearing = (0, 0) calledlast = True try: