It does nothing that I started to learn Kivy, I'm in the different types of Layout but I do not work either the Grid Layout or the Stack Layout. I do not miss any mistakes; the problem is that when I run the program it stays in total black. Help please.
GridLayout.py
import kivy
kivy.require('1.9.0')
from kivy.app import App
from kivy.uix.gridlayout import GridLayout
class GridLayoutApp(App):
def build(self):
return GridLayout()
GridLayoutApp().run()
Grid.kv
<GridLayout>:
cols: 2
rows: 2
padding: 10
spacing: 10
Button:
text: '1st'
size_hint_x: None
width: 200
Button:
text: '2nd'
Button:
text: '3rd'
size_hint_x: None
width: 200
Button:
text: '4th'
StackLayout.py
import kivy
kivy.require('1.9.0')
from kivy.app import App
from kivy.uix.stacklayout import StackLayout
class StackLayoutApp(App):
def build(self):
return StackLayout()
StackLayoutApp().run()
Stack.kv
<GridLayout>:
cols: 2
rows: 2
padding: 10
spacing: 10
Button:
text: '1st'
size_hint_x: None
width: 200
Button:
text: '2nd'
Button:
text: '3rd'
size_hint_x: None
width: 200
Button:
text: '4th'