frame() creates a Frame of AWT. An event handler to close window is defined.
f = frame("test") f.show()