I'm using a library on python called kivy. I have the main code file "ngen.py" and the other file used for ui "ngen.kv". When I use boxlayout in ngen.py I get an error message even though they are in the same dir.
[Running] python -u "e:\pyapp\ngen.py"
File "e:\pyapp\ngen.py", line 12
returtn boxlayout()
^^^^^^^^^
SyntaxError: invalid syntax
The code was supposed to work because i defined boxlayout here:
#:kivy 1.9.0
<BoxLayout:>
orientation: vertic
al
and here:
import kivy
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
kivy.require('1.9.0')
class Ngen(App):
def build(self):
return BoxLayout()
Ngen = Ngen()
gen.run()