All pastes #9144 Raw Edit

boo-gtk-funct

public python v1 · immutable
#9144 ·published 2005-04-08 22:19 UTC
rendered paste body
#!/usr/bin/env booiimport Systemimport Gtk from "gtk-sharp"myLabel as LabelmyEntry as EntryApplication.Init()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 += def():	myLabel.Text = myEntry.Text	myBox.Add(myLabel)myBox.Add(myEntry)myBox.Add(myButton)myWindow.ShowAll()Application.Run()