flockompass/flockompass.kv

73 lines
1.8 KiB
Plaintext
Raw Normal View History

#:import random random.random
#:import RiseInTransition kivy.uix.screenmanager.RiseInTransition
2020-07-16 17:14:47 +00:00
<MapScreen>:
BoxLayout:
2020-07-16 17:14:47 +00:00
orientation: 'vertical'
ActionBar:
pos_hint: {'top':1}
ActionView:
use_separator: True
ActionPrevious:
title: 'Social Cycling'
with_previous: False
ActionButton:
important: True
text: 'we ride together'
on_press: root.manager.current = 'compass'
MapView:
id: mapview
lat: 28.89335172
lon: 76.59449171
zoom: 15
on_map_relocated: centermark.lat = mapview.lat; centermark.lon = mapview.lon
MapMarker:
id: centermark
anchor_x: 0.2
anchor_y: 0.3
lat: 28.89335172
lon: 76.59449171
<CompassScreen>:
BoxLayout:
2020-07-16 18:43:28 +00:00
orientation: 'vertical'
canvas:
Color:
rgb: .98, .98, .98
Rectangle:
size: self.size
Image:
source: 'rose.png'
Image:
source: 'needle.png'
2020-07-16 17:14:47 +00:00
ActionBar:
pos_hint: {'top':1}
ActionView:
use_separator: True
ActionPrevious:
title: 'Social Cycling'
with_previous: False
ActionButton:
important: True
text: 'set destination'
on_press: root.manager.current = 'map'
2020-07-16 18:43:28 +00:00
Label:
text: app.gps_location
Label:
text: app.gps_status
2020-07-16 17:14:47 +00:00