Answer the question
In order to leave comments, you need to log in
Why doesn't Python see the .kv file?
I wanted to make a small application, but when I started setting up kivy, I needed to use the kivy design language.
I wrote the code but for some reason it doesn't work.
Here is main.py code
from kivy.uix.button import Button
from kivymd.app import MDApp
from kivy.uix.image import Image
from kivy.core.window import Window
from kivy.uix.gridlayout import GridLayout
Window.size = (700, 300)
def launchClicker(instance):
print('The button <%s> is being pressed' % instance.text)
class MainApp(MDApp):
def build(self):
pass
MainApp().run()
<MainApp>
GridLayout:
cols:2
GridLayout:
cols:1
rows:3
Label:
text: "Your Mom"
Label:
text: "Your Mom"
Label:
text: "Your Mom"
Button:
text: "Submit"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question