// A first window: text, an input box, buttons, a message box use gui fun main() { window = new.window("Hello window", 500, 320) window.print("Hello from comet!") window.print("What is your name?", 20, 60) string name = window.input("name: ", 20, 90) window.color("green") window.print("Nice to meet you, " + name + "!", 20, 140) window.color("light") window.button("Say hi", 20, 190) window.button("Quit", 120, 190) while (window.open()) { if (window.clicked("Say hi")) { window.alert("Hi, " + name + "!") } if (window.clicked("Quit")) { break } window.sleep(0.02) } window.close() }