bring back the debug msgs

This commit is contained in:
Daniel afx 2020-10-15 00:17:04 +03:00
parent 90341f7fa7
commit c3f9705f7b
4 changed files with 6 additions and 12 deletions

View file

@ -8,10 +8,9 @@
lon: 24.747571 lon: 24.747571
zoom: 15 zoom: 15
snap_to_zoom: False snap_to_zoom: False
#on_zoom: on_zoom:
# self.zoom = self.zoom self.zoom = 10 if self.zoom < 10 else self.zoom
# #self.zoom = 7 if self.zoom < 7 else self.zoom self.print_current_zoom(self.zoom)
# self.print_current_zoom(self.zoom)
on_lat: on_lat:
self.start_get_fov_trees() self.start_get_fov_trees()
on_lon: on_lon:

View file

@ -31,7 +31,7 @@ class ForestMapView(MapView):
trees = app.cursor.fetchall() trees = app.cursor.fetchall()
for tree in trees: for tree in trees:
name = tree[0] name = tree[0]
#print("] Fountain detected: " + str(tree)) print("] Fountain detected: " + str(tree))
if name in self.tree_names: if name in self.tree_names:
continue continue
else: else:

View file

@ -52,11 +52,6 @@ class ScreenOne(Screen):
class ScreenTwo(Screen): class ScreenTwo(Screen):
pass pass
class GlobalForest(MDApp):
def build(self):
#return Label(text='Hello world')
return GameWidget()
class MainApp(MDApp): class MainApp(MDApp):
connection = None connection = None
cursor = None cursor = None
@ -87,6 +82,6 @@ if __name__ == '__main__':
#screen_manager = ScreenManager() #screen_manager = ScreenManager()
#screen_manager.add_widget(ScreenOne(name="screen_one")) #screen_manager.add_widget(ScreenOne(name="screen_one"))
#screen_manager.add_widget(ScreenTwo(name="screen_two")) #screen_manager.add_widget(ScreenTwo(name="screen_two"))
#app = GlobalForest()
app = MainApp() app = MainApp()
app.run() app.run()