Jun-16-2023, 01:21 PM
desktop pc, win 10 , python 3.11, kivy 2.2
Hello. I am trying to run this code to confirm setup before I dive into python and kivy trying to achieve my goal.
The code is from an slightly changed example, viewing a youtube video.
The result should show a map beeing able to zoom and a position on map.
Any wizzards out there who can help me code to work?
Is this error due to wrong setup of python (no indication during setup of erroor),or programming?
Thank you for any guideance.
Here is the code:
Hello. I am trying to run this code to confirm setup before I dive into python and kivy trying to achieve my goal.
The code is from an slightly changed example, viewing a youtube video.
The result should show a map beeing able to zoom and a position on map.
Any wizzards out there who can help me code to work?
Is this error due to wrong setup of python (no indication during setup of erroor),or programming?
Thank you for any guideance.
Here is the code:
import kivy kivy.require('2.2.0') # replace with your current kivy version ! from kivymd.app import MDAppApp from kivy_garden.mapview import MapView class MyApp(MDApp): def build(self): mapview = MapView(zoom=10, Lat=36, Lon=-115) return mapview MapViewApp().run()[error]IndentationError: expected an indented block after function definition on line 10[output]None observed[/output][/error]