- control.start()
- fix = device.fix
- control.stop()
- #self.lat, self.long = fix[4:6]
- self.lat, self.long = ('51.546228', '-0.075016')
+ device.reset_last_known()
+ control.set_properties(preferred_method=location.METHOD_USER_SELECTED,
+ preferred_interval=location.INTERVAL_DEFAULT)
+ control.connect("error-verbose", self.on_error, self.loop)
+ device.connect("changed", self.on_changed, control)
+ control.connect("gpsd-stopped", self.on_stop, self.loop)
+ gobject.idle_add(self.start_location, control)
+ self.loop.run()
+ #self.lat, self.long = ('51.546228', '-0.075016')