I'm using Windows 10, Python 3.7.9 My code:
In Main.py:
from kivy.app import App
from kivy.uix.widget import Widget
class MyGrid(Widget):
pass
class Main(Widget):
def build(self):
return Main()
if __name__ == "__main__":
Main().run()
In main.kv:
<Main>
GridLayout:
cols:1
GidLayout:
cols:2
Label:
text: "Name: "
TextInput:
multiline:False
Label:
texxt: "Email: "
TextInput:
multiline:False
Button:
text:"Submit"
Error(1):
In the .py file, 'Main' in 'Main().run()' is underlined with:
Instance of 'Main' has no 'run' member
Error(2):
In the .kv file '' is underlined with:
Kivy files require #:Kivy
I can't figure out how to fix, any help is appreciated