#
#   PyGUI - Frame test
#

from GUI import Window, Frame, Label, run

def test():
    win = Window(title = "Frame")
    frm = Frame()
    frm.place_column([
        Label("This is"),
        Label("A frame")],
        left = 0, top = 0)
    frm.shrink_wrap()
    win.place(frm, left = 30, top = 30)
    win.shrink_wrap(padding = (30, 30))
    win.show()

instructions = """
There should be a window containing two labels
spaced 30 pixels from the edge of the window on
all sides.
"""

print instructions
test()
run()
