Hello,
Sorry, my question is not clear enough.
.kv file
```
Label:
text: app.gps_location
```
main.py
```
gps_location = StringProperty()
@mainthread
def on_location(self, **kwargs):
self.gps_location = '\n'.join([
'{}={}'.format(k, v) for k, v in kwargs.items()])
gps.configure(on_location=self.on_location,
on_status=self.on_status)
gps.start()
These codes make GPS data can be shown on the screen when pressing the start.
But when I try to do something like this:
```
latitude, longitude, speed, bearing, altitude, accuracy =\
self.gps_location.split("=")[1], self.gps_location.split("=")[3], \
self.gps_location.split("=")[5], self.gps_location.split("=")[7], self.gps_location.split("=")[9], \
self.gps_location.split("=")[12]
```
or something like this:
```
@mainthread
def on_location(self, **kwargs):
return kwargs.get('lat'), kwargs.get('lon'), kwargs.get('speed'), kwargs.get('bearing'), kwargs.get('altitude'), kwargs.get('accuracy')
latitude, longitude, speed, bearing, altitude, accuracy = self.on_location
```
It can not work. The values are always can not be gotten. I wonder the cause of this? Is it because the value keeps changing or what?
Thanks so much!