Jun-16-2023, 09:54 PM
(This post was last modified: Jun-16-2023, 09:54 PM by deanhystad.)
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:
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.
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.