bring back the debug msgs
This commit is contained in:
parent
90341f7fa7
commit
c3f9705f7b
4 changed files with 6 additions and 12 deletions
|
@ -8,10 +8,9 @@
|
|||
lon: 24.747571
|
||||
zoom: 15
|
||||
snap_to_zoom: False
|
||||
#on_zoom:
|
||||
# self.zoom = self.zoom
|
||||
# #self.zoom = 7 if self.zoom < 7 else self.zoom
|
||||
# self.print_current_zoom(self.zoom)
|
||||
on_zoom:
|
||||
self.zoom = 10 if self.zoom < 10 else self.zoom
|
||||
self.print_current_zoom(self.zoom)
|
||||
on_lat:
|
||||
self.start_get_fov_trees()
|
||||
on_lon:
|
||||
|
|
|
@ -31,7 +31,7 @@ class ForestMapView(MapView):
|
|||
trees = app.cursor.fetchall()
|
||||
for tree in trees:
|
||||
name = tree[0]
|
||||
#print("] Fountain detected: " + str(tree))
|
||||
print("] Fountain detected: " + str(tree))
|
||||
if name in self.tree_names:
|
||||
continue
|
||||
else:
|
||||
|
|
7
main.py
7
main.py
|
@ -52,11 +52,6 @@ class ScreenOne(Screen):
|
|||
class ScreenTwo(Screen):
|
||||
pass
|
||||
|
||||
class GlobalForest(MDApp):
|
||||
def build(self):
|
||||
#return Label(text='Hello world')
|
||||
return GameWidget()
|
||||
|
||||
class MainApp(MDApp):
|
||||
connection = None
|
||||
cursor = None
|
||||
|
@ -87,6 +82,6 @@ if __name__ == '__main__':
|
|||
#screen_manager = ScreenManager()
|
||||
#screen_manager.add_widget(ScreenOne(name="screen_one"))
|
||||
#screen_manager.add_widget(ScreenTwo(name="screen_two"))
|
||||
#app = GlobalForest()
|
||||
app = MainApp()
|
||||
app.run()
|
||||
|
||||
|
|
Loading…
Reference in a new issue