defn MainWindow:
    Window:
        title = "Form example"
        constraints = [vertical(top, myform, bottom),
                        horizontal(left, myform, right)]
        Form -> myform:
            NamedField('Name'):
                pass
            NamedField('Surname'):
                pass

defn NamedField(name):
        Label:
            text = name
        Field:
            pass
