#!/usr/bin/env booi import System import Gtk from "gtk-sharp" Application.Init() myLabel as Label myEntry as Entry def onClicked(): myLabel.Text = myEntry.Text myWindow = Window("Hello world") myWindow.DeleteEvent += Application.Quit myBox = VBox() myWindow.Add(myBox) myLabel = Label("Press the button") myEntry = Entry() myButton = Button("Click!") myButton.Clicked += onClicked myBox.Add(myLabel) myBox.Add(myEntry) myBox.Add(myButton) myWindow.ShowAll() Application.Run()