This Page

Window ExampleΒΆ

window.enaml

#------------------------------------------------------------------------------
#  Copyright (c) 2012, Enthought, Inc.
#  All rights reserved.
#------------------------------------------------------------------------------
""" The 'Hello World' of Gui examples.

This example shows how to create a bare bones window with a title. For
this simple example, the `Window` has no children.

"""
from enaml.widgets.api import Window


enamldef Main(Window):
    title = 'Hello World!'

$ enaml-run window.enaml
../_images/window.png