from enaml.converters import IntConverter
defn MainWindow:
    Window:
        title = "Field example"
        constraints = [vertical(top, label, field, bottom),
                        horizontal(left, label, right),
                        horizontal(left, field, right)]
        Label -> label:
            text = "This is an integer field"
        Field -> field:
            converter = IntConverter()
            value = 23