All pastes #252178 Raw Edit

Someone

public text v1 · immutable
#252178 ·published 2006-11-19 04:09 UTC
rendered paste body
import System
import Gtk from "gtk-sharp"
import Glade from "glade-sharp"
import Gecko from "gecko-sharp"
import Gnome from "gnome-sharp"

public class GladeApp:
	public def constructor (args):
		Application.Init()
		gxml = Glade.XML ("foo.glade", "window1", null)
		try:
			# load the xml file, and setup a controls with event handlers
			gxml.Autoconnect (self)
			# start Gtk message loop
			Application.Run()
		except e as Glade.HandlerNotFoundException:
			print "Exception caught while constructing from Glade XML:\n" + e
		except e as Exception:
			print "Exception caught:\n" + e

# construct a glade class
GladeApp ([])