Jun-16-2023, 10:58 PM
(Jun-16-2023, 09:54 PM)deanhystad Wrote: More indentation errors.
In Python, indenting serves the same purpose as {} in C. It creates blocks of code. If your code was written using {} for blocking, it would look like this:
from kivy.config import Config Config.set('kivy','keyboard_mode','systemanddock') from kivymd.app import MDApp from kivy_garden.mapview import MapView class MyApp(MDApp): { def build(self): { mapview = MapView(zoom=10, Lat=36, Lon=-115) return mapview if __name__ == '__main__': { MyApp().run() } } }Maybe this makes it easier to see that your code does not make any MyApp objects. The only code that makes a MyApp object is deeply embedded in the build method of the MyApp class.
Also, your indenting is all over the place. Convention is every indent level is 4 spaces deeper than the previous level.
Maybe you should work through some kivy totorials. You cannot have success if you don't understand your tools.
Thanks for input. You are right. I just thought I should try an example from a youtube video before I dived into more suitable beginner levels. Was not even aware of the indenting. I will start with Python then Kivy and hopefully end up handling maps, Thanks for help and see You later. Regards