Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayaurora authored Jul 24, 2016
1 parent 07e5346 commit d86dcd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/gps/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def build(self):
except NotImplementedError:
import traceback
traceback.print_exc()
gps_status = 'GPS is not implemented for your platform'
self.gps_status = 'GPS is not implemented for your platform'

return Builder.load_string(kv)

Expand All @@ -51,12 +51,12 @@ def stop(self):

@mainthread
def on_location(self, **kwargs):
gps_location = '\n'.join([
self.gps_location = '\n'.join([
'{}={}'.format(k, v) for k, v in kwargs.items()])

@mainthread
def on_status(self, stype, status):
gps_status = 'type={}\n{}'.format(stype, status)
self.gps_status = 'type={}\n{}'.format(stype, status)

def on_pause(self):
gps.stop()
Expand Down

0 comments on commit d86dcd3

Please sign in to comment.