#! /usr/bin/python3

from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.scatter import Scatter
from kivy.uix.label import Label
from kivy.uix.floatlayout import FloatLayout

class TutorialApp(App):
    def build(self):
        f = FloatLayout()
        s = Scatter()
        l = Label(text='Hello!',
                  font_size=150)
        f.add_widget(s)
        s.add_widget(l)
        return f
        # This was a button.
        #return Button(text='Hello!',
        #              background_color=(0, 0, 1, 1),  # List of
        #                                              # rgba components
        #              font_size=150)
def main():
    print("main() function.")
    TutorialApp().run()

if __name__ == "main":
    print("main.")
    main()
else:
    print("Not main.")
    #TutorialApp().run()


#if __name__ == "__main__":
#    TutorialApp().run()