import clr
clr.AddReference('gtk-sharp')
import Gtk

def hola (objeto, argumentos):
    print "Hola a todos los linuxeros"

def cerrar_ventana (o, args):
    Gtk.Application.Quit ()

Gtk.Application.Init ()

w = Gtk.Window ("Comprobador de regexp")
w.DefaultWidth=100
w.DefaultHeight=50
w.DeleteEvent += cerrar_ventana

caja = Gtk.VBox(False,4)

boton = Gtk.Button ("Comprobar")

boton.Clicked += hola

caja.Add(boton)
w.Add(caja)

w.ShowAll ()

Gtk.Application.Run ()
