5 let window = GWindow.window ~border_width: 10 ()
7 let button = GButton.button ~label:"Hello World" ~packing: window#add ()
10 window#event#connect#delete
11 ~callback:(fun _ -> prerr_endline "Delete event occured"; true);
12 window#connect#destroy ~callback:Main.quit;
13 button#connect#clicked ~callback:(fun () -> prerr_endline "Hello World");
14 button#connect#clicked ~callback:window#destroy;
18 let _ = Printexc.print main ()