can not save kivy file. How to save kivy file?

I can not save kivy file to my computer. Do you have any suggestions? On my computer, it saves as better.kv.py and when I try to put the file extension on it still doesn't save as better.kv instead it looks like this enter image description here

here is the code that I am working with

main.py

import kivy
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.gridlayout import GridLayout
from kivy.uix.textinput import TextInput
from kivy.uix.button import Button
from kivy.uix.widget import Widget

class MyGrid1(Widget):pass

    

class BetterApp(App):
    def build(self):
        return MyGrid1()


if __name__ == '__main__':
    BetterApp().run()

and better.kv

<MyGrid1>:
    Label:
        text: ('[b]Hello[/b] [color = ff0099]World[/color]\n')

when I run better.kv here is the error

line 1
     <MyGrid1>:
stderr:     <MyGrid1>:
     ^
stderr:     ^
 SyntaxError: invalid syntax
stderr: SyntaxError: invalid syntax

Thank you



from Recent Questions - Stack Overflow https://ift.tt/3hmTmRy
https://ift.tt/3nTzkk7

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)