Select file/new/file and type the filename with extension… my.kv
Or you can right click on the project name and select new…/file and type the file name with extension.
If you would like syntax highlighting for your kv file see: https://github.com/kivy/kivy/wiki/Setting-Up-Kivy-with-various-popular-IDE's
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/86574436-1bdd-441f-82da-95d41341f49dn%40googlegroups.com.
funky button.py :from kivy.app import App
from kivy.uix.button import Button
class FunkyButton(Button):
def __init__(self, **kwargs):
super(FunkyButton, self).__init__(**kwargs)
self.text = "Funky Button"
self.pos = (100,100)
self.size_hint = (.25,.25)
class LanguageLearnerApp(App): #parent
def build(self):
return FunkyButton()
if __name__ == "__main__":
LanguageLearnerApp().run()
funky button.kv : #:kivy 2.1.0
<FunkyButton>:
canvas:
Rectangle:
pos: 50, 50
size: 100, 100 Yeah but it gives me following error if i try and run funky button.kv
Gesendet von Mail für Windows
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/62fa4068.540a0220.cbea5.825dSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
You don’t run the kv file, you run the python file.
You are not loading the kv file. You can name the kv file “LanguageLearner.kv“ and it will automatically be loaded, or use the builder module to load the kv file or kv string.
See: https://kivy.org/doc/stable/api-kivy.app.html?highlight=app#kivy.app.App.load_kv
And: https://kivy.org/doc/stable/api-kivy.lang.html?highlight=lang#module-kivy.lang
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/D16D5596-2E96-4B7C-997D-23976C81DFFC%40hxcore.ol.
Oh i finally got it thank you so much!!!
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/62fa5474.170a0220.e6bec.9df1SMTPIN_ADDED_MISSING%40gmr-mx.google.com.